aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Ajax  Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Ajax  Error" Watch "Ajax  Error" New topic
Author

Ajax Error

Mary Cole
Ranch Hand

Joined: Dec 02, 2000
Posts: 362
All,

In the retrieveURL method am alerting some values for my reference



In IE I always get the readystate as 0 and doesn't alert me the status and throws up a JS error..."Unspecified Error"

In Firefox, it runs in a loop and the readystate is 0 and the status is also 0 and throws an error on teh JS console








I tested this function from an href as well as from a button click and the effect is same
Pls advice...its urgent

Thx
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
You can not call req.status until it reaches complete (4).

Eric
Mary Cole
Ranch Hand

Joined: Dec 02, 2000
Posts: 362
Thx for your response...so how should my modified code look like
Mary Cole
Ranch Hand

Joined: Dec 02, 2000
Posts: 362
Anybody there to help me out?
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
http://www.javaranch.com/journal/200601/Journal200601.jsp#a2
Bibhash Roy
Greenhorn

Joined: Feb 13, 2006
Posts: 1
Solution Required for Problem in "Ajax in Struts-based Web Application"
=======================================================================
In the Web-app, there is table to which multiple rows can be added ..the
rows are filled by ajax calls...rows may be deleted as well in which case the deletion is done from client-side javascript call and then refreshing the undeleted rows using the same ajax call...

Now things work fine till the number of rows are limited to five(in
mozilla-based browsers) and 3(in IE).....However if the no. of rows exceeds the aforementioned, then ajax-call ("send" part) fails to dispatch the request and the Javascript console displays the following error:

Error: [Exception... "Component returned failure code: 0x80040111
(NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.status]" nsresult: "0x80040111
(NS_ERROR_NOT_AVAILABLE)" location: "JS frame ::
http://localhost:8080/catissuecore/Distribution.do?operation=add&pageOf=pageOfDistribution&menuSelected=16
:: processRequestOnSpecimenIdChange :: line 370" data: no]
Source File:
...............
Line: 370

Now line 370 is:
if (req.status == 200) {

...Any pointers ??
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Ajax Error