NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: Mike McLoughlin on June 29, 2009, 02:09:48 PM
-
I have a situation where, depending on the type of user (eg staff or student) they get to see a different FramePage/IndexPage.
I can establish at login what type of user they are but the "URL on Save" is set at GenerateForm and there doesn't seem to be any way to conditionally jump to a choice of "URL on save".
I tried with an intermediate Source Code procedure but this cannot be used as a URL (no HTML page generated).
Anybody found a way round this?
TIA
Mike
-
Hi Mike,
Set the LoginForm url on save to 'Framepage', '_top'
Set the frame url to, for ex: loc:RightFrame
Identify the user type setting a sessin value and
In the FramePage proc, Procedure Code embed
if p_web.gsv('your sv')=....
loc:RightFrame = 'ThisPage'
else
loc:RightFrame = 'ThisOtherPage'
end
Hope this helps,
Alberto
-
Thanks Alberto, but unfortunately that won't do it.
I need to do the conditional branch *before* the FramePage because I am calling a different Frameset and Frames.
regards
Mike
-
Hi Mike,
Make your "intermediate" page a netwebpage not a source procedure.
Or better yet, default to the most common frame. Then early in that frame procedure, before it does anything, jump to another frameset procedure if the session is logged in in a specific way.
Or even better, look in WebHandler for where the Frame is called, then make a decision there to override which frame procedure is called.
cheers
Bruce