I'm not trying to load javascript with jquery or anything of that sort.
Currently I'm modifying swfupload (if you'r familiar with it, great, otherwise it shouldn't matter) to work with a website I'm building. I need the ability to upload, store and delete files. I have the uploading and storing working great.
I have a file called handlers.js that runs most of the interactions. I'd like to modify one of the functions (the one that is called when a user clicks on a little cancel button) to call a php file. The only way I know how to do this is by using jquery's load function. But I can't seem to get it to work?
How can I access these things in a javascript file?
I've tried:
alert($("#messages").html());
$("#messages").load("delete_file.php", {name: this.id});
Messages is a div in my page and none of these things are working. Though I don't get any errors...
Any help would be great!