You are here: Re: Feedback improvements requested « HTML « IT news, forums, messages
Re: Feedback improvements requested

Posted by David on 11/29/05 16:18

Chaddy2222 wrote:

> Hi.
> I just had a look at the site in question. It's not bad but you may
> want to check it with the W3C's Validator @ http://validator.w3.org
> then just fix the errors (if any) that come up.

This will illuminate just one of the problems I worked to overcome as I
designed the site. The first major problem with the page is:

=>line 95 column 2 - Warning: <script> isn't allowed in <tr> elements
(from Tidy, validator.w3.org gives same error as "Error Line 96 column 31:
document type does not allow element "SCRIPT" here; missing one of "TH",
"TD" start-tag."

This occurs in the following context:
<tr>
<script type="text/javascript"><!--
insertTdWithBackground("common/UpperLeftCorner.jpg");
//--></script> style="background-repeat: no-repeat;
background-position: right top; width:

This is pasting the 'upper left corner' rounded edge graphic into the page.
Even though this is flagged as an error, both IE and FF parse this
correctly, and insert the graphic into the page properly.

FYI, the purpose of the 'insertTdWithBackground' is to insert the graphic
as an absolute reference based upon a stored variable. It allows me to use
a common header throughout the website without having to worry about
relative links.

For instance, if I have the following made-up page:
www.randommonkeyworks.com\someDir\someSubDir\page.shtml, I don't have to
link to the '\common' subdirectory holding my common header and footer via
"..\..\common" on this page, and as "..\common" on another page.

You could say, why don't you use "\common\header.shtml" as an absolute base
reference, but that doesn't allow you to look at it on your development
box, where the path may be "D:\Web Work\John's Site\Third test
layout\someDir\someSubDir\page.shtml".

The JavaScript scripts I have used get around that to a large extent. I
say 'a large extent', as I cannot figure out how to view the page with
header and footer on my development box, as SHTML is used on the server
side to paste everything together. This method does allow me to view the
main table cell, which is the content that changes on a page-per-page
basis, so I live with it.

> I think you may have problems with those people who have JavaScript
> Disables though.

I know, but as far as I can tell, JavaScript is benign, other than allowing
web pages to move and resize browser pages, and that can be disabled. Many
big business pages use JS, and it solves SO MANY problems, I quit caring.

Thanks,
David

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация