Re: How to use jQuery ajax instead of XMLHttpRequest

See all posts See thread Reply

Re: How to use jQuery ajax instead of XMLHttpRequest new!
by Malinga, 11 years, 2 months ago
@Colin,

Happy to say this... i could upload an image asynchronusly without using XMLHttpRequest.

use this amazing plugin. http://malsup.github.io/jquery.form.js

example:
//reservation approval count
$('#formAddBanner').ajaxForm({
  url:'upload.php',
  data:{addBanner:1},
  type:'POST',
  success:    function(data) { 
    alert(data); 
  }
});

Again thank you very much for the code.Reply