简体   繁体   English

如何在Java脚本或jquery中调用https url ajax请求

[英]How to call https url ajax request in java script or jquery

Can anybody tell How to call https url ajax request in java script or jquery 任何人都可以告诉如何在Java脚本或jquery中调用https url ajax请求

is it possible to check iframe url is loaded or some error in server? 是否可以检查iframe网址是否已加载或服务器中是否存在某些错误?

Thanks 谢谢

It may be helpful for you. 这可能对您有帮助。

$.ajax({
    type: "GET", 
    url: "yoururl", // like url/methodname
    params : {Id : "1"} // pass data to method
    succss:function(){
        alert('Sucessfully');
    }
    error:function(error){
    alert('Error');
}
});

http://api.jquery.com/jquery.ajax/ http://api.jquery.com/jquery.ajax/

and

http://www.w3schools.com/xml/dom_http.asp http://www.w3schools.com/xml/dom_http.asp

is probably what you are looking for, but you have to be a little more specific. 可能是您要寻找的东西,但是您必须更加具体。

You can use this code. 您可以使用此代码。

 $.ajax({
    type: "GET", 
    url: "https://someurl"
    succss:function(){
        alert('Everything is OK');
    },
    error:function(error){
        console.log(error);
    }
});

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM