473,385 Members | 1,464 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,385 software developers and data experts.

Using parent's function from child when included from file...

Hi!

I am working on a rather complicated set of html and javascript files here
and am experiencing some serious IE/Netscape(Mozilla actually)
incompatability issues.

I have an html page that includes a hidden IFRAME (size 0x0). That IFRAME
get's reloaded and calls the parent's write_table function. This is to
ensure the illusion that the page is not refreshing (my boss didn't like the
"blinking" of the refresh).

This worked well, untill I moved the parent's javascript into seperate files
and included them with the <SCRIPT language="javascript"
src="table_writer.js"></SCRIPT> tag. Now, it only works on
Mozilla/Netscape. For IE, I get the oh-so-general "Object doesn't support
this property or method" error.

I really need to leave the javascript in seperate files as I will have a
need for them on many pages in the future. How can I get the IFRAME
javascript function to call it's parent javascript function when the
parent's script is loaded from a file???

Thanks!
troy
Jul 20 '05 #1
1 8064
I've made a discovery...

Since we are using a home made web server (again, please don't ask), it
appears that IE is not loading the js files at all because there is a very
limited number of mime types supported. I am assuming that mozilla figured
this out on it's own but IE won't.

I'll see if I can fix the webserver, sorry for the wasted space.

Troy

"Troy" <tr**@morpheus.No_SpAm.net> wrote in message
news:Fg*********************@newssvr11.news.prodig y.com...
Hi!

I am working on a rather complicated set of html and javascript files here
and am experiencing some serious IE/Netscape(Mozilla actually)
incompatability issues.

I have an html page that includes a hidden IFRAME (size 0x0). That IFRAME
get's reloaded and calls the parent's write_table function. This is to
ensure the illusion that the page is not refreshing (my boss didn't like the "blinking" of the refresh).

This worked well, untill I moved the parent's javascript into seperate files and included them with the <SCRIPT language="javascript"
src="table_writer.js"></SCRIPT> tag. Now, it only works on
Mozilla/Netscape. For IE, I get the oh-so-general "Object doesn't support
this property or method" error.

I really need to leave the javascript in seperate files as I will have a
need for them on many pages in the future. How can I get the IFRAME
javascript function to call it's parent javascript function when the
parent's script is loaded from a file???

Thanks!
troy

Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
by: Suzanne Vogel | last post by:
Hi, I've been trying to write a function to test whether one class is derived from another class. I am given only id's of the two classes. Therefore, direct use of template methods is not an...
4
by: Danny Tuppeny | last post by:
Hi all, I've been trying to write some classes, so when I have a parent-child relationship, such as with Folders in my application, I don't have to remember to add a parent reference, as well as...
7
by: msxkim | last post by:
How to execute functions in the parent class first and then functions in the child class? For example, I have a parent class with functions 'ONE' and 'TWO' and child class has a function 'THREE'. ...
3
by: Eddie | last post by:
If FormMain = MDI parent, FormSub = Child parent, I execute FormSub from the menu like this way. FormSub^ sub = gcnew FormSub; sub->MdiParent = this; sub->Show(); This can generate child...
53
by: Hexman | last post by:
Hello All, I'd like your comments on the code below. The sub does exactly what I want it to do but I don't feel that it is solid as all. It seems like I'm using some VB6 code, .Net2003 code,...
3
by: Irocivan | last post by:
Hello, I download a nice collapse menu for free distribution from the internet. It works very well except that none of the parents nodes are clickable (i.e. when clicking on the parent node, the...
0
by: hott5hotj | last post by:
in Actionscript 3.0 Ive created a datagrid that populated with data. I want to create a pop up window to confirm whether the removal of an entry. When I call from the child object the following, I...
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...
3
by: =?Utf-8?B?cG1jZ3VpcmU=?= | last post by:
I have a dataset with 3 tables -- 2 Parent tables and 1 table that is a child table of both the parents. I create a dataview on the child table and set the rowfilter to a value which filters the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...

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.