By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,187 Members | 1,038 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,187 IT Pros & Developers. It's quick & easy.

accessing iframe of frame of frameset

P: 77
Hello..i have problem, hope someone can help me..i have this frameset below :

Expand|Select|Wrap|Line Numbers
  1. <FRAMESET ROWS="55%" COLS="37%,63%">
  2.       <FRAME NAME="runningTrade" SRC="http://runningtrade.com" scrolling="no">
  3.       <FRAMESET ROWS="33%" COLS="51%,49%">
  4.             <FRAMESET ROWS="34%,34%,35%" cols="*">
  5.                 <FRAME NAME="orderBook" SRC="http://od.com" scrolling="no">
  6.                 <FRAME NAME="orderBook2" SRC="http://od2.com" scrolling="no">
  7.                 <FRAME NAME="OrderBook3" SRC="" scrolling="no">
  8.             </FRAMESET>         
  9.  
  10.                <FRAMESET ROWS="7%,49%,44%" cols="*">
  11.                   <frame src="http://ihsg.com" name="ihsg" id="ihsg" title="ihsg" scrolling="no"/>
  12.                   <FRAME NAME="stockSummary" SRC="http://ss.com"  scrolling="no">
  13.                    <FRAME NAME="openOrder" SRC="http://oo.com" scrolling="no"> 
  14.               </FRAMESET>
  15.       </FRAMESET>
  16.  
  17.       <NOFRAMES>
  18.         <BODY>
  19.           <H1>Your Browser doesn't support FRAMESET</H1>
  20.         </BODY>
  21.       </NOFRAMES>
  22. </FRAMESET>
  23.  
And in frame name openOrder i have three page that inserted / opened in iframe, this is the example

Expand|Select|Wrap|Line Numbers
  1. <div id="content">
  2.     <iframe name="orderingTab" width="100" height="200" scrolling="no" src="http://buy.com">    
  3.     </iframe>
  4. </div>
  5.  
  6.  
Say my pointer/action is active in frame stockSummary, and i want to : 1. access or insert value from frame stockSummary to iframe orderingTab of openOrder frame.
2. change the src value of orderingTab(iframe) from frame stockSummary

is there any idea??somebody help me please, tks a lot..

regards,
maminx
Oct 8 '09 #1
Share this Question
Share on Google+
4 Replies


Dormilich
Expert Mod 5K+
P: 8,639
@maminx
nothing that immediately solves your problem… drop the frames, this will make everything easier.
Oct 8 '09 #2

P: 77
that's not answer the question..thanks a lot anyway,,
Oct 8 '09 #3

Dormilich
Expert Mod 5K+
P: 8,639
@maminx
I know, but it’s the best advice I can give. (you may have noticed that I despise frames…)
Oct 8 '09 #4

acoder
Expert Mod 15k+
P: 16,027
If you insist on using frames, use parent.framename to access a frame, though with nested frames, it may be different. To access iframes, it's similar. You can use document.getElementById() or window.frames["iframe-name"]. To access the document within the iframe, use contentWindow.document and contentDocument (for different browsers).
Oct 9 '09 #5

Post your reply

Sign in to post your reply or Sign up for a free account.