Forum Moderators: open

Message Too Old, No Replies

Javascripting frames in XHTML

         

phpwhiz

2:19 pm on Feb 3, 2004 (gmt 0)

10+ Year Member



I'm in the process of converting an old site with frames to XHTML. I can easily get it to verify on the w3c validator.

However, in the converted version I also need to output one of the frame definitions with a JavaScript. When I do this it won't validate any more. Is there a way around this?

Unfortunately it is not an option at the moment to remove the frames.

BlobFisk

3:31 pm on Feb 3, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld, phpwhiz!

Are you using the correct XHTML DTD? Have you got your CDATA wrapper in?


<script>
<![cdata[
... script contents ...
]]>
</script>

HTH

phpwhiz

3:51 pm on Feb 3, 2004 (gmt 0)

10+ Year Member



Yes, I'm using the framset DTD and have the CDATA wrappers.

The problem seems to be that the script tag is not allowed in the frameset context.

I also tried to output the complete frameset definition in my javascript, and not just the single frame definition I need to control, but that didn't work either.