javascript - Read string on Browser -


i need read string written in browser write 5 in 5 seconds necessary recover value of while being written.

here's code write in php:

 set_time_limit(0);        // $this->layout = null;         $i = 0;         for($i; $i<10;$i++){             echo 'line '.$i."\n";              flush();             ob_flush();             sleep(3);         }         echo 'lool'; 

now, how read jquery or other solution?

for read contents in jquery need use dom style, can change result :

echo "<div id='myid".$i."'></div> 

and code readable jquery, in jquery can access id code :

$('#myid1').click(function(){$(this).hide);}); 

Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -