META refresh when javascript disabled

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
Stryks
Forum Regular
Posts: 746
Joined: Wed Jan 14, 2004 5:06 pm

META refresh when javascript disabled

Post 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?
User avatar
Stryks
Forum Regular
Posts: 746
Joined: Wed Jan 14, 2004 5:06 pm

Post 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:
Post Reply