Opened 10 years ago

Closed 10 years ago

#9225 closed defect (invalid)

Problem using dojo.xhrGet or dojo.xhrPost

Reported by: reiterweg Owned by: nic
Priority: high Milestone:
Component: Core Version: 1.3.0
Keywords: Cc:
Blocked By: Blocking:

Description

I was trying to use dojo.xhrGet or dojo.xhrPost to get data from server, but if failed on IE8. I test the same scenario on IE7 and F3 and it works fine, without change any part of my code, just switching from one browser to another.

It always call the error handler for the request, even when the response from server was right.

Attachments (2)

xhrtest.html (3.6 KB) - added by alansthomas 10 years ago.
test document
postxhrtest.html (7 bytes) - added by alansthomas 10 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 Changed 10 years ago by James Burke

Resolution: invalid
Status: newclosed

Can you attach a test case or point to an URL we can try to see the failure to debug it? From the above description there is not enough information to go on. When you have a test case feel free to reopen the bug.

Changed 10 years ago by alansthomas

Attachment: xhrtest.html added

test document

Changed 10 years ago by alansthomas

Attachment: postxhrtest.html added

comment:2 Changed 10 years ago by alansthomas

Resolution: invalid
Status: closedreopened

I am having the same issue. See attached test file for reproduction. I have tested with latest dojo 1.2.2 and dojo 1.3.2. Issue is only in IE8. As a work around I can add a emulateIE7 meta to the file and the issue goes away.

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" >

Not sure if the tabs have anything to do with this or not. Its how I use the call so I left it in.

comment:3 Changed 10 years ago by nic

Owner: changed from anonymous to nic
Status: reopenednew

comment:4 Changed 10 years ago by nic

Resolution: invalid
Status: newclosed

Just add a type="button" attribute to your dijit.form.Button or return false in your handler.

Note: See TracTickets for help on using tickets.