JavaScript.CoolDev.Com Support Forums

Any questions related to JavaScript menu and JavaScript tree menu by Javascript.CoolDev.Com

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to transport variables in the menu URL?

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    JavaScript.CoolDev.Com Forum Index -> COOLjsMenu
Author Message
emadrigal



Joined: 06 Jun 2006
Posts: 2
Location: mex

PostPosted: Wed Jun 07, 2006 6:44 pm    Post subject: How to transport variables in the menu URL? Reply with quote

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

PostPosted: Wed Jun 07, 2006 7:53 pm    Post subject: Reply with quote

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

PostPosted: Fri Jun 09, 2006 10:44 pm    Post subject: It works, thanks! Reply with quote

Alex, your suggestion works fine and fit well to mi requirement.

Thanks a lot.

Enrique.
Back to top
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    JavaScript.CoolDev.Com Forum Index -> COOLjsMenu All times are GMT
Page 1 of 1