Topic: Load PHP File into Div
I want to load a php file into a div on UploadComplete.
Javascript is not my strong point but Ive tried this snippet in the form submit function:
// Client side form validation
$('form').submit(function(e) {
var uploader = $('#uploader').pluploadQueue();
//setup FileUploaded Action
uploader.bind('UploadComplete', function(up, files) {
$("#imagelist").load('images_list.php');
});
With the Div below the form:
<form ..>
<div id="uploader">
<p>You browser doesn't have Flash, Silverlight, Gears, BrowserPlus or HTML5 support.</p>
</div>
</form>
<div id='imagelist' class='imagelist'></div>
Can anyone point me in the right direction as Im sure this is really simple for someone with Javascript knowledge (which isnt me)? I could even be placing this in the wrong place within the function?