Skip to main content

alphaWorks  >  Forums  >  IBM Database Connectivity for JavaScript  >  developerWorks

Linking two separate iframes from two different webpages    Point your RSS reader here for a feed of the latest messages in this thread


     

 
 

My developerWorks
 Welcome, Guest
Sign in or register
This question is not answered.

Permlink Replies: 0 - Pages: 1 Threads: [ Previous | Next ]
darshancpl

Posts: 1
Registered: Mar 01, 2009 05:25:48 PM
Linking two separate iframes from two different webpages
Posted: Mar 01, 2009 05:26:49 PM
 
Click to report abuse...   Click to reply to this thread Reply
I dont know how can I explain this. But I will try my best by putting entire issue in series of steps below.

Step 1: I have a web page with two

tags located besides each other. We will call them the right
and the left

Step 2: Left
has a drop down list that dynamically generates navigation as shown in the code below.
<form style="margin-left:3%; margin-bottom:1%" action="" method="post">
<SELECT ONCHANGE="if (window.frames && window.frames.iframes) {
window.frames.iframes.location.href =
this.optionshttp://this.selectedIndex.value;
}">
<OPTION VALUE="Swimming.html">Swimming
<OPTION VALUE="TaxServices.html">Tax Services
<OPTION VALUE="TravelLeisure.html">Travel & Leisure
<OPTION VALUE="ymca.html">Waste Management
<OPTION VALUE="WaterManagement.html">Water Management
<OPTION VALUE="Welding.html">Welding
</SELECT>
<iframe id="theFrame" name="iframes" src="murrieta.html" align="top" style="margin-top:7%;height:95%; width:100%;"></iframe>
</form>

Step 3: To explain step 2 better, For e.g. if option "Swimming" is selected from the option group on left
, it will launch its child links in
in the iframe nam as "iframes"

Step 4: The option "Swimming" has an html file associated with it called "Swimming.html" This file has three links as mentioned below


Step 5: To explain step 4 better, if "Swimming" option is selected, it will launch four links in iframe region

Step 6: NOW IT GETS REAL TRICKEY

Step 7: My Requirement is : say if user clicks "about us" link for "Swimming" option in left
tag, it should lauch "www.google.com" in
the iframe of right
. Say, if use selects "services" link for "Swimming" option in left
tag, it should launch "murrietainfo2.html"
in the iframe of right

Step 8: i need to do this for all of options, as all of options in option list has child links that will be dropped in the left div iframe

PLEASE PLEASE HELP

Thanks,
Ruchir


Point your RSS reader here for a feed of the latest messages in all forums