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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Translating Netscape 4 to Netscape 6

Status
Not open for further replies.

DarrenPower

IS-IT--Management
Nov 1, 2001
56
GB
Hi,

I'm currently attempting to migrate a select section from netscape 4 to netscape 6 and to be frank, I'm at a loss. Can anyone advise or help me on this matter? The code is as laid out below:

Cheers.



.cgi file:

#!/usr/local/bin/perl -- -*-perl-*-

# sun.com template drop down processor

$dirn = $0;
$dirn =~ s#(.*)/.*$#$1#;
chdir $dirn;

require "$dirn/cgi-lib.pl";

&ReadParse(*in);
$destination=$in{'productList'};
if ($destination eq "#") {print "Location: $ENV{'SERVER_URL'}\n\n"; exit;}
#$destination =~ m!^http! || print "Location: \n\n";
$destination =~ m!^http! || print "Location: $ENV{'SERVER_URL'}$destination \n\n";
print "Location: $destination \n\n";



.html file

<p><FORM NAME=&quot;productGoto&quot; ACTION=&quot;/cgi-bin/gotopic.cgi&quot; METHOD=&quot;POST&quot;></TD>
<TD BGCOLOR=&quot;#CCCCFF&quot;><FONT COLOR=&quot;#000000&quot; FACE=&quot;Geneva, Arial, Helvetica&quot; SIZE=&quot;-1&quot;>
<SELECT NAME=&quot;productList&quot; ONCHANGE=&quot;gotoFunction()&quot; ONBLUR=&quot;return
options[0].selected = true&quot;>
<OPTION value=&quot;#&quot;>Catalogus per onderwerp :</option>
<OPTION VALUE=&quot;#&quot;>-------------------------------</OPTION>

<OPTION VALUE=&quot;/service/education/wlc/wlcjava_live.html&quot;>JAVA[tm] TECHNOLOGY</OPTION>




There is more html but this is the only relevant stuff...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top