document.getElementById("tweetform").submit is not a function?
- by Abs
Hello all,
I am using Firefox and I've been reading some forums claiming this doesn't work in firefox but it has been working for me for the last few days but has stopped working and I can not figure out why.
I make a AXAX POST Request using an IFrame. When I get the response I use this:
function startLoad(){
$.get("update.php", function(data){
if(data==''){
startLoad();
}
else{
document.getElementById("tweetform").submit();
}
});
}
However, from firebug, I get this:
document.getElementById("tweetform").submit is not a function
[Break on this error] document.getElementById("tweetform").submit();
I know submit exists, but what is going on?
Thanks all