473,405 Members | 2,310 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.

problems with a script in FF

Maybe I am just blind. The following http://cresslawnprimary.co.za/news.html
works in IE and Opera fine. I can change via the pull down the news
and it works. But in FireFox it just does not work and the error I see
in Firebug is:

parent.frames.XYZ1 has no properties
http://cresslawnprimary.co.za/drop.html?
Line 7
the code looks as follows:
function gotourl( mySelect ) {
myIndex = mySelect.selectedIndex;
myValue = mySelect.options[myIndex].value;
parent.frames.XYZ1.location=myValue;
}

function gotour2(Ref1) {

myElem=document.getElementById("SelBox1");
myElem.selectedIndex = Ref1 ;
myValue = myElem.options[Ref1].value;
parent.frames.XYZ1.location=myValue;

}

</script>

<title></title>
</head>

<body>
Select newsletter to view: &nbsp; &nbsp; &nbsp; Latest: &nbsp;
&nbsp; &nbsp; <a href="javascript:gotour2(0)">17 May 2007</a&nbsp;
&nbsp; &nbsp; <a href="javascript:gotour2(1)">03 May 2007</a>
&nbsp; &nbsp; &nbsp; <a href="javascript:gotour2(2)">18 Apr 2007</a>
&nbsp; &nbsp; &nbsp; All: &nbsp; &nbsp; &nbsp; <select id="SelBox1"
onchange="gotourl(this)">
<option value="NewsLetters/17 May 2007.html" selected>
17 May 2007
</option>

<option value="NewsLetters/03 May 2007.html">
03 May 2007
</option>

<option value="NewsLetters/18 Apr 2007.html">
18 Apr 2007
</option>

<option value="NewsLetters/15 Mar 2007.html">
15 Mar 2007
</option>

<option value="NewsLetters/01 Mar 2007.html">
01 Mar 2007
</option>

<option value="NewsLetters/16 Feb 2007.html">
16 Feb 2007
</option>

<option value="NewsLetters/01 Feb 2007.html">
01 Feb 2007
</option>

<option value="NewsLetters/18 Jan 2007.html">
18 Jan 2007
</option>
</select>
</body>
</html>
Any ideas, where I am blond in regards to the script

Thx,

Marcus

May 23 '07 #1
3 1270
ti********@gmail.com wrote:
Any ideas, where I am blond in regards to the script
The reference to parent.frames.XYZ1 is invalid, because a) you are not
working in frames, and b) you didn't give the document the name XYZ1.
JW
May 23 '07 #2
there was one more file to go with it:

news.html

<html>
<head>
<Title>Cresslawn Primary Newsletters</Title>
</head>
<frameset rows=130,30,*>
<frame frameborder=10 src="head.html?" </frame>
<frame marginheight=0 frameborder=0 src="drop.html?" </frame>
<frame id="XYZ1" marginheight=0 frameborder=0 src="NewsLetters/17 May
2007.html"
</frame>
</frameset>
</html>

what realy cobfuses me is the fact it runs in Opera and IE..

May 24 '07 #3
TinyHunter wrote:
what realy cobfuses me is the fact it runs in Opera and IE..
Change ``<frame id="XYZ1" '' into ``<frame name="XYZ1" ''; Both Opera and IE
probably use the id in absence of a name attribute.
JW
May 26 '07 #4

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

Similar topics

13
by: Dan R Brown | last post by:
I have a large form that is generated dynamically in a jsp using xml / xslt. So, to break up this form into several "tabbed" sections, I break up the form using <div> tags. Each <div...
1
by: 3f | last post by:
Hello; We have made a web application that people can download from our web site and installed on: Windows XP Windows 2000 Professional Windows 2003 Server Windows 2000 Server
55
by: drhowarddrfine | last post by:
I'm working on a web site that could use some control using js but am concerned about what problems I may have with potential users having their js turned off. Has anyone had any serious problems...
2
by: robert.waters | last post by:
Hello, I am dynamically editing the contents of a page and using document.write() to reload the new, edited content. However, on the new page, any calls to functions located in external .js...
2
by: Jeronimo Bertran | last post by:
A couple of questions I am having problems with converting my JavaScript to C#. I have the following code using JavaScript for the mouseover handler that works fine: <SCRIPT...
0
by: ZMan | last post by:
Scenario: This is about debugging server side scripts that make calls to middle-tier business DLLs. The server side scripts are legacy ASP 3.0 pages, and the DLLs are managed DLLs...
10
by: Danny | last post by:
Hi all, I am having some odd problems with AJAX on Firefox (1.5). When I use GET as the request method everything works ok, but when I do a POST the remote function doesn't get the parameters I...
2
by: goodnamesalltaken | last post by:
Hello fellow python users, I've been working on a basic implementation of a privilege separated web server, and I've goto the point of running a basic cgi script. Basically when the execCGI...
3
by: PCgeek | last post by:
sorry moved this over to javascript forum, didn't mean to post 2x! Hi guys, I'm trying to put the finishing touches on my website and could really use some help on this particular issue. My page...
10
by: jodleren | last post by:
Hi I know, that there are a lot of people having problems with orkut.com, errors like "object expected" and named objects missing. When loading the site can generate some 10 errors, and still...
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...
0
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...
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.