Possible Duplicate:
$.post throwing “Illegal invocation ”
I am getting this error,
Uncaught TypeError: Illegal invocation.
And when i expand it i get these errors.
- upload test.js:53
- (anonymous function) test.js:42
Here is my code.
$("#continue").click(function() {
upload();
alert("clicked");
return false;
});
function upload(){
$.post('http://127.0.0.1/web/upload/', {
image_src:image_src,
page_domain:page_domain,
product_name:productName
}, function(data){
$("#MAIN").html(data);
})
return false;
}
I have looked at other versions of this error over stackoverflow but none seem to have a working answer for my code. Thanks for reading.