Hi

I am making an ajax request using jquery. It's working perfectly with
IE but when I test it in any other browser either the call gets stuck
with no result or returns a success with no data. Neither GET nor POST
works. url is a https web service location on a different server.

                        $.ajax ({
                                type : mymethod,
                                url : myurl,
                                data : myvars,
                                dataType : "text",
                                username : user.userId,
                                password : user.password,
                                beforeSend: function(xhr){
                                        xhr.setRequestHeader("Accept", 
"application/xml");
                                        xhr.setRequestHeader("User-agent", 
"XYZ");
                                },
                                complete: function(XMLHttpRequest, textStatus){
                                        alert(textStatus + " : c : " + data);
                                },
                                success : function(data, textStatus) {
                                        alert(textStatus + " : s : " + data);
                                },
                                error : function(XMLHttpRequest, textStatus, 
errorThrown) {
                                        alert(textStatus + " : " + errorThrown 
+ "\n" +
XMLHttpRequest.status + "\n" + XMLHttpRequest.statusText);
                                }
                        });

-- 
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.

Reply via email to