Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to refresh a div on a click on a button

 
Omar Ali
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

I need your help in doing the ajax parto to refresh the div on the click on the "Refresh" button. I need an example.

I have tried to do it to be refreshed evey 15 seconds as per an example I found it in the internet.

Below is my code:



it is giving me an error which is unknown runtime error in the line


How should I modify the code, I tried to change the naming and do some modifications, but it did not work. I tried to put / before the url



But it did not work

Can anyone help
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
browser?
 
Omar Ali
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
IE 7
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is ReloadThis?
What is the responseText?

Eric
 
Omar Ali
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Reload is the name of the DIV

 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And what is the responseText?

Have you used Fiddler to see if the Ajax call is being made?

Eric
 
Omar Ali
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No I did not use.

Is there is a way to check? or an example?
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Install fiddler, it will capture the traffic.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65225
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Most built-in debuggers in modern browsers will show the network traffic. You really need to learn to use the tools at your disposal.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic