You are here: irt.org | BBS | Re: Preventing a user from returning to previous page [This BBS is closed]
Posted by Chris Woyton on June 11, 1998 at 17:37:58:
In Reply to: Re: Preventing a user from returning to previous page posted by Martin Webb on June 11, 1998 at 15:02:11:
Martin,
Your advice seemed to work pretty well with one exception. Since the originating document of the survey referred to an .idc file for a SQL query, I needed to pass the field values to the second page.
When I setup the location href, I used the target idc, like this:
location.href='survey.idc?field_name=<%idc.fieldname%>...'
This had the interesting effect of looping the query about 400 times (until I stopped it), and dumping each loop into the SQL server. :)
I"ll have to find another way to do this apparently. But I appreciate your incredibly prompt response.
Thanks again!
: Try using the locations replace method. Instead of:
: location.href = 'nextpage.html';
: use:
: location.replace ('nextpage.html');
: To ensure it works correctly on browsers that don't support the replace () method, code it as:
: if (document.images)
: location.replace ('nextpage.html');
: else
: location.href = 'nextpage.html';
Follow-ups:
You are here: irt.org | BBS | Re: Preventing a user from returning to previous page [This BBS is closed]