473,246 Members | 1,389 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,246 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 1266
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
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...

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.