long story short, I ran into a weird difference between input type submit and using the javascript form submit function. when I use the regular input element to submit, post data goes through fine, but not when I use the javascript function. I'm usin the javascript for form validation so I can't really just drop that. any thoughts?
with
Code:
<input type="button" name="trackSubmit" value="Add Song" onclick="javascript:submitTrackForm()"/>
vs
<input type="submit" name="Submit" value="Add Song"/>
with
Code:
function submitTrackForm() {
var trackForm = document.forms["trackManager"];
if(validateForm(trackForm)) {
lockForm(trackForm);
loadingDiv.style.visibility = "visible";
trackForm.submit();
}
}
Last edited: