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.

Intercepting Jave and HTML errors in IWP

Featured Replies

In my IWP app I need to trap the "Bad Request" and "Exceeded maximum users" messages.

The "Bad Request" will almost certainly occur as I have a very short idle duration (< 5mins), and Exceeded maximum users" will occur as I'm using FMPro which is limited to 5 web users (no money to upgrade FMS).

Basically the IWP app collects time sheet data from in-house workers using web browsers on desktops, androids, iPhone and iPad. In order to optimise performance for the web users the IWP app is running an OnTimer that will only deliver data to the main server (FMS) when there no web users connected - accordingly the web users have a short idle period so that I can maximise the data delivery to the server.

There could (will) also be times when the IWP user limit will be breached (login is automatic to a single IWP enabled account), in which case I want to forward the web client to an secondary IWP "server" running the same IWP app (and possibly to a third) - effectively extending the IWP "server" on demand. My IWP "servers" are virtual machines (XP) and I also have my own DNS with OS X Server.

I've had a good look through the html and javascript files in the Web Support (FM Web Publishing) but lack the knowledge to understand where to catch the errors, and subsequently what code to execute.

Any one got any pointers, or even a worked example?

Many thanks.

  • 2 weeks later...
  • Author

Lots of views, but no clues.

  • 2 weeks later...

It is possible to change the Bad Request and user limit exceeded error messages in httperrs.js in the IWP language folder.

If you wish to change where it redirects to it is possible by editing servererr2.html. It might be possible to remove the dialog too but I haven't tested that.

HTH

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.