xml - How to avoid IE warning message when consuming a web service using jQuery -
Someone has posted the following solution to this question to consume web services with this question:
Function InfoByDate (sDate, eDate) {var divToBeWorkedOn = '#AjaxPlaceHolder'; Var webMethod = 'http: //MyWebService/Web.asmx/GetInfoByDates' var parameter = "{' sDate ':'" + sDate + "',' eDate ':' '+ eDate +"'} "$ .jx ( {Type: "POST", url: webMethod, Data: Parameter, Content Type: "Application / Jason; Charset = UTF-8", Data Type: "Jason", Success: Function (msg) {$ (divToBeWorkedOn). .d);}, error: function (e) {$ (divToBeWorkedOn) .HTML ("unavailable");}})}}
all went well, and The data I want is returned, but, I always get a warning about IE 'This page is available for information. This is a security risk ..., and the opera does not load information due to "security violation" error.
How do I recover it? I have to be with Javascript because the code should be placed in those pages where I do not have access to server programming features.
Thanks guys.
You can only send your local d You can only access Web services from Maine. You will need to create a proxy locally that passes the data returned from that remote web service. That is, if the web service is truly remote, then use ws for any relative or full path.
Comments
Post a Comment