Can ahref could be auto refresh

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Can ahref could be auto refresh

    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.

    -----------------------------------
    <a href="<?php echo $_SERVER['PHP_SELF']; ?>
    ?k=<?php echo $this->_tpl_vars['user']['user_login_key']; ?>
    &amp;nocache=<?php echo smarty_function_math(array('equation' => 'rand(1,100000)'), $this);?>
    ">Refresh</a><br/>
    ------------------------------------

    #2
    PHP Code:
    <meta http-equiv="refresh" content="30; <?php echo $_SERVER['PHP_SELF']; ?>?k=<?php echo $this->_tpl_vars['user']['user_login_key']; ?>
    &amp;nocache=<?php echo smarty_function_math(array('equation' => 'rand(1,100000)'), $this);?>">



    //:P
    Added after 23 minutes:

    or you could do it via javascript:

    PHP Code:
    <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']; ?>
     &amp;nocache=<?php echo smarty_function_math(array('equation' => 'rand(1,100000)'), $this);?>
     ">Refresh</a><br/>
    </body>
    </html>
    Last edited by something else; 28.02.12, 00:09.

    Comment


      #3
      Originally posted by Dillu View Post
      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.

      -----------------------------------
      <a href="<?php echo $_SERVER['PHP_SELF']; ?>
      ?k=<?php echo $this->_tpl_vars['user']['user_login_key']; ?>
      &amp;nocache=<?php echo smarty_function_math(array('equation' => 'rand(1,100000)'), $this);?>
      ">Refresh</a><br/>
      ------------------------------------
      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

      Comment


        #4
        i am not novice,
        but the problem is really big
        Actually if i will enter room.php its just logout. its mean if it will go to room.php it will be logout.

        Comment


          #5
          Yes you are and there is nothing bad about it. Bad is to claim otherwise when the thing is perfectly clear.
          <!DOCTYPE html PUBLIC "-//WAPFORUM.RS

          Comment

          Working...
          X