473,385 Members | 1,569 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.

problem with Internet Explorer

Yve
Hallo,

this testweb works well in Mozilla and Netscape but not in Internet
Explorer.

http://www.netzwerkservice.com/test/...vascript_1007/

As I am not good at JavaScript I have got no idea where to look fot
the bug.

I kindly ask you for your help.

I add the parts of code that might be buggy.

Thank you very much for your patience with newbies.

Yvonne

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
..
..
..
<script language="JavaScript">
<!--
function Go(x)
{
if(x == "nothing")
{
document.forms[0].reset();
document.forms[0].elements[0].blur();
return;
}
else if(x == "end") top.location.href = parent.frames[1].location;
else
{
parent.frames[1].location.href = x;
document.forms[0].reset();
document.forms[0].elements[0].blur();
}
}
//-->
</script>
..
..
..
<form>
<select name="bereich1"
onChange="Go(this.form.bereich1.options[this.form.bereich1.options.selectedIndex].value)"
width="50">
<option value="nothing">Bereich1
<option value="nothing">. . . . . . . </option>
<option value=""onClick="parent.content.location='../content/content_gelb.html';
parent.thumbs.location='../thumbs/thumbs_gelb.html'; return
false;">gelb</option>
<option value=""onClick="parent.content.location='../content/content_blau.html';
parent.thumbs.location='../thumbs/thumbs_blau.html'; return
false;">blau</option>
</select>
</form>
</td>
<td width="25" valign="bottom">&nbsp;</td>
<td width="155">
<form>
<select name="bereich2"
onChange="Go(this.form.bereich2.options[this.form.bereich2.options.selectedIndex].value)"
width="50">
<option value="nothing">Bereich2 </option>
<option value="nothing">. . . . . . . </option>
<option value=""onClick="parent.content.location='../content/content_rot.html';
parent.thumbs.location='../thumbs/thumbs_rot.html'; return
false;">rot</option>
<option value=""onClick="parent.content.location='../content/content_gruen.html';
parent.thumbs.location='../thumbs/thumbs_gruen.html'; return
false;">grün</option>
</select>
</form>
..
..
..
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
Jul 20 '05 #1
2 6568

"Yve" <y.******@netzwerkservice.com> schreef in bericht
news:d3**************************@posting.google.c om...

this testweb works well in Mozilla and Netscape but not in Internet
Explorer.

Try it as follows:

function Go(x) {
if (x != "nothing") {
parent.content.location = x.split('|')[0];
parent.thumbs.location = x.split('|')[1];
}
document.forms[0].reset();
document.forms[0].elements[0].blur();
}

<select size=1 name="bereich1" onChange="Go(value)" width="50">
<option value="nothing">Bereich1
<option value="nothing">. . . . . . . </option>
<option
value="../content/content_gelb.html|../thumbs/thumbs_gelb.html">gelb</option <option
value="../content/content_blau.html|../thumbs/thumbs_blau.html">blau</option

</select>

BTW, the Go function only resets the first form. This can be fixed, of
course, but I think you should use only 1 form to encapsule both select
elements.

When the names of pages are constant, you could also use the following:

function Go(x) {
if (x != "nothing") {
parent.content.location = "../content/content_" + x + ".html";
parent.thumbs.location = "../thumbs/thumbs_" + x + ".html";
}
document.forms[0].reset();
document.forms[0].elements[0].blur();
}

<select size=1 name="bereich1" onChange="Go(value)" width="50">
<option value="nothing">Bereich1
<option value="nothing">. . . . . . . </option>
<option value="gelb">gelb</option>
<option value="blau">blau</option>
</select>

HTH,
JW

Jul 20 '05 #2
Yve
A friend solved the problem (exchanging more than 1 frame out of drop
dowm menu)by this:

function GoToURL(val)
{
if(val == "nothing")
{
document.forms[0].reset();
document.forms[0].elements[0].blur();
return;
} else if (val == "end") {
top.location.href = parent.frames[1].location;
} else {
//alert (val);
eval(val);
document.forms[1].reset();
//document.forms[0].elements[0].blur();
}
}

Yvonne.
Jul 20 '05 #3

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

Similar topics

0
by: Yarik | last post by:
Hello, When I open an HTML document by Internet Explorer 6 and then print the document on a color inkjet printer, some of the colors are rendered incorrectly (they appear much darker than they...
6
by: harry | last post by:
Hi, I have a program that runs on multiple client pc's. Occasionally one or more of those pc's use VPN to connect to another corporate network. When using VPN they need to set proxy server in...
6
by: Thomas | last post by:
Hi, I'm having a problem with the dynamically created inputfields in Internet Explorer. The situation is the following: - I have a dynamically created table with a textbox in each Cell. - It...
0
by: Niyazi | last post by:
Hi all, This my aspx page first line of code. <%@ Page CodeBehind="index.aspx.vb" Language="vb" AutoEventWireup="false" Inherits="TB.index" %> Than inside head tag I have following script(s)...
0
by: Jesus Jimenez | last post by:
Hi everyone... I'm developing an asp .net web for mobile device .. (exactly iPAQ) Well, my problem is that I customize my webcalendar through its properties and events, my pc's internet...
1
by: Daniel Alvarez | last post by:
Hello. First of all, I'm working in an ASP.NET 1.1 project, which has a large page (due to client requirements, a huge page is needed to process the information, and it has a lot of interactivity...
12
by: garyusenet | last post by:
I have had no replies to my previous post so perhaps I didn't write it good enough. Please excuse new thread but i wanted to break from the last thread hopefully this thread will be better. ...
2
by: dorayme | last post by:
In IE 7, is there a bottom margin showing in <http://netweaver.com.au/alt/IEBottomMarginProblem/ie7_margin_prob lem.html> please in this test case. I have not identified this bug, if it is...
2
by: sophie_newbie | last post by:
Hi, I'm using the python to set a cookie when a user logs in. Thing is it doesn't seem to be setting properly in Internet Explorer. It works grand in Firefox. Its basically: c =...
2
by: swethak | last post by:
Hi, I am getting the problem the problem with google map in Internet Explorer. This map worked fine in mozilla . When i opened the same map in Internet Explorer i am getting the error...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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.