Tech Notes
Tech Notes |
Controlling page flow
Question
I would like to change the content of the url the moment the surfer arrives on a new page, in other words, when the surfer presses the 'reload' button the app will update this page, not execute the previous post again.
One Answer, No Delphi Required
(~match|(~litPosted~)=yes|(~page|targetPageID~)~) (~set|litPosted=yes~) (~webActionPostData.execute~) (~page|targetPageID~)
Better Answer, Requires Delphi
This not ideal because the page will be generated twice, but it does work.
In Delphi:
StringVar['AfterBounce'] := 'Yes'; Response.Send( MacroStart + 'Bounce|MyPage' + MacroEnd);
In a WHTEKO file:
// the following is within the page named MyPage <head> (~MATCH|(~AfterBounce~)~Yes|(~chMetaStaticRefresh~)~) (~SET|AfterBounce=No~) </head> <whdroplet name="chMetaStaticRefresh"> <META http-equiv="Refresh" content="0; URL=(~ACTION|(~PageID~)~)"> </whdroplet>
Copyright © 1995-2010 HREF Tools Corp. All Rights Reserved Worldwide. 20-Feb-2007.
Running DynHelp.exe v1.2.0.6 on WebHub-v2.125 built by D14
Calc time: 204 ms
Running DynHelp.exe v1.2.0.6 on WebHub-v2.125 built by D14
Calc time: 204 ms

