Newbies paulvaswani Posted September 26, 2001 Newbies Posted September 26, 2001 This is probably a complete newbie question, but here goes... I have a very basic web site built around the pages generated automatically by Homepage, using a query page, results page and record detail page. This all works quite well, except that if the 'refresh' button is pressed while in the results page a database error is returned. I assume that this is because the page is being re-called without the form data which initially was passed to it. There must be a simple way around this, surely...
Vaughan Posted September 27, 2001 Posted September 27, 2001 No, there's not really a way around it. If the results were generated by a form submit the error will appear. If the resuts were generated by a URL the error doesn't occur. The error is browser-dependent: Netscape asks if you want to resubmit the data, MSIE does not. It may vary with versions too. Of course, somebody might have a java or javaScript work-around!
Keith M. Davie Posted September 27, 2001 Posted September 27, 2001 Sometimes using a meta tag's refresh capabilities can be of value. This is especially true if a form has been submitted using a -new action tag. When that is the case, it seems best to direct the success page through a blank meta tag page which then performs a -find on the db to locate the record just created. Thus a client who clicks Refresh (IE) or Reload (NN) will reprocess the -find action and not create duplicate record problems caused by reprocessing a -new action tag.
Newbies paulvaswani Posted September 28, 2001 Author Newbies Posted September 28, 2001 Do you think it might work to reproduce my form in the target page, with no visible elements and then populate it with data and resumbit it via Jscript when the page is refreshed? I'm not sure whether this is a viable possibility or not. Thanks, Paul.
Recommended Posts
This topic is 8526 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