Recursive Call

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Recursive Call

gadle.arpit
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


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Recursive Call

Mike Wilson
Administrator
Seriously, you need to provide a lot more detail than just saying
that some error is thrown, to get some help ;-) 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)
>     {
>        
>        
> document.getElementById("liveConsoleGrid").innerHTML=ajaxResponse;
>         setTimeout("liveConsole()",1000);
>     });
> }
>
>
> Please let me know whats going wrong and suggest possible solutions
>
>
> Thanks
>
> Arpit

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Recursive Call

david@butterdev.com
Yes, I agree with Mike.

Our support page has instructions on how to ask questions and troubleshooting steps to take before you do:

http://directwebremoting.org/dwr/support/index.html

Before sending a message to the list please make sure you:
  1. Followed the steps at the top of this page, and have not found a resolution.
  2. Include the version of DWR you are using.
  3. Include information you have gathered while troubleshooting your problem.
The troubleshooting page is here:
http://directwebremoting.org/dwr/support/common_problems.html

On 02/09/2012 01:52 AM, Mike Wilson wrote:
Seriously, you need to provide a lot more detail than just saying
that some error is thrown, to get some help ;-) 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)
    {
       
        
document.getElementById("liveConsoleGrid").innerHTML=ajaxResponse;
        setTimeout("liveConsole()",1000); 
    });
}


Please let me know whats going wrong and suggest possible solutions


Thanks

Arpit


Loading...