Hey WolfShade. Not sure that helps. If it does help I'm not sure why it would help as the second parameter could be any value. The submit is supposed to submit to /FAMediaTracker.asp. the value in the second parameter is a filename that will be stored in a tracking database and should be inserted into the form frmVideoTrackNLog and submited to the next page where it should update the databse and then return.
aj_nsc thanks for the idea. That doesn't submit the form either. I have tried many different ways to address the form, like document.forms[0].submit() and document.forms['frmVideoTrackNLog'].submit() and the like. It seem that there is something wrong with the form. Where I use this code elsewhere it works fine. If I code onclick="frmVideoTrackNLog.submit();alert();" the submit doesn't happen but the alert does.
In which browser are you testing? IE should give you a yellow triangle with a black exclamation mark, down lower left corner of browser; double click it to see the error message. FF doesn't do much unless either A) FireBug is installed and active, or 2) you open the Error Console window. If it's not submitting AND not giving an error message, then the submit isn't even being called; the event is not triggering.
I am testing ith IE 8 and the developer tools, FireFox 3.6 and Firebug, Google Chrome 9, Opera 11 and Safari 4 which BTW it works in Safari. Go figure.
If neither IE or FF are giving an error message, then either the function works and does absolutely nothing (unlikely), or the page is being reset before the error message can be displayed. Still, even in that situation FF's Error Console will keep a record of it, and FireBug will notice it, too.
Bookmarks