redzex
Junior Member
Posts: 6
Registered: 7/17/2006
Location: Ortigas, philippines
Member Is Offline
|
| posted on 8/3/2006 at 02:49 AM |
|
|
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.. (",)
|
|
|
tigra
Administrator
Posts: 1982
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 8/3/2006 at 02:24 PM |
|
|
http://www.softcomplex.com/forum/viewthread_2856/
|
|
|
redzex
Junior Member
Posts: 6
Registered: 7/17/2006
Location: Ortigas, philippines
Member Is Offline
|
| posted on 8/3/2006 at 09:38 PM |
|
|
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?
|
|
|
tigra
Administrator
Posts: 1982
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 8/3/2006 at 09:44 PM |
|
|
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
|
|
|
redzex
Junior Member
Posts: 6
Registered: 7/17/2006
Location: Ortigas, philippines
Member Is Offline
|
| posted on 8/3/2006 at 09:59 PM |
|
|
thanks!!! it is now working (",)
|
|
|
|