467,879 Members | 1,203 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,879 developers. It's quick & easy.

accessing iframe of frame of frameset

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
  • viewed: 3428
Share:
4 Replies
Dormilich
Expert Mod 8TB
@maminx
nothing that immediately solves your problemÖ drop the frames, this will make everything easier.
Oct 8 '09 #2
that's not answer the question..thanks a lot anyway,,
Oct 8 '09 #3
Dormilich
Expert Mod 8TB
@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 8TB
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.

Similar topics

7 posts views Thread by Patrick.O.Ige | last post: by
2 posts views Thread by Bart Van der Donck | last post: by
2 posts views Thread by zhanye815 | last post: by
6 posts views Thread by oscar1martin | last post: by
9 posts views Thread by Lee | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.