NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: lanmicro on August 10, 2007, 05:23:26 PM

Title: Refresh Menu and select menu item after login
Post by: lanmicro on August 10, 2007, 05:23:26 PM
Hi Guys,

I would like to refresh the menu after login (some items are dependent on whether the user is logged in) and choose one of the newly exposed menu items to display in the right_frame.

Is this possible?
Title: Re: Refresh Menu and select menu item after login
Post by: kevin plummer on August 11, 2007, 08:48:46 PM
yep - just set a session variable when they log in and use this in the hide condition.
Title: Re: Refresh Menu and select menu item after login
Post by: lanmicro on August 11, 2007, 10:18:36 PM
Hi Kevin,

I know how to hide menu items conditionally.  That's not my question. 

The question is can I refresh the menu AND select one of the menu items so that it opens up in the right_frame after a person logs in.
Title: Re: Refresh Menu and select menu item after login
Post by: Bruce on August 12, 2007, 10:41:04 PM
Hi Greg,

The easiest way is to simply refresh the "framepage", and set the target to '_top' -
ie the URL on the save button (ie login button) is 'FramePage' and the target is '_top'.

Then in the Framepage procedure make the "starting url" for the right hand frame an expression. In other words, a variable.

An alternative way is to read FAQ #18.

Cheers
Bruce