Author Topic: Error Messages  (Read 11041 times)

Offline avoorpool

  • Sr. Member
  • ****
  • Posts: 372
    • http://pickeringweather.ca
Error Messages
« on: July 17, 2012, 11:06:59 AM »
Hi Jacques,

We talked earlier about the error messages which occur on some of my webpages.
I've attached a snapshot of the messages that occur on the [TODAY] page, and I can't figure out why (since I haven't changed anything).
Can you give me a hint of why I see this message (same occurs in other pages).

thanks,

Arthur
« Last Edit: December 31, 1969, 06:00:00 PM by Guest »

Offline Mr.Meteo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1120
    • http://www.meteostours.ca
Re: Error Messages
« Reply #1 on: July 17, 2012, 12:00:30 PM »
Hi Arthur,

That's a good example of what I told you about Strict HTML, all that we open must be closed!
At line #116 a <tr.... is open, and never closed, then at line #120 a new <tr... begin, but browser
assume that at line #119 a </tr> should be there and act as it! Browser being clevest it see a long
repetition of <tr><td></td></tr> and "fill the hole"... That's the difference of being displayed ok
and being 'Standards compilant".

Also, in the same time, the syntax for javascript block are bad (old way),
Your using: <script language="JavaScript">, instead of <script type="text/javascript">

Finally, your very last image (the blue counter) miss the closing />
Others are all paired, like: <p>...</p> because content is delimited by these tags.
But image, as br, input, and a few others, all the work is done between ONE bracket set
ie. <....>, then it need a slash before closing bracket to tell the browser not search for a pair,
as long as it could be: <img scr="http://my_real_long_path_to_my/picture.jpg" alt="Text to replace image" title="The title when passing on image with cursor" onclick="Do a javascript"....  />

You'll see only with the </tr> added, you'll pass from 38 errors... to a few!!

Regards,
Jacques
« Last Edit: December 31, 1969, 06:00:00 PM by Guest »
Please, consider supporting this site 

Offline avoorpool

  • Sr. Member
  • ****
  • Posts: 372
    • http://pickeringweather.ca
Re: Error Messages
« Reply #2 on: July 17, 2012, 05:50:07 PM »
Hi Jacques,

That really helps to eliminate a whole bunch of error messages  :D
Thanks a lot!!

I'll work on it,

Warm Regards,

Arthur
« Last Edit: December 31, 1969, 06:00:00 PM by Guest »

Offline avoorpool

  • Sr. Member
  • ****
  • Posts: 372
    • http://pickeringweather.ca
Re: Error Messages
« Reply #3 on: July 17, 2012, 05:55:43 PM »
Hi Jacques,

One more thing I forgot to ask you:
According to a message from Ray (Cumulus Forum), a change in the first line from "Strict" to "Transitional" would give the entire page a bit more flexibility (less errors)....
I like to ask you first before I try this, and what your experience you have before I (maybe) make some changes!! Don't want to mess up, and as a matter of fact, it's your template (you're the boss  :D )

Thanks,

Arthur
« Last Edit: December 31, 1969, 06:00:00 PM by Guest »

Offline Mr.Meteo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1120
    • http://www.meteostours.ca
Re: Error Messages
« Reply #4 on: July 17, 2012, 07:19:49 PM »
Hi Arthur,

You could surely try to "lower the bar" by using Transitional. I use it seldomly,
only when I have no choice! Some times when we're trying to melt in the same page
Php, Javascript, Ajax, Json and Flash together, we're in trouble! Then using other
"doctype" could solve the problem and they are there. for that!

I've decide to play only strict, as someone working in higher school, I don't like
to teach something "too basic"... and said after a while "In real life it's diffrent"

I know it's a bit hard to play with Strict, but in a few, you will need other languages,
as javascript or Php and you'll discover that the "strictness" you imposed to yourself
will help you, because ALL languages are syntaxics, there"s a WHOLE world
between a dot and a comma... and I don't speak about forgeting a trailing semi-colon
of forgot to close quotes!!!

In html, you have something good, an error is not so terrible, as browser will correct it
itself and display somehow a "good" results, but in other languages you'll be in trouble...
No display at all! Blank page! Between professionals we are frequently smiling when
someone tell that he (know someone... else that) loose half a day... on a missing dot!

But, YOU are the boss!

Best Regards,
Jacques

But, I think to go to Pickering to install FF + FB + ...  :lol:  :lol:  :lol:
« Last Edit: December 31, 1969, 06:00:00 PM by Guest »
Please, consider supporting this site