473,394 Members | 2,063 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

access frame child window from parent window

77
hello, i have this frameset (frameset1.html)

Expand|Select|Wrap|Line Numbers
  1. <FRAMESET ROWS="55%" COLS="37%,63%" frameborder="no" framespacing="0">
  2.           <FRAME NAME="runningTrade" id="runningTrade" SRC="" scrolling="no">
  3.           <FRAMESET ROWS="33%" COLS="46%,55%">
  4.                 <FRAMESET ROWS="33%,33%,35%" cols="*" frameborder="no">
  5.                     <frame id="orderBook" name="orderBook" src="" scrolling="no">
  6.                     <FRAME NAME="orderBook2" SRC="" scrolling="no" frameborder="1">
  7.                     <FRAME NAME="OrderBook3" SRC="" scrolling="no">
  8.                 </FRAMESET>         
  9.                 <FRAMESET ROWS="10%,41%,38%,11%" cols="*">
  10.                     <frame src="" name="ihsg" id="ihsg" title="ihsg" scrolling="no"/>
  11.                       <FRAME NAME="watchTab" SRC=""  scrolling="no">
  12.                       <FRAME NAME="openOrder" SRC="" scrolling="no">
  13.  
  14.                      <FRAME NAME="rejectedOrder" SRC="" scrolling="no" style="overflow-x:hidden">
  15.                 </FRAMESET>
  16.           </FRAMESET>
  17.     <NOFRAMES>
  18.         <BODY>
  19.           <H1>Your Browser doesn't support FRAMESET</H1>
  20.         </BODY>
  21.       </NOFRAMES>
  22. </FRAMESET>
  23.  
and from parent window (index.html), i popup that frameset1.html with this code
Expand|Select|Wrap|Line Numbers
  1. var objWinFrame = window.open('frameset1.html','','height=500, width=500, top=80, left=60, scrollbars=no, statusbar=no, toolbar=no, resizable=yes');
  2.  
And the last, i want to access (change location) the frame "orderBook"(in frameset1.html) from parent with this code
Expand|Select|Wrap|Line Numbers
  1. objWinFrame.frames.orderBook.location = "blabla.html";
  2.  
but it returns undefined/error

help please, thanks
regards
maminx
Aug 16 '10 #1
4 3276
johny10151981
1,059 1GB
what is orderBook you didnt define any order book in your frame set. I think you forgot to name one of your objects or gave wrong name.
Aug 17 '10 #2
maminx
77
should i named "orderBook" in frameset instead in frame?
please see frameset1.html
orderBook is the name of frame in frameset, and i want to change the source/location of orderBook frame

please let me know if i have a mistake
thanks for u'r reply
Aug 17 '10 #3
johny10151981
1,059 1GB
well i didnt notice that.

try this
Expand|Select|Wrap|Line Numbers
  1. objWinFrame.orderBook.location = "blabla.html";
Aug 17 '10 #4
maminx
77
it returns error "objWinFrame.orderBook is undefined"
Aug 18 '10 #5

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

Similar topics

1
by: Robert Dickow | last post by:
I have a little bit of code in a popup window that attempts to detect when the parent window is closed or rather just jumped to another page url. the expression below is used in a popup created...
1
by: Filiz Duman | last post by:
Hi, I am opening a pop up window (child) from a parent window. The Child window does show a table with multiple columns and rows, each showing a value, e.g. 9 or 10 or etc. I have the values as...
3
by: Sandfordc | last post by:
I was curious one day and started to explore the whole idea of a document opening a pop up and that pop up being able to send data, that was input by the user, back to the parent. Does anyone have...
3
by: RobG | last post by:
In Firefox if an HTML page is not hosted inside a frame or iframe, the following return true: (window === window.self); (window === window.parent); But in IE they return false (using ==...
7
by: Raffi | last post by:
I'm facing a tricky (at least for me) page reload/refresh scenario and need some help. I'm working on a web application which is primarily used with MSIE. The application has a main window with...
2
by: gsuns82 | last post by:
hi all, I got to reload parent window from its child window,i used the folloeing code opener.location.reload(); self.close(); in child window. Parent window gets...
3
by: jack21 | last post by:
I have a main window containing a list of items along with some buttons. If the user clicks the 'View' button, I open a child window containing the details of the item along with 'Approve' and...
2
by: ad08 | last post by:
Is this possible? I am trying to access function from grand parent window (the main window) in my child popup window but the parent window is closed in this case. a.jsp --> grand parent window...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.