[Zope] Check for JavaScript:

Curtis Maloney curtis@cardgate.net
Fri, 3 Nov 2000 11:05:08 +1100


On Fri, 03 Nov 2000, Oleg Broytmann wrote:
> On Thu, 2 Nov 2000, Daniel Rusch wrote:
> > Advice: client issues should be dealt with on client side.
> >
> > Great I agree completely, except if the client has Java/JavaScript
> > turned off it is pretty darn difficult to have client issues dealt with
> > on client side!!!!!!
>
> <html><head>
> <script languagae=javascript>
> window.location = "/site/with/js/"
> </script>
>
> <meta http-equiv=refresh content="5; url=/site/nojs/">
> </head><body>
>
> <p>Loading, please wait...</p>
>
> </body></html>

This is a beautifuly simple solution.... the only things I could think of to 
improve it is:

1) comment out your javascript.
	It's not required, true, but it's a sensible safety measure.

2) put the meta tag in a <noscript> tag.
	Again, this is for extra safety... you just never know. (o8

In fact... this is the first time i've seen a META tag usage I condone... 
otherwise they just seem pointless to me. (o8

>
> Oleg.

Have a better one,
	Curtis Maloney.