Javascript unable to call server-side function while another server-side is running.

Posted on 2005-05-06
Medium Priority
Last Modified: 2008-01-09

We have a webform with a javascript function that does a call back to a server function (via Intersoft's WebGrid) every x seconds.  This all works fine.

We also have a button on the webform that when clicked runs a long server-side function.

The problem is that when the button click server-side function is clicked the other timer initiated "call back" server side function is no longer fired.  The Javascript function is still quite happily calling it but it no longer gets fired until the button click server-side function has completed.

Is there any way to allow the button-click server-side function to yield allowing the other server-side function to run so they both are executing simultaneously (or as close to it).  I guess im looking for an application.processmessage type command that allows other messages to be handled.


Question by:JAMES
  • 3
LVL 23

Expert Comment

ID: 13945575
you could use client-server communications with XmlHttp object which allows for the client to communicate with the server without reloading the page. It can re-use the same session object for authentication purposes. It can also be asynchronous which will not lock up the window.

LVL 23

Accepted Solution

b1xml2 earned 2000 total points
ID: 13945588
requires MSIE.

Firefox also has support for this. The calls can be made to a page which accepts and returns xml as the delivery protocol.

If you stick with MSIE 5.5+ you can use web service behaviours for interaction between client and server.

Author Comment

ID: 13945690
Is there no simpler way of doing this?
LVL 23

Expert Comment

ID: 13945721
I highly doubt it

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses
Course of the Month17 days, 6 hours left to enroll

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question