gadle.arpit | 9 Feb 08:15
Picon

[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.

Mike Wilson | 9 Feb 09:52
Picon
Favicon

[dwr-users] Re: Recursive Call

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)
>     {
>        
>         
(Continue reading)

David Marginian | 9 Feb 14:11

[dwr-users] Re: Recursive Call

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


Gmane