473,661 Members | 2,506 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1452
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.javas cript 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
1934
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 (in)validate my Javascript code. First, I'll describe the purpose of the Javascript code. I often have a need to post a URL to something at my own web site, e.g., http://www.standards.com/Sorting/SortPerformanceComparison-Description.html. It is...
2
6357
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 can make that call to webservice from the client a nd with Javascript? I use C# and VS 2003. Thanks in advance!
3
1477
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
8296
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 typing javascript: (remember the colon) in the Location box. Navigator displays a "JavaScript typein" frame at the bottom of the window. Type the command line you want to try, and press Enter. "
8
3657
by: chrisdude911 | last post by:
how do i add video into a javascript web page with my own custom buttons?
3
1241
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
2321
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
3426
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 no buttons react to clicking. The website's helpdesk says it should work with Firefox, and could not offer any more advices. The JavaScript Console shows that there are numerous errors occuring. It looks like the web browser does not recognise...
16
2321
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 on the same page work correctly. It appears to be isolated to 1-2 machines in a particular network. I cannot verify whether these machines have had virus/spyware scans, but I do know the user is running Firefox 2.1 and IE 7 with the same...
0
8343
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8856
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8762
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8545
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7365
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6185
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4179
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4347
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2762
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.