473,320 Members | 1,939 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,320 software developers and data experts.

Javascript, webservices and Firefox

I recently moved over a bunch of functionality to use javascript and
webservices. I ran into the issue where a webservice taking longer
than 10 seconds to respond will cause Firefox to throw a fit and show
the "script has stopped responding" warning.

Is there a way around this? What can possible be done so that firefox
keeps the connection alive without showing that annoying message.

All I can find about this online is to change the firefox settings in
about:config but this is not a solution to me. That would require
every firefox visitor to change their settings to view my site.

Any input would be appreciated.

Thanks
Dec 12 '07 #1
3 1437
Nightcrawler said the following on 12/12/2007 2:27 PM:
I recently moved over a bunch of functionality to use javascript and
webservices. I ran into the issue where a webservice taking longer
than 10 seconds to respond will cause Firefox to throw a fit and show
the "script has stopped responding" warning.

Is there a way around this? What can possible be done so that firefox
keeps the connection alive without showing that annoying message.

All I can find about this online is to change the firefox settings in
about:config but this is not a solution to me. That would require
every firefox visitor to change their settings to view my site.

Any input would be appreciated.
Find a faster webservice.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Dec 12 '07 #2
That's the only solution?
Dec 12 '07 #3
Nightcrawler wrote:
I recently moved over a bunch of functionality to use
javascript and webservices. I ran into the issue where
a webservice taking longer than 10 seconds to respond
will cause Firefox to throw a fit and show the "script
has stopped responding" warning.

Is there a way around this?
<snip>

You have posted no code so nobody knows what you are actually doing. So
the best you will get are guesses. Two possible explanations for your
symptoms stand out to me.

1. You are actively polling the - readystate - of the
response in a - while - (or similar) loop.
2. You are making synchronous requests where you should
be making asynchronous requests (as only asynchronous
requests should be used, regardless of the additional
complexity that requires in handling multiple
asynchronous inputs).

The latter seems more likely (as the former is insane) and so you solve
the problem by only making asynchronous requests.

Richard.

Dec 12 '07 #4

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

Similar topics

12
by: Howard Kaikow | last post by:
Yesterday, I decided to try Firefox. I've encountered a behavior that is either a bug in Firefox or a bug in my Javascript code. I'll try to explain the problem, hoping that this newsgroup can...
2
by: Sergio Cossa | last post by:
Hello to all! I need to accede to webservice from a Javascript function. I have read on the possibility of using webservice.htc, but Microsoft no lon ger supports it. Can somebody say me how I...
3
by: Karl | last post by:
Can Javascript code catch an exception thrown in an ASP.NET webservice? (Using XMLHTTPRequest object to send the SOAP message to the webservice.) If so, what't the Javascript syntax please? TIA
13
by: John Smith | last post by:
I am using IE 6.0 from http://www.javaworld.com/javaworld/jw-07-1996/jw-07-javascript-p2.html I gather that "If you need to test a number of command lines, you can reduce the keystrokes by...
8
by: chrisdude911 | last post by:
how do i add video into a javascript web page with my own custom buttons?
3
by: PeReGrin | last post by:
Hello asp World, Does someone know how to call a webservice in javascript ? I just want an idea or a big way ... Thanks for all,
4
by: lmarceglia | last post by:
Hi, I have this website that doesn't work in Firefox 1.5: www.pianetaluca.com The HTML source is: <TITLE>PianetaLuca</TITLE> </HEAD>
11
by: minnesotti | last post by:
Hi there, I subscribed to a photographic pictures-hosting website which is heavy on JavaScript. My preferred latest browser Mozilla Firefox does not work with it -- no pictures are displayed and...
16
by: Eric | last post by:
I have a user of a web application written in Java/JSP that is unable to login to the site simply because certain links on the page do not run when they are clicked. Other popups using Javascript...
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
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...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
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)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
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

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.