NetTalk Central

Author Topic: Refresh Menu and select menu item after login  (Read 5734 times)

lanmicro

  • Full Member
  • ***
  • Posts: 112
    • View Profile
    • Email
Refresh Menu and select menu item after login
« 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?
Gregory C. Bailey

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: Refresh Menu and select menu item after login
« Reply #1 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.

lanmicro

  • Full Member
  • ***
  • Posts: 112
    • View Profile
    • Email
Re: Refresh Menu and select menu item after login
« Reply #2 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.
Gregory C. Bailey

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Refresh Menu and select menu item after login
« Reply #3 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