| Author |
Message |
emadrigal
Joined: 06 Jun 2006 Posts: 2 Location: mex
|
Posted: Wed Jun 07, 2006 6:44 pm Post subject: How to transport variables in the menu URL? |
|
|
Hi!,
I'm using COOLjsMenu VER 2.4, and I need to manage dynamic URL in my menu. I´m trynig to pass variables through the URL of my page. How can I get this feature in my menu?
I need to pass something like this from the asp page which contains the menu to the section of the URL in the file menu_items.js:
"http://mysite/mypage/home/caplider_nrdepd.asp?enviar=Enviar&projid=<%response.Write(request.QueryString("projid"));%>&wres_id=<%response.Write(oPJSession.oUser.nUserID)%>&desc="+dataForm.desc.value+"&fechaf="+dataForm.ano.value+dataForm.mese.value+dataForm.diae.value+"&respon="+dataForm.reg3.value+""
How can I do this?
I really appreciate any suggestion about this issue.
Thanks in advance!
Enrique |
|
| Back to top |
|
 |
AlexKunin Developer
Joined: 03 Jan 2003 Posts: 1191
|
Posted: Wed Jun 07, 2006 7:53 pm Post subject: |
|
|
You have to make ASP interpreter to process .js files - somewhere in IIS' configuration applet.
Alternatively you can include menu_items.js code right into HTML code:
| Code: | ...
<script>
var STYLE = { ... };
var MENU_ITEMS = [
...
];
</script>
... |
|
|
| Back to top |
|
 |
emadrigal
Joined: 06 Jun 2006 Posts: 2 Location: mex
|
Posted: Fri Jun 09, 2006 10:44 pm Post subject: It works, thanks! |
|
|
Alex, your suggestion works fine and fit well to mi requirement.
Thanks a lot.
Enrique. |
|
| Back to top |
|
 |
|