Need help with dropdown problem with web page in Netscape

D

Dave Satchell

I have a web page that I'm working on for a client and I'm useing
dropdowns useing Javascript on one of the pages. Everything works fine
in IE but in Netscape they won't work. I can't figure out what is wrong.

I would really appreciate it if someone could take a look at
http://www.nonsubscribers.com/agents_only.htm and let me know what I'm
doing wrong.

Thanx, Dave.
 
T

Thomas A. Rowe

FYI: It has been mentioned here that if you use an OnChange event, that non-mouse users will never
be able to actual select a choice from the drop down.

Anyway, to solve your current issue, try enclosing each drop-down menu in a set of form tags with
individual form names or try surrounding the whole group with a single set of form tags.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
D

Dave Satchell

I added the form tag around all of the dropdowns and now I can't get
them to open anything. I know I'm missing something simple and I've done
a lot of reading and searching from previous posts but I still can't get
it to work.

I think the problem is in the javascript function such as "function
Aegis_launchit()".

I don't really care about the mouse function because I have never meet
anyone that didn't have a mouse unless it was broken and then they
didn't know enough to use the computer without a mouse.

Please help.

Thanx, Dave.
 
M

Murray

I don't really care about the mouse function because I have never meet
anyone that didn't have a mouse unless it was broken and then they didn't
know enough to use the computer without a mouse.

How about paraplegic visitors? Just a thought....

Can you show how you have made these changes, please? Thomas is on target
with his suggestion since Netscape (and others probably) will not render
form elements that are not within a form.
 
D

Dave Satchell

I'm not sure how you want me to show that I made the changes without
posting the code into a post. I can tell you that if you view the source
that the form tags are on line 165 and 358. Everything between these two
lines has to do with the multiple drop-down boxes.

I'm also confused by the code on lines 8-28, and 474-499 as this is not
in my code in FP2003. I'm guessing that it is code that FP is adding but
I would really like to know the details.

Thanx, Dave.
 
D

Dave Satchell

Here is the code in question. I just found that it is injected into
webpages by Norton products such as NIS and AV Corporate Edition.

--------------LINES 8-28 AT THE TOP--------------
<script language="JavaScript">
<!--

function SymError()
{
return true;
}

window.onerror = SymError;

var SymRealWinOpen = window.open;

function SymWinOpen(url, name, attributes)
{
return (new Object());
}

window.open = SymWinOpen;

//-->
</script>

--------------LINES 474-499 AT THE BOTTOM--------------
<script language="JavaScript">
<!--
var SymRealOnLoad;
var SymRealOnUnload;

function SymOnUnload()
{
window.open = SymWinOpen;
if(SymRealOnUnload != null)
SymRealOnUnload();
}

function SymOnLoad()
{
if(SymRealOnLoad != null)
SymRealOnLoad();
window.open = SymRealWinOpen;
SymRealOnUnload = window.onunload;
window.onunload = SymOnUnload;
}

SymRealOnLoad = window.onload;
window.onload = SymOnLoad;

//-->
</script>
 
M

Murray

Yes - that's Norton's skullduggery.

Could you show me your code starting with <form> and ending with </form>?
 
D

Dave Satchell

Sorry, I've already changed all of the code but this is basically what I
followed and what I changed to.

This is the method that I was useing when I was having problems. The
thing I didn't like about this was that I had to have a different
funtion definition for each of the drop-down boxes but I was probably
doing something wrong. Also, it would work in IE but not NN and I wasn't
useing the form tags. When I used the form tags it wouldn't work in
either one, again I'm sure I was doing something wrong.
========================BEGIN============================================
<select id="setit" onchange="launchit()">
<option value="">Select one</option>
<option
value="javascript:window.open('http://www.altavista.com')">AltaVista</option>
<option
value="javascript:window.open('http://www.yahoo.com')">Yahoo</option>
<option
value="javascript:window.open('http://www.google.com')">Google</option>
</select>

<script language="javascript">
function launchit(){
eval(setit.options[setit.selectedIndex].value);
}
</script>
========================END============================================

This is what I changed over to. I got this from Dreamweaver and verified
that it worked in IE and NN. This is right from the page and I think it
is much cleaner and it works in both IE and NN. The function at the top
works for all of the drop-down boxes.
========================BEGIN============================================
<script language="JavaScript" type="text/JavaScript">
<!--
function AO_GetDocument(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
</head>

<body>
<form action="" method="post" name="form1" target="_blank">
<select name="Members" onChange="AO_GetDocument(value,'','')" size="1">
<option value="">Please Choose a Form........................</option>
<option value="documents/members_agent_contract.pdf">Members Agent
Contract</option>
<option value="documents/members_application.pdf">Members
Application</option>
<option value="documents/members_highlights.jpg">Members
Highlights</option>
<option value="documents/policy-members.pdf">Policy Members</option>
</select>
</form>
========================END============================================
 
T

Thomas A. Rowe

Much better approach!

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================


Dave Satchell said:
Sorry, I've already changed all of the code but this is basically what I
followed and what I changed to.

This is the method that I was useing when I was having problems. The
thing I didn't like about this was that I had to have a different
funtion definition for each of the drop-down boxes but I was probably
doing something wrong. Also, it would work in IE but not NN and I wasn't
useing the form tags. When I used the form tags it wouldn't work in
either one, again I'm sure I was doing something wrong.
========================BEGIN============================================
<select id="setit" onchange="launchit()">
<option value="">Select one</option>
<option
value="javascript:window.open('http://www.altavista.com')">AltaVista</option>
<option
value="javascript:window.open('http://www.yahoo.com')">Yahoo</option>
<option
value="javascript:window.open('http://www.google.com')">Google</option>
</select>

<script language="javascript">
function launchit(){
eval(setit.options[setit.selectedIndex].value);
}
</script>
========================END============================================

This is what I changed over to. I got this from Dreamweaver and verified
that it worked in IE and NN. This is right from the page and I think it
is much cleaner and it works in both IE and NN. The function at the top
works for all of the drop-down boxes.
========================BEGIN============================================
<script language="JavaScript" type="text/JavaScript">
<!--
function AO_GetDocument(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
</head>

<body>
<form action="" method="post" name="form1" target="_blank">
<select name="Members" onChange="AO_GetDocument(value,'','')" size="1">
<option value="">Please Choose a Form........................</option>
<option value="documents/members_agent_contract.pdf">Members Agent
Contract</option>
<option value="documents/members_application.pdf">Members
Application</option>
<option value="documents/members_highlights.jpg">Members
Highlights</option>
<option value="documents/policy-members.pdf">Policy Members</option>
</select>
</form>
========================END============================================



Yes - that's Norton's skullduggery.

Could you show me your code starting with <form> and ending with </form>?
 
M

Murray

I agree. Of course, neither work if javascript is turned off, but, oh
well...

--
Murray

Thomas A. Rowe said:
Much better approach!

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================


Dave Satchell said:
Sorry, I've already changed all of the code but this is basically what I
followed and what I changed to.

This is the method that I was useing when I was having problems. The
thing I didn't like about this was that I had to have a different
funtion definition for each of the drop-down boxes but I was probably
doing something wrong. Also, it would work in IE but not NN and I wasn't
useing the form tags. When I used the form tags it wouldn't work in
either one, again I'm sure I was doing something wrong.
========================BEGIN============================================
<select id="setit" onchange="launchit()">
<option value="">Select one</option>
<option
value="javascript:window.open('http://www.altavista.com')">AltaVista</option>
<option
value="javascript:window.open('http://www.yahoo.com')">Yahoo</option>
<option
value="javascript:window.open('http://www.google.com')">Google</option>
</select>

<script language="javascript">
function launchit(){
eval(setit.options[setit.selectedIndex].value);
}
</script>
========================END============================================

This is what I changed over to. I got this from Dreamweaver and verified
that it worked in IE and NN. This is right from the page and I think it
is much cleaner and it works in both IE and NN. The function at the top
works for all of the drop-down boxes.
========================BEGIN============================================
<script language="JavaScript" type="text/JavaScript">
<!--
function AO_GetDocument(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
</head>

<body>
<form action="" method="post" name="form1" target="_blank">
<select name="Members" onChange="AO_GetDocument(value,'','')" size="1">
<option value="">Please Choose a Form........................</option>
<option value="documents/members_agent_contract.pdf">Members Agent
Contract</option>
<option value="documents/members_application.pdf">Members
Application</option>
<option value="documents/members_highlights.jpg">Members
Highlights</option>
<option value="documents/policy-members.pdf">Policy Members</option>
</select>
</form>
========================END============================================



Yes - that's Norton's skullduggery.

Could you show me your code starting with <form> and ending with
</form>?
 
M

MD Websunlimited

Provided they are using a current browser and the page is designed correctly you can move around a web page without a mouse.


--
Mike -- FrontPage MVP '97-'02
J-Bots 2004 Released Special Pricing
http://www.websunlimited.com
FrontPage Add-ins Since '97 FP 2003 / 2002 / 2000 Compatible
 
M

Murray

I'm not trying to be argumentative....

You can't KNOW that. Such onChange events, for example, render a page
inaccessible to folks that need special assists. This may not be important
to everyone, but it is to some.
 
M

MD Websunlimited

Murray how do paraplegics move around a web page?

How do they click on a link? How do they navigate a dynamic menu system that requires mouseover events to display sub menus and
clicks to move to other pages?

I'm not an authority in this field, but I do know from experience that some use a mouth mouse to navigate the web, others a foot
mouse, it all depends on the paraplegics circumstances.
 
T

Thomas A. Rowe

Re-read what I wrote, which has nothing to do with being able to move around the page.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
Top