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 

Custom link in menu_item.js

 
Post new topic   Reply to topic    JavaScript.CoolDev.Com Forum Index -> COOLjsMenu
Author Message
corto



Joined: 24 Feb 2005
Posts: 10

PostPosted: Sat Oct 01, 2005 4:40 pm    Post subject: Custom link in menu_item.js Reply with quote

Hi!

Is it possible to request a session in url?
I tried code below but it didn't work (menu disappeared):

{code:"Test", url:"sfs.asp?id_page=1&language=<%=Session("language")%>"},

Any suggestions?
Back to top
corto



Joined: 24 Feb 2005
Posts: 10

PostPosted: Mon Oct 10, 2005 10:09 am    Post subject: Reply with quote

Should i use Javascript?

Any help would be appreciated.
Back to top
Victor_Chuiko
Support Team


Joined: 12 Apr 2005
Posts: 145

PostPosted: Tue Oct 11, 2005 7:55 am    Post subject: Reply with quote

You need to use this structure:

Code:
<script type="text/javascript">
var MENU_ITEMS = ...
in this part of code you can use such construction as <%= ... %>
</script>


You should place this code in your .asp file before menu initialization.
Back to top
corto



Joined: 24 Feb 2005
Posts: 10

PostPosted: Tue Oct 11, 2005 9:07 am    Post subject: Reply with quote

Works great - thanks a lot!!!
Back to top
Costa



Joined: 12 Jul 2007
Posts: 2

PostPosted: Thu Jul 12, 2007 5:02 pm    Post subject: Reply with quote

I am trying to do the same thing, but I am not understanding how to implement the answer given. I have tried the following..

{code:"Test", url:'somepage.asp?net_id=<%=Session("netID")%>'},
Back to top
AlexKunin
Developer


Joined: 03 Jan 2003
Posts: 1191

PostPosted: Thu Jul 12, 2007 8:06 pm    Post subject: Reply with quote

Make sure that this code is processed by ASP engine, i.e. the code must be placed into .asp file.
Back to top
Costa



Joined: 12 Jul 2007
Posts: 2

PostPosted: Thu Jul 12, 2007 8:15 pm    Post subject: Reply with quote

Im still not understanding how to make it work, in my case the code is on a jsp page that links to an asp page on a different site.
Back to top
AlexKunin
Developer


Joined: 03 Jan 2003
Posts: 1191

PostPosted: Thu Jul 12, 2007 8:28 pm    Post subject: Reply with quote

Can you post here URL of your page?
Back to top
Display posts from previous:   
Post new topic   Reply to topic    JavaScript.CoolDev.Com Forum Index -> COOLjsMenu All times are GMT
Page 1 of 1