Forum Moderators: open
<meta http-equiv="Refresh" content="5">
This is there as a backup incase the users browser doesn't support my Ajax methos to refesh the content on a section of the page.
I have been trying to stop the meta refresh from happening using Javascript, does anyone have any suggestion on how to do this?
I have tried the Removechild method, but this seemed to not work
Cheers,
Mark
If so you could put this in the header, the trick here is that I've put the Refresh in the noscript.
<script type="text/javascript">
<!--
your code here
//-->
</script>
<noscript>
<meta http-equiv="Refresh" content="5">
</noscript>
The other thing to try is maybe the oposite of RemoveChild, and try adding it instead.
It was a bit unclear from the original question whether he was aiming for browser without JavaScript, or that with JavaScript he was detecting that they weren't capable of using the methods required for AJAX. Hence I gave multiple solutions :-)
You could even mix the noscript and the timer to cover both scenarios.