473,323 Members | 1,570 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,323 software developers and data experts.

Problem with setInterval(callserver,[period])

Hi all.
I make a chat on ASP.NET 2.0 with Callbacks.
Every 3 second i get messages from server to my page.
But after some period of time (it differs) i have no response from server. I
click on buttons on the page, but there's no postback and no callback too.
Refresh doesn't work and no other site on my localhost can't be opened. And
all that till I reopen browser. Without reopening browser i can open the
same page but by another way ([computer_name]/[site_name], [ip]/[site_name]
etc).
And in each way it happens again and again i have to close my browse and
open it.
Does anybody know what a problem could be?
Nov 5 '06 #1
1 1213
Felix Piskunov wrote:
Hi all.
I make a chat on ASP.NET 2.0 with Callbacks.
Every 3 second i get messages from server to my page.
But after some period of time (it differs) i have no response from server. I
click on buttons on the page, but there's no postback and no callback too.
Refresh doesn't work and no other site on my localhost can't be opened. And
all that till I reopen browser. Without reopening browser i can open the
same page but by another way ([computer_name]/[site_name], [ip]/[site_name]
etc).
And in each way it happens again and again i have to close my browse and
open it.
Does anybody know what a problem could be?
I don't know exaclty what's happening, but it sound as if you are trying
to do a request while another request is still in progress.

The server will only execute one server page at a time per user. If one
page is being created that takes a long time, the browser will exhibit
the exact symptomes that you describe; requesting pages in the same
domain will not give a response, but requesting a page from a different
site (or the same site using a different name) works.

When you close the browser and reopen it, you will get a new session id,
so as far as the server is concerned, you are a completely new user.
That's why it starts working again.

So you might start looking for something that can make a request take a
long time to execute.

Perhaps you should use setTimeout instead of setInterval, so that you
don't make another request before the previous has returned, stacking up
requests if one takes longer than normal.
Nov 6 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: jain-neeraj | last post by:
Hi, We have a problem in our mobile calls billing software. To solve it, I need an outer join in a complicated query. Following are the simplified tables with sample data: create table...
9
by: Ray | last post by:
I need to convert the normal calendar to show the week no., the period no. and the financial year. The financial year format is as follows:- Date start: 2 May, 2005 7 days a week, 4 weeks a...
8
by: Chris Cap | last post by:
I am getting some strange behavior when using RaiseCallbackEvent. I have a form that implements ICallbackEventHandler. During the client callback, a session variable is set that is used on the...
3
by: jain-neeraj | last post by:
Hi, We have a problem in our mobile calls billing software. To solve it, I need an outer join in a complicated query. Following are the simplified tables with sample data: create table...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.