| Author |
Message |
corto
Joined: 24 Feb 2005 Posts: 10
|
Posted: Sat Oct 01, 2005 4:40 pm Post subject: Custom link in menu_item.js |
|
|
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
|
Posted: Mon Oct 10, 2005 10:09 am Post subject: |
|
|
Should i use Javascript?
Any help would be appreciated. |
|
| Back to top |
|
 |
Victor_Chuiko Support Team
Joined: 12 Apr 2005 Posts: 145
|
Posted: Tue Oct 11, 2005 7:55 am Post subject: |
|
|
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
|
Posted: Tue Oct 11, 2005 9:07 am Post subject: |
|
|
| Works great - thanks a lot!!! |
|
| Back to top |
|
 |
Costa
Joined: 12 Jul 2007 Posts: 2
|
Posted: Thu Jul 12, 2007 5:02 pm Post subject: |
|
|
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
|
Posted: Thu Jul 12, 2007 8:06 pm Post subject: |
|
|
| 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
|
Posted: Thu Jul 12, 2007 8:15 pm Post subject: |
|
|
| 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
|
Posted: Thu Jul 12, 2007 8:28 pm Post subject: |
|
|
| Can you post here URL of your page? |
|
| Back to top |
|
 |
|