jQWidgets Forums

jQuery UI Widgets Forums General Discussions Web service call works in IE but not in Firefox and Chrome.

This topic contains 4 replies, has 2 voices, and was last updated by  rameshgurunathan 12 years, 6 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • Hi there.

    I used jqwidgets in my project to try out. I’ve created a sample web page using jqxdropdownlist, gird, combo and ect… I am having a problem when calling web service from jquery ajax call. It works fine in IE but not works in Firefox and Chrome. The error message

    Error message from Firefox

    Error : {“readyState”:0,”status”:0,”statusText”:”[Exception… \”Failure\” nsresult: \”0x80004005 (NS_ERROR_FAILURE)\” location: \”JS frame :: file:///E:/projects/TC_TFS/ACP_Web/AUT/Admission/jqWidgets/scripts/jquery-1.8.2.min.js :: :: line 2\” data: no]”}error[Exception… “Failure” nsresult: “0x80004005 (NS_ERROR_FAILURE)” location: “JS frame :: file:///E:/projects/TC_TFS/ACP_Web/AUT/Admission/jqWidgets/scripts/jquery-1.8.2.min.js :: :: line 2” data: no]

    [Exception… “Failure” nsresult: “0x80004005 (NS_ERROR_FAILURE)” location: “JS frame :: file:///E:/projects/TC_TFS/ACP_Web/AUT/Admission/jqWidgets/scripts/jquery-1.8.2.min.js :: :: line 2” data: no]

    Error message from Chrome

    Network_Err: XMLHttpRequest Exception 101″

    When google it people say It is because of CORS. Can anyone help me to solve this issue?.

    I expect reply ASAP. Thanks in advance.


    Peter Stoev
    Keymaster

    Hi rameshgurunathan,

    You may take a look at the help topics in the ASP .NET Integration section of our Online Documentation. There is a help topic about binding the Grid to a Web Service: asp.net-web-service-grid.htm. Also, make sure that you test on a Web Server, not locally by just clicking on the files. The jQuery Ajax function expects a Web Server. otherwise it may raise cross-domain exception.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Hi Perer,

    I already tried that .net integration. It works fine in all browser. That is not the thing I asked about. The thing is I am calling .net web-service using ajax call. I created a HTML form with jqx controls. when running html form in IE It works that is data is coming from web service and I could bind the data in all controls. but when running the form in other browser. the browser blocks or something. that is because CORS Or Same Origin Policy. This is the Issue. I just want to know Should I write to allow cross domain access. in my server side or Should I use JSONP call? here is a dilemma.

    Any idea? or suggestions.


    Peter Stoev
    Keymaster

    Hi rameshgurunathan,

    If you want to make cross domain calls, you should use JSONP with Ajax. You may take a look at the Grid’s Toolbar sample which uses JSONP as a data source.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Hi Peter,
    Thank you very much I will try.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.