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: iFrame Questions using The Menu
redzex
Junior Member

Posts: 6
Registered: 7/17/2006
Location: Ortigas, philippines
Member Is Offline
posted on 8/3/2006 at 02:49 AM Reply With Quote
iFrame Questions using The Menu


Hello Masters, (",)

I have a main Page frmMain.aspx that contains 2 Frames. iFrame1 and iFrame2 respectively.

iFrame1 has a fixed source frmPagerID.aspx

iFrame2 is dynamic. which means changes it source

The Menu triggers the iFrame2 content to change using

(Note frameContent is the iFrame2)

var MENU_ITEMS =
[
['Projects', null, null,
['Add New Project', 'frmAddProjects.aspx', {'tw' : 'frameContent'}],
['Edit Projects', 'frmEditProjects.aspx', {'tw' : 'frameContent'}],
['View Projects', 'frmViewProjects.aspx', {'tw' : 'frameContent'}],
['Delete Projects', 'frmDelProjects.aspx', {'tw' : 'frameContent'}]

],
['Team Members', null, null,
['Add New Team Member', 'frmAddTeamMember.aspx', {'tw' : 'frameContent'}],
['Remove Team Members', 'frmEditTeamMembers.aspx', {'tw' : 'frameContent'}],
['View Team Members', 'frmViewTeamMember.aspx', {'tw' : 'frameContent'}]
],
['Log Off', 'frmLogOff.aspx', null]
];


now i want iFrame1 to reload when iFrame2 changes source because i pass a value on a session variable using the sub pages that loads on iFrame2.

the frmPagerID.aspx(iFrame1 Source) needs that session variable to modify a label1.text value in it.

how will i do that? (",) using the tigra menu.. can i do it?

thanks in advance masters.. (",)
View User's Profile View All Posts By User U2U Member
tigra
Administrator

Posts: 1982
Registered: 6/17/2002
Location: US, CO
Member Is Offline
posted on 8/3/2006 at 02:24 PM Reply With Quote

http://www.softcomplex.com/forum/viewthread_2856/
View User's Profile View All Posts By User U2U Member
redzex
Junior Member

Posts: 6
Registered: 7/17/2006
Location: Ortigas, philippines
Member Is Offline
posted on 8/3/2006 at 09:38 PM Reply With Quote

i don't get it... (",) i don't have tree items and also, i have inner items in my menu... will i replace the tw thing?
View User's Profile View All Posts By User U2U Member
tigra
Administrator

Posts: 1982
Registered: 6/17/2002
Location: US, CO
Member Is Offline
posted on 8/3/2006 at 09:44 PM Reply With Quote

well, you have the MENU_ITEMS which is the same. Just copy the described function and paste it at the end of the items file editing the frame names. Example with the frame names you mentioned it will be:

Code:

function rl (url1, url2) {
if (url1) parent.frames['iFrame1'].location = url1;
if (url2) parent.frames['iFrame2'].location = url2;
}


then call this function when needed providing the urls for both frames. Example:

Code:

['Projects', null, null,
['Add New Project',"javascript:rl('index.html', 'about.html')", {'tw' : '_self'}],


above code will load 'index.html' into iFrame1 and 'about.html' into iFrame2
View User's Profile View All Posts By User U2U Member
redzex
Junior Member

Posts: 6
Registered: 7/17/2006
Location: Ortigas, philippines
Member Is Offline
posted on 8/3/2006 at 09:59 PM Reply With Quote

thanks!!! it is now working (",)
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