Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (request.myMessage == "Save"){
- $.ajax({
- type: "POST",
- url: "https://foobar.com:2078",
- username: "foo@bar.com",
- password: "foo",
- data: "Hello world",
- success: function(){
- console.log("foo");
- },
- error: function(){
- console.log("not working");
- }
- });
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement