This code is in the php file, its for refresh hyperlink, when we click it its work with some numbers,
All want to have that i should be autoclick or auto refresh on timer. how to do it the same code with auto refresh timer.
Started on the old forum in February 2012 · view the original in the archive · old links redirect here
This code is in the php file, its for refresh hyperlink, when we click it its work with some numbers,
All want to have that i should be autoclick or auto refresh on timer. how to do it the same code with auto refresh timer.
<meta http-equiv="refresh" content="30; <?php echo $_SERVER['PHP_SELF']; ?>?k=<?php echo $this->_tpl_vars['user']['user_login_key']; ?>
&nocache=<?php echo smarty_function_math(array('equation' => 'rand(1,100000)'), $this);?>">
//:P
Added after 23 minutes:
or you could do it via javascript:
<html>
<head>
<script>
function autoClick(){
document.getElementById('linktoclick').click();
}
</script>
</head>
<body onload="setTimeout('autoClick();',2000);">
<a id="linktoclick" href="<?php echo $_SERVER['PHP_SELF']; ?>
?k=<?php echo $this->_tpl_vars['user']['user_login_key']; ?>
&nocache=<?php echo smarty_function_math(array('equation' => 'rand(1,100000)'), $this);?>
">Refresh</a><br/>
</body>
</html>
Dillu wrote: This code is in the php file, its for refresh hyperlink, when we click it its work with some numbers,
All want to have that i should be autoclick or auto refresh on timer. how to do it the same code with auto refresh timer.
i think that gumchat script is to complicated for you, the copied code is from the smartys temporary folder, it doesnt make any sense to edit files there because this files will be overwritten and all the newly added codes will be lost, you received a reply in another topic how to do the autorefresh, here you ask again, if you are unable to add simple autorefresh to a page - you should start with basic html, php tutorials and "Hello World!" page first , or hire someone who will do it for you.
Advertise your mobile site for FREE with AdTwirl