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
Post a Comment