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.

Automating HTTP form posts with cookies, etc without plugins

Featured Replies

Another technique that recently occurred to me relates to injecting JavaScript into an already-loaded web page within webviewer. Interestingly, this can be accomplished without *any* plugins.

The utility in this is that you can submit a form post to a site requiring cookies, previous login, etc, and specify *only* those fields such as login/password, no need to code hidden fields, tokens, session parameter fields, dynamic timestamps, etc.

To achieve this, after, say, loading http://www.google.com, you pause until page loads, then set the url to "javascript:void(document.f.q.value = 'whatyouwant to search for');" this will cause the search field to go to "whatyouwant to search for"; you'll see it in webviewer as if you typed it. Pause again, then set the URL to "javascript:document.f.submit();" and pause again; the form will submit. Goggle isn't the most useful example, since it can be searched with a 'get' request. By setting the javascript to void you are suppressing a return value so the current page is not lost. This should allow you to run Javascripts to click buttons on an external page, etc without plugins.

This technique works because a javascript: in the URL causes the javascript to run immediately.

  • 1 month later...

Hi fseipel. My attempt at this technique was unsuccessful. I just tried pasting in the javascript command into my url field after the page loaded. Can you point out what I'm doing wrong or post a simple demo? Thanks in advance.

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.