I found it ! \o/
The problem was that in my AJAXCheckUsername.jsp, I was not setting
the content-type !
So I added this line : Response.addHeader("Content-Type: text/plain;
charset=iso-8859-1");
Now Internet Explorer is not giving any error and it looks like
Firefox is getting the response fast
It is, it's just that I want to keep the domain name secret ;)
My test script is on http://myserver:16003/path_to_file/IEAjax.html
calling the http://myserver:16003/path_to_file/AJAXCheckUsername.jsp
0xCAFE
You can't load content from a remote domain like that, the content has
to be on the same domain as the request.
--John
On 9/13/07, 0xCAFE <[EMAIL PROTECTED]> wrote:
>
> I have experimented once more with ajax and jquery. Tried to do thing
> even simpler, so instead of using $.ajax, I used $
> (
I have experimented once more with ajax and jquery. Tried to do thing
even simpler, so instead of using $.ajax, I used $
("#username_status").load() like this :
$("#username_status").load("http://server/AJAXCheckUsername.jsp";,
{txtUserName: username});
or like this :
$("#username_stat
Thanks for the information, now I know how to catch the error
correctly!
But, to my dismay, the error seems to be something proprietary to
IE...
e.name = Error
e.message = System error: -1072896658.
I tried also with Safari on Windows and it works. It really is only
IE that gives me this error
You are getting "error" because the parameter you use, the err parameter, is
a simple status indicator that gets set to a few general values like
timeout, success, or error.
In your case, use the function(xhr,err,e) function and try to print out
e.name and e.message
On 9/12/07, 0xCAFE <[EMAIL PRO
Here's what I tried.
I have copied the code from my page and cleaned it up so I only have
one form field and my ajax call.
Here is the code :
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
http://www.w3.org/1999/xhtml";>
Simple IE Ajax Test
Thanks for the tip, but in the present case, I have these globally
defined with a var declaration.
Also, I think it would not give a "no such interface supported" error
if variables were not declared.
Any other ideas ?
On Sep 7, 4:00 pm, "John Resig" <[EMAIL PROTECTED]> wrote:
> You need to def
You need to define your variables, you must put a 'var' in front of
them, otherwise IE could throw an error.
Thus, lines like this (where you're defining a variable for the first time):
username = $("#txtUserName").val();
Should become this:
var username = $("#txtUserName").val();
A more compl
9 matches
Mail list logo