Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SELECT tag in Netscape 1

Status
Not open for further replies.

darkom

Programmer
Apr 14, 2000
28
CA
Would someone tell me what i am doing wrong here. the pull down menu works great in IE but doesn't in Netscape.

My code :

<SELECT NAME='action'>
<OPTION VALUE='add' SELECTED>Add
<OPTION VALUE='delete'>Delete
<OPTION VALUE='update'>Modify
</SELECT>
 
make sure you surround it with from tags, netscape won't render form elements unless they are inside a form (stupid %&$%@!!^%$ netscape) jared@aauser.com
 
Don't worry Jaredn they are, along with the rest of the form fields.


 
As you can see it lists the choices as text like so:

Chose configuration : MIG-ETHERNETMIG-TOKEN-RINGMIC-HPRIPMIG-HPRIP

instead of putting them in a pull down menu like so :

Chose configuration : MIG-ETHERNET
MIG-TOKEN-RING
MIC-HPRIP
MIG-HPRIP


 
Darkom,

This is what I tried:

<form>
<SELECT NAME='action'>
<OPTION VALUE='add' SELECTED>Add
<OPTION VALUE='delete'>Delete
<OPTION VALUE='update'>Modify
</SELECT>
</form>

It worked perfectly in IE and Netcrap
 
Maybe I should have told you guys this earlier but my html code is in a CGI (Perl). I tried the html code only and your right it works. but from my CGI it doesn't.

Here is the perl code :

Code:
############################################################################
#
# Fonction:    print_form_action
#
# Description: Affiche le formulaire de choix d'action
#
# Paramètres:
#
############################################################################

sub print_form_action
{
print &quot;<HR>&quot;;
print &quot;<FORM ACTION='[URL unfurl="true"]http://&quot;[/URL] . &quot;$webserver&quot; . &quot;/cgi/WDJcgiStart.cgi' METHOD='GET'>&quot;;
print &quot;<INPUT TYPE='HIDDEN' NAME='script' VALUE='$logfile.cgi'>&quot;;
print &quot;<TABLE BORDER=0 CELLSPACING=2 CELLPADING=0><TR><TD>&quot;;
print &quot;Composante choisie : &quot;;
print &quot;</TD><TD>&quot;;
print &quot;$composante&quot;;
print &quot;<INPUT TYPE='HIDDEN' NAME='composante' VALUE='$composante'>&quot;;
print &quot;</TD></TR><TR><TD>&quot;;
print &quot;Choisir configuration : &quot;;
print &quot;</TD><TD>&quot;;
print &quot;<SELECT NAME='action'>&quot;;
print &quot;<OPTION VALUE='mig-ethernet' SELECTED>MIG-ETHERNET&quot;;
print &quot;<OPTION VALUE='mig-tokenring'>MIG-TOKEN-RING&quot;;
print &quot;<OPTION VALUE='mic-hprip'>MIC-HPRIP&quot;;
print &quot;<OPTION VALUE='mig-hprip'>MIG-HPRIP&quot;;
print &quot;</SELECT> &quot;;
print &quot;</TD></TR>&quot;;

print &quot;</TABLE>&quot;;
print &quot;<BR>&quot;;
print &quot;<input TYPE='submit' VALUE='Exécuter'>&quot;;
print &quot;</FORM>&quot;;
}
 
it looks more like a &quot;tables in netscape problem&quot; than a form problem
 
in case you didn't know, tek-tips has a cgi-bin forum.

nick bulka

 
I agree with The Doc

close the option tag Unicorn11
abhishek@tripmedia.com

[red]Nothing is permanent in life except Change[red]
 
Sorry Doc but it still doesn't work, I've already tried that
but thanks anyway.
 
Gimme more info.

what Netcrash are you using? I just tried to recreate your problem and I'm not getting it.

Copy and paste the parsed output. Maybe your perl is nuking something unexpected or adding something else...

we need more info. :)


dr
 
As I said earlier it lists the possible choices instead of puting them in a menu.

I use Netscape Communicator 4.7

I don't know how else to explain it and I can't paste an image onto my reply.

if you want to see an aproximation of the output look further up to my reply of nov 14.



 
If it helps here is the output of the view source from the browser



<!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML//EN&quot;>
<HTML><HEAD><TITLE>Router View</TITLE>
<link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;/_themes/personnel/pers1100.css&quot;>
<link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;/cgi/css/perscgi.css&quot;>
</HEAD>
<BODY>
<FONT SIZE='-1'>
<H3>Router View</H3>
<BR><HR>
<FORM ACTION=' METHOD='GET'>
<INPUT TYPE='HIDDEN' NAME='script' VALUE='WDJRouterView.cgi'>
<TABLE BORDER=0 CELLSPACING=2 CELLPADING=0>
<TR><TD>Composante choisie : </TD>
<TD>B30500G1<INPUT TYPE='HIDDEN' NAME='composante' VALUE='B30500G1'>
</TD></TR></TABLE>
<TABLE BORDER=0 CELLSPACING=2 CELLPADING=0>
<TR><TD>Choisir configuration : </TD>
<TD><SELECT NAME='action'>
<OPTION VALUE='MIG-ETHERNET' SELECTED>MIG-ETHERNET
<OPTION VALUE='MIG-TOKEN-RING'>MIG-TOKEN-RING
<OPTION VALUE='MIC-HPRIP'>MIC-HPRIP
<OPTION VALUE='MIG-HPRIP'>MIG-HPRIP
</SELECT>
</TD></TR></TABLE>
<BR>
<input TYPE='submit' VALUE='Exécuter'>
</FORM></BODY></HTML>
 
this code works fine in ns 4.5
but you're still not closing the option tags ;]
 
Works in NS4.72 under windoze.
Maybe it's getting confused somewhere else. Try closing the <font> tag, closing the <option> tags, or maybe even using &quot; instead of '.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top