javascript - How to upload a HTML file to a hosting platform and then upload it -


i working on google chrome extension users create html files other users extension can load. trying use ajax commands, learned bit of jquery, send simple message server, doesn't seem work. father has website hosted cpanel, i'm thinking of using website server @ beginning, , storing files there. request sent if user presses "save" button. code:

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


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -