We’re having a web page with a dialog list. On the OnChange event of this dialog list field, we’re using the JavaScript _doClick(‘$Refresh’, this, null, null) to refresh the page and recalculate some hidden fields…
This works fine unless the user keeps changing values in the dialog box during the refresh of the page. If this happens, the page goes completely blank after a while. In the log, there is the associated error message I"nvalid Post request exception".
Subject: Constant refreshing on web page via dialog list causes blank page to be displayed
Nadine,
I’ve seen this occur when a second refresh occurs before the form has finished reloading. Similar to the user who clicks “Submit” over and over because they don’t see anything happening. My guess is that the HTTP Server (Domino most likely) gets confused by multiple posts from the same document, but this is just a guess.
I would say if it doesn’t occur when they make one selection and wait for it to reload, then you may need to make something that doesn’t allow it to refresh until it finishes loading. There are probably examples of this or the R4/5 forum for the submit button, but basically, when the code triggers in the onChange, it sets a javascript variable. If that variable is set, and another onChange triggers, it stops it with some message like “Please wait”.
The downside of this approach is that if a dialog list has this, and your user uses the keyboard arrow keys, they won’t be so happy. They are probably the same ones that get the problem. Perhaps in this case, move the code from onChange to an exiting event if possible so it only refreshes once they have made their final choice.
Subject: RE: Constant refreshing on web page via dialog list causes blank page to be displayed
Hi Robert,Yes, I tried to use a Javascript variable set in the OnLoad event of the form:
var isRefreshed = “NO”;
then in the Onchange Event of the drop-down list, I only do the refresh if the variable is set to “NO”, but it seems the value isn’t known at this time anymore.