Skip to main content
August 23, 2008
Question

Handling no script

  • August 23, 2008
  • 3 replies
  • 682 views
Hi i have a No script tag with a http redirect, but my page will not validate to w3c

is there a way to check the clients javascript using server side?

or a better way to handle the no script?
This topic has been closed for replies.

3 replies

BKBK
Community Expert
Community Expert
September 6, 2008
I can see the dilemma. It is generally expected that <meta> will be within the head and <noscript> within the body. So where do you place the combination of <noscript> and >meta>?

I would place the tags where they produce the result I want, namely, in the head, where the script tag usually is, and accept the w3c error for what it is. Your requirement that the noscript tag do a redirect may actually be self-contradictory. At least, that is my opinion. The noscript tag is designed to provide alternative content -- for the current page, I would assume -- when the script tag is not executed.


BKBK
Community Expert
Community Expert
September 2, 2008
<NOSCRIPT>
<meta HTTP-EQUIV="Refresh" CONTENT="0; URL=http://www.myOtherWebSite.com/otherPage.cfm">
</NOSCRIPT>

September 5, 2008
ok thats what i had but i get w3c error

document type does not allow element "META" here.

i have it ion my head tag?
BKBK
Community Expert
Community Expert
August 23, 2008
The problem must be caused by something else. The noscript tag complies with the latest W3C specification.

September 1, 2008
the noscript tag is fine, its whats inside the tag

what the best way to redirect to another cfm page inside the noscript tag