user386430
user386430

Reputation: 4967

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

is it possible to check iframe url is loaded or some error in server?

Thanks

Upvotes: 0

Views: 746

Answers (3)

Kalu Singh Rao
Kalu Singh Rao

Reputation: 1697

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');
}
});

Upvotes: 1

Vanya Avchyan
Vanya Avchyan

Reputation: 880

You can use this code.

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

Upvotes: 0

wzr1337
wzr1337

Reputation: 3767

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

and

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

is probably what you are looking for, but you have to be a little more specific.

Upvotes: 0

Related Questions