Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Page Expiration
Message
 
To
29/05/2001 21:13:34
General information
Forum:
Visual FoxPro
Category:
FoxWeb
Title:
Miscellaneous
Thread ID:
00505351
Message ID:
00512592
Views:
15
>Hi Bret,
>
>I have a small in-house inventory ordering html app. I saw the code below you posted and I put in the last page of the ordering process. I call this page the Order Confirmation Page and it that shows the user what they ordered, and gives them an order # so that they can refer to it later. They get to this page from a page I call the "Submit Order Page"
>
>I don't want the user to hit the back button and be able to submit the order again and expiring the page has not worked flawlessly.
>
>So I put the following code in and I think I must have done something wrong because as soon as they hit the Submit button on the "Submit Order Page", instead of sending them to the "Order Confirmation Page" which gives them the info above that I just mentioned, it automatically launches them to the PagetoGoto.htm page that I specified in the javascript.
>
>What am I doing wrong here? Thanks. -Rick
>
>
>>The Java code to remove a page from history is:
>>
>>< SCRIPT LANGUAGE="JavaScript">
>> self.location.replace('PageToGoTo.htm’) ;
>>< / SCRIPT>
>>
>>This will replace the current page they are on in the history with the page they need to go to. Thus a Back would not get them back to the data page.

To clear things up a little, here I go:

Here is actually how the JavaScript is supposed to work.
Lets say I am sitting on page A.htm and then I go to page B.htm.
On page B.htm I have the following JavaScript which is executed
when I press a button.
< SCRIPT LANGUAGE="JavaScript">
self.location.replace('C.htm’) ;
< / SCRIPT>
Page A and B are currently in the History list as I sit on page B.htm.
When the button on page B.htm is pressed and the above script is executed,
the browser will overwrite B.htm in the history list with C.htm and then go to C.htm.

Now, If I press the back button, I will go to page A.htm,
B.htm is no longer in the list.
I have not found a way to manipulate the history list at will.

I hope this helps clear up a misunderstanding with the script.
Bret Hobbs

"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope
Previous
Reply
Map
View

Click here to load this message in the networking platform