I am trying to submit a form via ajax using:
$(document).ready(function(){
$("#ajax-form").submit(function(){
$.post(
"albums.php",
$("#ajax-form").serialize(),
function(){
}
);
return false;
});
});
I am posting data to the facebook graph api. I need to send the form text fields and image data to the remote facebook api server. Is this possible? Thanks!
This is a simple jQuery plugin to implement and works for me for running file uploads seemingly via AJAX. It is meant to run on forms of all kinds, but it does support file uploads. Though it uses iFrames, it runs everything silently without notice, and it works flawlessly every time for me:
http://jquery.malsup.com/form/