Page 1 of 1

META refresh when javascript disabled

Posted: Tue Jun 26, 2007 12:47 am
by Stryks
I have a form that allows a submission to another person who is also online and viewing the page. You make a request and the person receives that request and responds in real time.

I am working on an AJAX setup to do this, however I'm wondering how I can handle users who have javascript disabled. Before the AJAX approach, I had a META refresh, however if the javascript is enabled, I don't want the refresh to happen.

I had thought I could set up javascript traps to track non-javascript users and perhaps set a SESSION variable and use the method most appropriate, however I'm interested if there is another way.

In particular, can javascript disable or modify the META tag?

Posted: Tue Jun 26, 2007 1:52 am
by Stryks
Well ... thats embarrassing.

I'll have to remember to think *before* posting.

Code: Select all

<script language="javascript">alert('code');</script>
<noscript>
<meta http-equiv="refresh" content="5;url=whatever">
</noscript>
:oops: