I have a problem with the following code. It generates a
<FORM><SELECT><OPTION> list. There is no problem in the generating. The
problem is in the execution as follows.
It works fine in Mac IE with and without the <FORM></FORM>.
In Mac Netscape 6 the onChange does not activate if there is no
<FORM></FORM>. When I put it in a form as indicated below the value of
train.options.value is undefined. What am I doing wrong?
As I said there is no problem in IE and mayby other browsers. It may be
just a Mac Netscape 6 problem.
<!--
document.write("<FORM name='selectIt' action='post'>");
document.write("<SELECT size='8' NAME='train'
onChange='displayTrain(train.options.value)'>");
for (i=0;i<Trains.length;i++) {
if (Trains[i][3][0]=="NA") document.write("<OPTION value="+i+"
class='na'>");
if (Trains[i][3][0]=="DD") document.write("<OPTION value="+i+"
class='dd'>");
if (Trains[i][3][0]!="NA" && Trains[i][3][0]!="DD")
document.write("<OPTION value="+i+" class='aa'>");
var trainName = Trains[i][0];
document.write(trainName+fillSpaces[22-trainName.length]+searchStation(T
rains[i][2][0])+" /
"+searchStation(Trains[i][2][Trains[i][2].length-1]));
document.write("<\/OPTION>");
};
document.write("<\/SELECT>");
document.write("\/FORM>");
//-->
The page is http://www.dcs-chico.com/~denmarks/amtrak.html (without the
<FORM></FORM> wrapper).
--
Dennis M. Marks
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----