473,405 Members | 2,171 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,405 software developers and data experts.

Problem with path between parent and child html pages

6
HI. I have a html page 'parent'. I have loaded an html page as 'child' through Object tag from parent html page.

Parent html page has a function callF()

I am trying to call callF() from child html page.

So, the code in the child html page would be:
parent.callF();

While Google Chrome, Mozilla Firefox process the above code smoothly, Internet Explorer 6 & 7 gives error
Feb 12 '09 #1
7 1824
acoder
16,027 Expert Mod 8TB
When you talk about child and parent, do you mean windows or frames/iframes?

Some code may help pinpoint the problem.

PS. welcome to Bytes!
Feb 12 '09 #2
sosuko
6
Thanks acorder :)

I mean to say I have used Object tag, instead of IFrame tag.

Expand|Select|Wrap|Line Numbers
  1. function helpClicked() {
  2.   this.document.getElementById('leftContent_div').innerHTML = '<'+'object id="homeComp" name="homeComp" type="text/html" data="help_left.html" width="604" height="690"><\/object>';
  3. }
This is the function I am calling from child html page. The child html page itself is loaded with Object tag.

Please solve my problem.
Feb 13 '09 #3
acoder
16,027 Expert Mod 8TB
Why not use an iframe? Any particular reason?
Feb 13 '09 #4
sosuko
6
HI Acoder, sorry for replying so late.

I used an iFrame tag still its the same problem.

I have attached the two html files, please give me some solution.
Attached Files
File Type: zip Default_and_child_htmls.zip (833 Bytes, 70 views)
Feb 21 '09 #5
acoder
16,027 Expert Mod 8TB
If I change the object to an iframe, it works:
Expand|Select|Wrap|Line Numbers
  1. <iframe id="homeComp" src="child.html" width="400" height="400"></iframe>
Feb 23 '09 #6
sosuko
6
Hi Acoder,

THANK you so much for your help, now my code is working fine on all browsers.
I am relieved as the project on which I am working is a big one.
Feb 24 '09 #7
acoder
16,027 Expert Mod 8TB
That's good to hear. Good luck with the rest of your project.
Feb 24 '09 #8

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

Similar topics

3
by: Golawala, Moiz M (GE Infrastructure) | last post by:
Hi all, What I am trying to do is write some generic code where I can get the path of the parent directory. for example if current working directory is 'Z:\\dirA\\Parent\\Child' I want to get...
13
by: elad | last post by:
Hi The Menu doesn't work properly when I have 2 frame and the Menu popup frame=document target frame, when I choose item in the menu the doc opened and the menu get stuck. Here is the code...
4
by: JesusFreak | last post by:
From: us_traveller@yahoo.com (JesusFreak) Newsgroups: microsoft.public.scripting.jscript Subject: toolbar script problem NNTP-Posting-Host: 192.92.126.136 Recently, I downloaded the following...
2
by: veganeater | last post by:
Hello again everyone, I seem to have run into another problem... perhaps I'm just a bit slow. The problem is something like this: I have a popup window launched by a page sourced in an iFrame ...
11
by: Sagaert Johan | last post by:
I have made a custom control that draws a rectangle when the mouse is down, and does nothing when the mouse is up. I set/reset a flag in MouseDown/Mouse up and use this to do the drawing in the...
3
by: Mark | last post by:
I have a link on Parent.html which brings up Child.html in a separate browser window. Child.html has a button with Javascript to close itself. Is there a way I can cause Parent.html to be...
5
by: aljamala | last post by:
Hi, I have a link for an employee directory search page. The link (http:// xxxx/Search.aspx) works fine, however, I have another link to do an Advanced Find. and its href is...
1
by: soms2m | last post by:
HELLO ALL, I want to fill the parent window height with respect to the sub window height which is loading using ajax (mootools). For example if the parent window height is normal and the loading...
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: 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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.