I’m using the document.form.submit() function for a rather large input form (hundreds of fields, it’s an inventory application). I’m calling this after the user has been idle for a certain amount of time and I would like to save any data they’ve typed. When I try this the page reloads (the action is #) but any new text typed in the fields is not passed in the REQUEST, so I don’t get to put it in the DB. Is there some fundamental reason why this happens or is my code just not playing nice together (I’m using the EXTJS grid view to show the form and a library for tracking idle time)? Thanks, Robert
I’m using the document.form.submit() function for a rather large input form (hundreds of fields,
Share
I guess I put the answer here. What I found was that doing this: setTimeout(‘frm.submit();’, 2000); caused the page to reload but didn’t submit the form. When I did this: frm.submit(); The form was submitted and the data was passed. I don’t know why the first way didn’t work, but I don’t need to know that:)