| Author |
How to refresh a div on a click on a button
|
Omar Ali
Greenhorn
Joined: Dec 23, 2008
Posts: 15
|
|
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
Joined: Nov 08, 2001
Posts: 15362
|
|
|
browser?
|
 |
Omar Ali
Greenhorn
Joined: Dec 23, 2008
Posts: 15
|
|
|
IE 7
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15362
|
|
What is ReloadThis?
What is the responseText?
Eric
|
 |
Omar Ali
Greenhorn
Joined: Dec 23, 2008
Posts: 15
|
|
Reload is the name of the DIV
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15362
|
|
And what is the responseText?
Have you used Fiddler to see if the Ajax call is being made?
Eric
|
 |
Omar Ali
Greenhorn
Joined: Dec 23, 2008
Posts: 15
|
|
No I did not use.
Is there is a way to check? or an example?
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15362
|
|
|
Install fiddler, it will capture the traffic.
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56529
|
|
|
Most built-in debuggers in modern browsers will show the network traffic. You really need to learn to use the tools at your disposal.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
 |
|
|
subject: How to refresh a div on a click on a button
|
|
|