javascript - Ajax put to add XML entries into XML file -
i trying add together emails taken inputbox .txt file nowadays on webserver. here code :
email = document.getelementbyid("mail").value; $.ajax({ url: 'maillist.txt', datatype: 'text', type: 'put', data: email + '; ', success: function(data) { alert('should have work yay!'); } }); but doesn't work on browser. :(
i have tried using javascript classic methods no go well...
i need either set or post method, either jquery or js, able on net explorer 8 , firefox , chrome. emails should appear in text file as
email1@cooldomain.com; email2@cooldomain.com; .....
just works our in-house vba macro. :)
also, there method dropping info xml files (aka create new xml entry form data)? , also, possible upload file client side server side using jquery? because need users fill forms , drop info xml file, , link file take that. way add together stuff xml , show brand new webpage.
kindoff "reddit" or "4chan" if know references.
thanks time, appreciated!
you can't post browser text file on server side. need have sort of code on server side receive http put, , persist info file local server.
javascript jquery ajax xml http
No comments:
Post a Comment