Hi All, Nice menus here. Love 'em.
Q: I set a variable early in the menu_data.js file. How do I call that variable back into a subMenu as part of the url?
See...
<script>
var testvar='choice3';
aI("text=any;url=http://www.mydomain.com?passvar=document.write(testvar);");
I want the url to link to
http://www.mydomain.com?passvar=choice3
Thanks in advance for any insight
How do I call a javascritp variable inside of a submenu?
Try this:
Hope this helps,
Andy
Code: Select all
aI("text=any;url=http://www.mydomain.com?passvar="+testvar);
Andy
This functions works, but it turns out that it is not going to do what I need....
What I really need is to place a variable inside of a url, where the variable is the parent menu text selection. The parent menu text selection is dynamic.
How do I make this work:
aI("text=sometext;url=http://mydomain/mydirectory/myfile.tpl? ... tselection;");
Thanks for any assistance,
sbraun
What I really need is to place a variable inside of a url, where the variable is the parent menu text selection. The parent menu text selection is dynamic.
How do I make this work:
aI("text=sometext;url=http://mydomain/mydirectory/myfile.tpl? ... tselection;");
Thanks for any assistance,
sbraun