dynamic menus passing variables

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
sbraun
Beginner
Beginner
Posts: 7
Joined: Wed Dec 06, 2006 4:03 am

dynamic menus passing variables

Post by sbraun »

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
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Hi,

Sounds like you need server side scripting to get this to work.

Do you have access to .php or .asp - If so, try renaming the menuselectff.txt to menuselectff.php or menuselectff.asp and then insert some server side scripting to parse the required values into the menu data file
sbraun
Beginner
Beginner
Posts: 7
Joined: Wed Dec 06, 2006 4:03 am

Post by sbraun »

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
Post Reply