9 Feb 08:15
[dwr-users] Recursive Call
Dear All,
We had a developed a page which gets the status of users on call by making
every 1 sec(. After around 2 hours it stopped working and was throwing an
error in javascript alert box every time a ajax call was fired.
Here is the code for your reference
function liveConsole()
{
LiveConsoleForm.liveConsole(function(ajaxResponse)
{
document.getElementById("liveConsoleGrid").innerHTML=ajaxResponse;
setTimeout("liveConsole()",1000);
});
}
Please let me know whats going wrong and suggest possible solutions
Thanks
Arpit
--
View this message in context: http://dwr.2114559.n2.nabble.com/Recursive-Call-tp7268439p7268439.html
Sent from the DWR - Users mailing list archive at Nabble.com.
Your code seems fine.
Use Firebug, set a breakpoint in your JavaScript code and see what
error is thrown.
Inspect logs on the server.
Etc.
Best regards
Mike Wilson
gadle.arpit wrote:
> Dear All,
>
> We had a developed a page which gets the status of users on
> call by making
> every 1 sec(. After around 2 hours it stopped working and was
> throwing an
> error in javascript alert box every time a ajax call was fired.
>
> Here is the code for your reference
>
> function liveConsole()
> {
> LiveConsoleForm.liveConsole(function(ajaxResponse)
> {
>
>
RSS Feed