mortalc Posted June 24, 2010 Share Posted June 24, 2010 Is it possible to automatically submit a form? All the inputs will be hidden (variables). Link to comment Share on other sites More sharing options...
ShadowMage Posted June 24, 2010 Share Posted June 24, 2010 Yes I suppose it is. Just use JavaScript. Link to comment Share on other sites More sharing options...
mortalc Posted June 25, 2010 Author Share Posted June 25, 2010 I've found this: formObject.submit() Is this what you meant?Just making sure. Link to comment Share on other sites More sharing options...
jeffman Posted June 25, 2010 Share Posted June 25, 2010 As long as formObject is a valid reference to a form element, then yes, the submit method will initiate the form submission process, just as if the user had clicked a submit button. The submit method is often called when a script must validate or update data before the submission takes place. Link to comment Share on other sites More sharing options...
mortalc Posted June 26, 2010 Author Share Posted June 26, 2010 so Document.getElementbyID("ID").submit() Link to comment Share on other sites More sharing options...
jeffman Posted June 26, 2010 Share Posted June 26, 2010 Yes. But watch your cases. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.