| 3:14 am on May 26, 2002 (gmt 0)|
When all else fails >> un-install :: re-install;)
| 8:16 am on May 26, 2002 (gmt 0)|
I never really do any js but I'm almost certain that you need to enclose the function in CDATA
| 9:44 am on May 26, 2002 (gmt 0)|
Nick, this was new territory for me, so I did some research - you are exactly right. If you use <script> tags within the XHTML document, the format is exactly as you posted. External scripts called from the HEAD need no special treatment.
Here's the W3C reference on Differences Between HTML 4 and XHTML [w3.org]. Scroll down a bit for Item 4.8 - Script and Style Elements
(edited by: tedster at 1:15 pm (utc) on May 26, 2002)
| 10:22 am on May 26, 2002 (gmt 0)|
Me, too. I've never used it but just remember reading the theory a while back. Using that method can, apparently, be a little tricky with old browsers though.
| 3:53 pm on May 26, 2002 (gmt 0)|
Both IE6 and Opera6 failed to implement this method. Of course, I might of missed something...
Thanks for the link Tedster-
| 5:37 pm on May 26, 2002 (gmt 0)|
:: // -- Will keep <![CDATA]> from halting your JS.
:: IE6 NN6.2/7 Opera6;)
Doing a search on "PCDATA" and "CDATA" on SEW will present excellent info on the subject.
| 7:37 pm on May 26, 2002 (gmt 0)|