Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Using Javascript to submit a "-find" command

Featured Replies

  • 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

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.

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

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.