Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: Passing dynamic value
lysoftcomplex
Junior Member

Posts: 2
Registered: 7/22/2008
Member Is Offline
posted on 7/22/2008 at 03:36 AM Reply With Quote
Passing dynamic value


Hi,

I am testing the Tigra Menu and would like to pass a dynamic value from the menu to a another page.

I did look at the search for "pass value" and I still don't undertand how to pass value.

Here is the example of the menu_items.js that I created using _builder

var MENU_ITEMS = [
['Edit Profile', '/LIS/EditProfile.jsp', {'tw':'userHomeFrame','sb':'Edit Profile'}]
];

The target frame is "userHomeFrame", the link is "/LIS/EditProfile.jsp"

Now, how do I pass a dynamic value say "username", the username is pass from another page thru login. So, when the client click the "Edit Profile" menu, the "/LIS/home.jsp" will display at the target frame, but how does the username get pass?

Normally I do this to the link "/LIS/home.jsp?username=<%=username%>

Will that type of link work in the menu_items.js file?

Any feedback will be helpful.

Thanks
View User's Profile View All Posts By User U2U Member
tigra
Administrator

Posts: 2049
Registered: 6/17/2002
Location: US, CO
Member Is Offline
posted on 9/22/2008 at 09:21 PM Reply With Quote

instead of linking to the external static file (menu_items.js) you can copy its content in the <script> block inside your dynamically generated page and use the same approach:

var MENU_ITEMS = [
['Edit Profile', '/LIS/EditProfile.jsp?username=<%=username%>', {'tw':'userHomeFrame','sb':'Edit Profile'}]
];

for your JSP script there is no difference if it's HTML or JS it outputs
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page Tigra Menu
Product Demonstrations Live Demos:
Traditional Blue
White Steps
Inner HTML
All Together
Frames Targeting
Free Download Free Download
Free Download Menu Builders
Online Builder
Builder for Windows
Product Documentation Documentation:
Documenation Page
Change Log
Menus Comparison Table
Support Forum Support Forum
 
Tigra Menu PRO
Product Demonstrations Live Demos
Alignment & Multimenus
Unlimited Depth
Item sizing and positioning
Inner HTML
Frames, Targeting
Static Positioning
Free Download Menu Builders
Online Builder
Product Documentation Documentation
Documenation Page
Tigra Menu PRO FAQ
Change Log
Menus Comparison Table
Support Forum Technical Support
Support Forum
Customer Care System
Order Now ORDER NOW!
Add to Cart
View Cart
 
Product Page Tigra Menu GOLD
Functionality demos Functionality demos
Multiple
Cross-framed
Select-boxes
Effects
Design demos Design demos
Icons & arrows
Idea!
Hi there!
Matrix
MS Style
XP Style
Dots
3D-Buttons
Product Documentation Documentation
Documenation Page
Change Log
Menus Comparison Table
Support Forum Technical Support
Support Forum
Customer Care System
Order Now ORDER NOW!
Add to Cart
View Cart
 

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004