September 26, 200124 yr Newbies 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...
September 27, 200124 yr 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!
September 27, 200124 yr 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.
September 28, 200124 yr Author Newbies 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.
Create an account or sign in to comment