473,763 Members | 7,727 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ajax error on firefox

doing a simple page webmethod call an a page via PageMethods works fine in
ie7 & opera9
the same call on firefox ( and I assume netscape ) generates the following
error :

Error: [Exception... "Component returned failure code: 0x80040111
(NS_ERROR_NOT_A VAILABLE) [nsIXMLHttpReque st.status]" nsresult: "0x80040111
(NS_ERROR_NOT_A VAILABLE)" location: "JS frame ::
http://hgha.gerzio.ca/ScriptResource...79517344763787
:: Sys$Net$XMLHttp Executor$get_st atusCode :: line 4166" data: no]
Source File:
http://hgha.gerzio.ca/ScriptResource...79517344763787
Line: 4166

The script code this points to is :
//-----------------------------------------------------------------------
// Copyright (C) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------
// MicrosoftAjax.j s
// Microsoft AJAX Framework.

.. . .
function Sys$Net$XMLHttp Executor$get_st atusCode() {
/// <value type="Number"></value>
if (arguments.leng th !== 0) throw Error.parameter Count();
if (!this._respons eAvailable) {
throw
Error.invalidOp eration(String. format(Sys.Res. cannotCallBefor eResponse,
'get_statusCode '));
}
if (!this._xmlHttp Request) {
throw
Error.invalidOp eration(String. format(Sys.Res. cannotCallOutsi deHandler,
'get_statusCode '));
}
> return this._xmlHttpRe quest.status;
}
Google turns up a number of references to this problem in general but no
fixes for asp.net ajax in particular.
Since this problem is caused by a problem buried in the microsoft ajax code
I am at a loss as to how to proceed.
Do we just drop ajax for firefox & netscape users until MS puts out a fix ?
Or is there a fix out there that I haven't stumbled across yet ?
Gerry
Jun 28 '07 #1
2 4549
so ... what .. is this a dirty little secret that I wasn't supposed to
mention ?

Is no one else using asp.net ajax web service calls or are they just
ignoring any browsers that generate this error ?
"germ" <ge**@canada.co mwrote in message
news:u3******** ******@TK2MSFTN GP03.phx.gbl...
doing a simple page webmethod call an a page via PageMethods works fine in
ie7 & opera9
the same call on firefox ( and I assume netscape ) generates the following
error :

Error: [Exception... "Component returned failure code: 0x80040111
(NS_ERROR_NOT_A VAILABLE) [nsIXMLHttpReque st.status]" nsresult:
"0x80040111 (NS_ERROR_NOT_A VAILABLE)" location: "JS frame ::
http://hgha.gerzio.ca/ScriptResource...79517344763787
:: Sys$Net$XMLHttp Executor$get_st atusCode :: line 4166" data: no]
Source File:
http://hgha.gerzio.ca/ScriptResource...79517344763787
Line: 4166

The script code this points to is :
//-----------------------------------------------------------------------
// Copyright (C) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------
// MicrosoftAjax.j s
// Microsoft AJAX Framework.

. . .
function Sys$Net$XMLHttp Executor$get_st atusCode() {
/// <value type="Number"></value>
if (arguments.leng th !== 0) throw Error.parameter Count();
if (!this._respons eAvailable) {
throw
Error.invalidOp eration(String. format(Sys.Res. cannotCallBefor eResponse,
'get_statusCode '));
}
if (!this._xmlHttp Request) {
throw
Error.invalidOp eration(String. format(Sys.Res. cannotCallOutsi deHandler,
'get_statusCode '));
}
>> return this._xmlHttpRe quest.status;
}
Google turns up a number of references to this problem in general but no
fixes for asp.net ajax in particular.
Since this problem is caused by a problem buried in the microsoft ajax
code I am at a loss as to how to proceed.
Do we just drop ajax for firefox & netscape users until MS puts out a fix
?
Or is there a fix out there that I haven't stumbled across yet ?
Gerry

Jul 1 '07 #2
ok - just for future reference in case anyone else runs into this issue
the error occurs when the javascript function invoking the PageMethod is
called from a different window
( mozilla seems to be maybe getting confused as to which objects live in
which window ? - or not )

<script type="text/javascript">

var imagebrowser =null;
function SelectImage()
{
. . .
imagebrowser =
window.open("Se lector.aspx","S elector","menub ar=0,minimizabl e=0,modal=1,sta tus=0,toolbar=0 ,width=600,heig ht=600");
}

/*

PageMethods call will fail under mozilla if called from this
function when called from another window : opener.SelectCa llback(
selectdURL );
splitting this into 2 functions and using timer to invoke second
part , letting this & functions complete solves the problem

function SelectCallback( url )
{
imagebrowser.cl ose();
imagebrowser=nu ll;
. . .
PageMethods.DoS omething( url , DoSomethingCall back , Timeout ,
Error );
}

*/

function SelectCallback( url )
{
imagebrowser.cl ose();
imagebrowser=nu ll;
setTimeout("Sel ectCallback2('" +url+"')",0);
}

function SelectCallback2 ( path )
{
. . .
PageMethods.DoS omething( path , DoSomethingCall back, Timeout ,
Error );
}

function DoSomethingCall back( rslt )
{
. . .
}

function Timeout( txt )
{
alert('Timeout '+txt);
}

function Error( txt )
{
alert('Error '+txt);
}

</script>

<input type="button" value="Select Image" onclick="GetIma ge();return 0;" />

"germ" <ge**@canada.co mwrote in message
news:uv******** ******@TK2MSFTN GP04.phx.gbl...
so ... what .. is this a dirty little secret that I wasn't supposed to
mention ?

Is no one else using asp.net ajax web service calls or are they just
ignoring any browsers that generate this error ?
"germ" <ge**@canada.co mwrote in message
news:u3******** ******@TK2MSFTN GP03.phx.gbl...
>doing a simple page webmethod call an a page via PageMethods works fine
in ie7 & opera9
the same call on firefox ( and I assume netscape ) generates the
following error :

Error: [Exception... "Component returned failure code: 0x80040111
(NS_ERROR_NOT_ AVAILABLE) [nsIXMLHttpReque st.status]" nsresult:
"0x80040111 (NS_ERROR_NOT_A VAILABLE)" location: "JS frame ::
http://hgha.gerzio.ca/ScriptResource...79517344763787
:: Sys$Net$XMLHttp Executor$get_st atusCode :: line 4166" data: no]
Source File:
http://hgha.gerzio.ca/ScriptResource...79517344763787
Line: 4166

The script code this points to is :
//-----------------------------------------------------------------------
// Copyright (C) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------
// MicrosoftAjax.j s
// Microsoft AJAX Framework.

. . .
function Sys$Net$XMLHttp Executor$get_st atusCode() {
/// <value type="Number"></value>
if (arguments.leng th !== 0) throw Error.parameter Count();
if (!this._respons eAvailable) {
throw
Error.invalidO peration(String .format(Sys.Res .cannotCallBefo reResponse,
'get_statusCod e'));
}
if (!this._xmlHttp Request) {
throw
Error.invalidO peration(String .format(Sys.Res .cannotCallOuts ideHandler,
'get_statusCod e'));
}
>>> return this._xmlHttpRe quest.status;
}
Google turns up a number of references to this problem in general but no
fixes for asp.net ajax in particular.
Since this problem is caused by a problem buried in the microsoft ajax
code I am at a loss as to how to proceed.
Do we just drop ajax for firefox & netscape users until MS puts out a fix
?
Or is there a fix out there that I haven't stumbled across yet ?
Gerry


Jul 4 '07 #3

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

Similar topics

9
15082
by: Eric Wallstedt | last post by:
I have a page that "logs" changes made to input fields using ajax to pass data to a cgi. I use POST and it works fine most of the time (all the time in IE). But it fails when I get the data from a popup that invokes a function that in turn invokes ajax. Scenerio 1. user clicks a button to create a popup 2. the user selects a select member and clicks a button and a
5
20083
by: dougwig | last post by:
I'm trying to handle the scenario where a user's session times out and and their ajax request triggers a redirection by the webserver (302 error?). I'm using Prototype 1.4 and the my works great with Firefox,but with IE6 the onFailure never gets called and the request never completes. My code: var ajaxReq = new Ajax.Request( url, {method: 'post', parameters:
4
7473
by: evgenyg | last post by:
Hello ! We have the following situation - when Ajax request is sent what's being returned by the server is usually an XML (which is used for DOM updates) but sometimes it's HTML which is a whole new page that should replace an existing one. I.e when we issue an Ajax request we don't know what will be returned and analyze the response to act accordingly. Now, the way to replace the current document with a new one used to be easy and...
2
3173
by: shivendravikramsingh | last post by:
hi friends, i m using a ajax function for retrieving some values from a database table,and display the values in required field,my prob is that the ajax function i m using is working f9 once,but if i change something in php file using in ajax function.it not refreshed,means its shows the previous result it not get updated.i can't understand whats the prob.this is the code i m using: <? include("config.inc.php"); //error_reporting(0); ...
8
3143
by: cyqotiq | last post by:
First, let me state that this is not necessarily a Firefox problem, as I haven't fully tested in IE just yet. Second, let me state that this is not the typical "getElementById not working Firefox" post. Third, there are pieces of this code that I am not at liberty to display, change, discuss, or re-implement. As far as this question is concerned, this means that (1) I cannot use 3rd party libraries, which is why I've implemented my own...
8
3547
by: luftikus143 | last post by:
Hi there, I recently upgraded to Firefox 3 and suddenly my Ajax.Updater doesn't work anymore. Firefox gives me a "Security Error"... I am using the recent versions of prototype and script.xx.us. I am not an Ajax-geek.... But it worked smoothly in Safari and Firefox until now.. Thanks for giving me hint! <a href='#' onclick=\"variables(); Effect.toggle('datasets','BLIND'); return false;\" >click here</a> <div...
2
1662
by: burtonfigg | last post by:
I'm testing an ajax page - this works fine in Firefox: http://jimpix.co.uk/clients/a/ecards/defaultx.asp Click on any of the links on the right under the 'occassions' or 'others' headings, in Firefox, and thumbnails appear based on what you clicked on. Do the same in IE6, and it returns an error: Line: 71 Char: 9 Error: Unknown runtime error
3
17693
by: George | last post by:
I am doing an AJAX call using JQuery on my page to which returns JSON objects and everything works fine. Now I decided to use ashx handler instead of and simply write JSON out. Then my problems begun. So here is JQuery call $.ajax({ type: 'POST', url: url,
7
4043
by: mike57 | last post by:
The minimal AJAX script below works in Firefox, but not in IE, Opera, or Chrome. I could use some suggestions or referrals to resources that will help me get the script working in other browsers. Before there are six characters entered in the CAPTCHA code field, the 'Send' button is supposed to be disabled. When there are at least six characters in the CAPTCHA code field, the script attempts to verify the CAPTCHA w/AJAX. If it verifies, it...
0
9563
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9386
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
10144
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
9997
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...
0
9822
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7366
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
5270
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
5405
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3917
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.