Click here to Skip to main content
15,887,974 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am using chat plugin , and initiating a chat, the ajax post which i am using is working on mozilla and other browsers but not working on IE8/IE9. According to cross domain issue i have used "dataType: Jsonp" also but it's not working.

Error: SCRIPT5007: Unable to get value of the property 'call': object is null or undefined
jquery.validate.min.js, line 4 character 20895

JavaScript
 $("body").on("click", "#btnChat", function () {

   $.ajax({
                    url: path + "case/SubmitChatRequest",
                    data: $("#frmRequestSubmit").serialize(),
                    type: "POST",
                    dataType: "json",
                    cache: false,
                    contentType: "application/x-www-form-urlencoded; charset=UTF-8",
                    success: function (data) {
                        alert("abc")
                        $("#divTicketRequest").html(fnhtmlNotEscape(data));
                        $("#imgAnimation").hide();

                            }
               })
}


Please help me to get it work.
Posted
Comments
Ankit_Sharma1987 25-Apr-14 8:56am    
Can any one help so that it can be valuable.
If you search the error in Google, you will find many solutions. Have you tried any of them?
Ankit_Sharma1987 25-Apr-14 9:15am    
Thanks 4 replying...
yes i have found out contenttype , cache part to add on post,
cache: false,
contentType: "application/x-www-form-urlencoded; charset=UTF-8",

I have used it but no change I get.

C#
jQuery(document).ready(function(){
//hi
});
 
Share this answer
 
This cause because of bug in jQuery particular version. if you dont want to change the jQuery version,

you can simply add this line in your code

$.support.cors = true;
or

3.you can add jquery migrate js file to resolve this. http://code.jquery.com/jquery-migrate-1.2.1.js
 
Share this answer
 
Hi,

I guess you missed 1 semi colon at the last of curly brace of jquery.

$("body").on("click", "#btnChat", function () {

$.ajax({
url: path + "case/SubmitChatRequest",
data: $("#frmRequestSubmit").serialize(),
type: "POST",
dataType: "json",
cache: false,
contentType: "application/x-www-form-urlencoded; charset=UTF-8",
success: function (data) {
alert("abc")
$("#divTicketRequest").html(fnhtmlNotEscape(data));
$("#imgAnimation").hide();

}
});--->missing semi colon
});---->missing semi colon
 
Share this answer
 
Please change your Jquery version.
I also faced the same problem in IE9 when I use jquery.js version 1.10.
when try it with version 1.8 the problem was solved.
 
Share this answer
 
Comments
mmmmaaarrk 10-Aug-15 5:01am    
How should I know which version of jquery am I going to use?
livinkalai 10-Aug-15 6:53am    
This cause because of bug in jQuery particular version. if you dont want to change the jQuery version,

you can simply add this line in your code

$.support.cors = true;
or

3.you can add jquery migrate js file to resolve this. http://code.jquery.com/jquery-migrate-1.2.1.js

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900