July 7, 200124 yr Newbies Hey all! I have a form which I submit to perform a "-find" action. The problem is I want the form to automatically submit when the page loads. I thought I could use the Javascript onload command, and then do a frmSubmit.submit(); command, but apparently a submit() command isn't exactly the same as pressing a submit button. How can I make a page submit automatically and still perform the "-find" action?? Thanks! C
July 7, 200124 yr Ok, I can not help you with the JavaScript. Are you familiar with the html <meta> tag? Intelligently written it may well perform the task you desire without the need for JavaScript.
July 8, 200124 yr Use a page like this to start with: <body on..load="javascript:document.startfm.submit();"> <form name="startfm" action="FMPro" method="post"> <input type="hidden" name="-db" value="StreetChecker3.fp5"> <input type="hidden" name="-lay" value="CGIfields"> <input type="hidden" name="-format" value="get_street.html"> <input type="hidden" name="streetname" value="Any Rd"> <input type="hidden" name="-find"> </form></body></html> The "on..load" should be "onload". I needed to do that so it would display properly here. Hope this helps. Garry
Create an account or sign in to comment