473,574 Members | 3,042 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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(Mozill a 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="javas cript"
src="table_writ er.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 8071
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******** *************@n ewssvr11.news.p rodigy.com...
Hi!

I am working on a rather complicated set of html and javascript files here
and am experiencing some serious IE/Netscape(Mozill a 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="javas cript"
src="table_writ er.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
2662
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 option. Let's call the id of a class "cid" (for "class id"). The function signature should look like this:...
4
4560
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 adding to the child collection, eg: parent.Children.Add(child); child.Parent = parent;
7
2026
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'. How should I declare classes so that all three functions are executed when child class is called? Class Parent public function ONE 'code end...
3
2687
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 form sub in FormMain. In th FormMain, there is status bar label named statusBar; I'd like to add code in the sub form that can access statusBar of...
53
4648
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, and .Net2005 code. I'm developing in vb.net 2005. This test sub just reads an input text file, writing out records to another text file, eliminating...
3
5441
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 link does not work). For example, if the below content is included in the html page, I would like that page www.fruit.com can be loaded whenever I click...
0
3160
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 get an object undefined error. Is there anyone that can help me? I know its doing that because the datagrid object is not defined within the child but I...
1
3589
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 child window height is 1200px (saying), when the child window load the height of the parent window changs but the backgorund color which is given 100%...
3
5383
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 child based on values in both parent tables. When I edit the parent tables the edit is not reflected in the dataview.count property. How can I force...
0
7837
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7755
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8268
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7852
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8133
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6504
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5333
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
2268
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1097
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.