No i wouldn't recommend doing it that way. I dont even think its possible without know the innards of the menu. Once you authenticate the user, just have a different menu appear using an if/else statement, two options below.
////THIS EXAMPLE YOU ALWAYS POINT TO A PARTICULAR MENU BUT YOU CREATE IT DIFFERENTLY BASED ON AUTHENTICATION
...
aI("text=Your Options;showmenu=dynamicMenu;");
if( userIsGuest )
{
with(milonic=new menuname("dynamicMenu")){
....
aI("text=Your a gues so Login;url=login.asp;");
....
}
if( userIsMember )
{
with(milonic=new menuname("dynamicMenu")){
....
aI("text=Welcome Member;url=yourMemberStuff.asp;");
....
}
....
///THIS EXAMPLE THERE ARE TWO MENUS, BUT YOU POINT TO DIFFERENT ONES BASED ON AUTHENTICATION
if( userIsGuest )
{
aI("text=Your Options;showmenu=guestMenu;");
}
if( userIsMember )
{
aI("text=Your Options;showmenu=memberMenu;");
}
with(milonic=new menuname("guestMenu")){
....
aI("text=Your a gues so Login;url=login.asp;");
....
with(milonic=new menuname("memberMenu")){
....
aI("text=Welcome Member;url=yourMemberStuff.asp;");
....
Dave Hergert
Software Engineer
"Helping to make the menu better, one at a time."
Umm, ok I shoulda elaborated. My fault Maz. When I say userIsMember and userIsGuest, those were example variables I made up that would be your test as to whether someone was authenticated. You have to declare these variables and set them somewhere (usually when you authenticate them).
Like before all the menu code, you would grab their username and password from textboxes and then pass them to a database or check them against a file, and if they successfully login (they match a user in the DB) then you set userIsMember to TRUE and userIsGuest to FALSE. Vice versa when they are guests. See what I meant? It would actually be easier to set one variable called isMember to FALSE and then check to see if they are a member, and set it to true if they are, and leave it false if they arent. Then in your if/else statements, you say
if( isMember ){ ///display the member menu stuff // }
if( !isMember ){ ///display the guest menu stuff // }
The ! is front of the variable says "NOT isMember" so that would mean they are a guest. Sorry I confused you. You probably are getting the style error because of your undefined variable too.
Dave Hergert
Software Engineer
"Helping to make the menu better, one at a time."
Second guessing I thought that might be the problem, and I did leave off is-not-a-member because there was no need to check for general display.
I won't know the outcome until its set up properly.