Opened 10 years ago
Closed 10 years ago
#8930 closed bug (duplicate)
Odd Ajax issue
Reported by: | rayhal | Owned by: | rayhal |
---|---|---|---|
Priority: | minor | Milestone: | 1.10.0 |
Component: | ui.core | Version: | 1.9.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
I have an application that uses jQuery v1.8.3, jQuery UI 1.8.16 and jqGrid 4.4.1 plus some extensions that I created. Yesterday I upgraded to jQuery UI 1.9.2 Immediately I encountered some erratic behavior with Ajax calls. About 30% of Ajax requests would fetch the requested page then reload the main page inside itself. I cannot see any pattern to this behavior. All the Ajax requests are initiated by this code in the main page.
function GetContent(pg){
$('#PlsWait').removeClass('ui-helper-hidden'); $('#ajaxerror').html(); $('#pagecontent').load(pg,function(resp,status,xhr){
if(status=='error'){
var msg='Sorry but there was an error: '; $('#ajaxerror').html(msg+xhr.status+' '+xhr.statusText);
}
});
}
All of the URL's follow the same format:
GetContent('http://192.168.0.101/cgi/loadpage.pl?RQ=XXXX&ID=100')
The only difference is XXXX which changes according to the request.
I tried removing the extensions that I created,using JQuery UI with all components and with a minimum of components required to run the app. Nothing made any difference. Changing back to jQuery UI 1.8.16 immediately cured the problem. I'm totally at a loss to see why this strange behavior happens or what exactly is causing it.
Change History (3)
comment:1 Changed 10 years ago by
Owner: | set to rayhal |
---|---|
Status: | new → pending |
comment:2 Changed 10 years ago by
Status: | pending → new |
---|
After a couple of hours messing around I've located the issue. Searched the bug reports and the issue is already covered by another ticket.
comment:3 Changed 10 years ago by
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Hi rayhal,
We're going to need a reduced test case showing the issue in order to look into this. For support try Stack Overflow or the Forums.
Thanks.