Jump to content

Antonio Testa

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by Antonio Testa

  1. The correct question is in the previous post. I will delete this one. Apolozige for that and I will appreciate your help. Thank you dsonesuk
  2. Hello folks, My simple code bellow is not working !!!☹️. The value for <div "X0"> is updated only once. The value for <div "X2"> is never updated. I want to have both X0 and X2 updated every second.... Any suggestion ? Thanks a lot. Antonio... <html><head> <script src="http://code.jquery.com/jquery-latest.js"> </script><script> $(document).ready(function update(){ $('#X0').load("urlforX0"); $('#X2').load("urlforX2"); setTimeout(update,1000);} ); </script></head> <body> <div "X0"></div> <div "x2"></div> <script>update();</script> </body> </html>
  3. It seams basic but I did not have success to update two different <div> at same time, every second .... Here is my code: <script src='http://code.jquery.com/jquery-latest.js'></script> <script> $(document).ready(function update(){$('#X0').load('V');setTimeout(update,2500);});</script> To be update: <div id="X0">will be updated</div> <div id="X1">will be updated too</div> The server response to get/V: <div id="X0">new x0 content</div><div id="X1">new x1 content</div> I have tried to make a lot of different changes over function update() but none of them worked... Thanks for any help. Antonio
×
×
  • Create New...