document.getElementById("tweetform").submit is not a function?
Posted
by Abs
on Stack Overflow
See other posts from Stack Overflow
or by Abs
Published on 2009-07-08T22:38:38Z
Indexed on
2010/04/22
10:33 UTC
Read the original article
Hit count: 189
JavaScript
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
© Stack Overflow or respective owner