IdealData Posted March 25, 2011 Posted March 25, 2011 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.
jaboda Posted April 18, 2011 Posted April 18, 2011 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
Recommended Posts
This topic is 5303 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now