Hi All,
I have a sub_menu that is created dynamically by a server side product. It writes a file named menuselectff.txt
[writefile ../menuselectff.txt][Search db=../signin/data/signin.db&geSSKUdata=1&eqSTATUSdatarq=Active&asSTUDENT_NAMELsort=1][founditems]
aI("text=[STUDENT_NAMEF] [STUDENT_NAMEL];showmenu=menugg;");
[/founditems][/search]
[/writefile]
I call this menugg this way:
with(milonic=new menuname("menugg")){
style=menuStyle;
openonclick=true;
aI("text=Study Hall Passes;url=http://faust.blueboxgrid.com/crew/honor ... ENT_NAMEF1] [STUDENT_NAMEL1];target=_self;");
}
My question is
How do I get the values from the search [STUDENT_NAMEF] [STUDENT_NAMEL] passed into the next menu choice so that they equal [STUDENT_NAMEF1] [STUDENT_NAMEL1].
I simply want to pass 2 variables from one sub menu to another sub menu.
Thanks for any assistance.
sbraun1@twcny.rr.com
dynamic menus passing variables
Thanks for getting back to me Andy,
Yes, I am using server side application (SmithMicro's WebDNA) to develop the dynamic part of the menu, and that's working fine.
I'm just at a loss on how to capture this list of student names from menuff, and insert it into the url= of the next submenus.
I really just need to move the menu text, aI("text= STUDENT_NAMEF1 STUDENT_NAMEL1;"); from submenu menugg, and insert it into the next submenu's url:
aI("text=Study Hall Passes;url=http://faust.blueboxgrid.com/crew/honor ... ENT_NAMEF1] [STUDENT_NAMEL1];target=_self;");
I've been trying to work with the following function:
function mm_getItemNumberProperty(menuName, itemNum)
{
var menuNum = getMenuByName(menuName);
if (itemNum >= _m[menuNum][0].length) return -1;
return _mi[_m[menuNum][0][itemNum]][1];
}
and that's called from :
title = mm_getItemNumberProperty('menuff',4);
But how do I get the '4' above to be a variable?
Thanks for any....
sbraun
Yes, I am using server side application (SmithMicro's WebDNA) to develop the dynamic part of the menu, and that's working fine.
I'm just at a loss on how to capture this list of student names from menuff, and insert it into the url= of the next submenus.
I really just need to move the menu text, aI("text= STUDENT_NAMEF1 STUDENT_NAMEL1;"); from submenu menugg, and insert it into the next submenu's url:
aI("text=Study Hall Passes;url=http://faust.blueboxgrid.com/crew/honor ... ENT_NAMEF1] [STUDENT_NAMEL1];target=_self;");
I've been trying to work with the following function:
function mm_getItemNumberProperty(menuName, itemNum)
{
var menuNum = getMenuByName(menuName);
if (itemNum >= _m[menuNum][0].length) return -1;
return _mi[_m[menuNum][0][itemNum]][1];
}
and that's called from :
title = mm_getItemNumberProperty('menuff',4);
But how do I get the '4' above to be a variable?
Thanks for any....
sbraun