bad json?
The number one way to find the problem with an Ajax request is to load
the action page in the browser directly. If you can't make that work,
then Ajax will never work. (though you may need to tweak things some so
that you can get the page - maybe your variables to URL or GET variables
instead of FORM or POST....)
If things are working in FF but not IE, then chances are your page is fine.
Most times when I see that, it is a problem with the JSON code I am
returning. For instance:
a) { id: 1, name: "bob" }
b) { "id": "1", "name": "bob" }
The first (a) line often causes problems in IE. The second (b) is the
"correct" way to be passing JSON - put quotes around the properties
names AND their values (where it makes sense).
If you are not using JSON, well, then we need a little more detail than
"it's broke, how come?".... :)
Shawn
mac wrote:
Ajax in IE doesn't return result, and display error :(
In other browsers everythink is ok?
what can it be?