Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Help, Flowers NOT defined?

0 views
Skip to first unread message

fdsaf

unread,
May 3, 2001, 11:29:47 PM5/3/01
to
In NN I get flowers not defined, any idea's?

thanks


<html><head><title>Flowers 'R' Us</title>
<script language="javascript">
function writeOptions(startNumber, endNumber)
{
var optionCounter;
for (optionCounter = startNumber; optionCounter <= endNumber;
optionCounter++)
{
document.write('<OPTION value=' + optionCounter + '>' +
optionCounter);
}
}
function recalcDateDiff()
{
var one = flowers.one.options[flowers.one.selectedIndex].value;
one *= 15;
var total = eval(one);
document.flowers.txtDays.value = total;
}
</script>
</head
<body>
<table cellspacing="0" cellpadding="10" border="1">
<tr>
<td rowspan="2" valign="top">
<form name="flowers">
<input type="button" value="Place Order">
<INPUT TYPE="text" NAME="txtDays" VALUE="0" size="10">
</td>
<td>
<img border="0" src="Flowers 'R' Us_files/rose.jpg"></a><br />
<select name="one" onChange="recalcDateDiff()">
<SCRIPT LANGUAGE=JavaScript>
writeOptions(0,3);
</SCRIPT>
</SELECT>
</td>
</tr>
</table>
</form>
</body>
</html>


Matthew Burnside

unread,
May 4, 2001, 2:09:31 AM5/4/01
to
In NN4 you can't just refer to a form by name. You must use
document.formName
instead.

P.S. Couldn't help noticing that you have a folder with not only spaces but
also with single quotes in the path name--this is a very bad idea.
HTH,
Matt

fdsaf <as...@dfsa.coo> wrote in message
news:LmpI6.14244$Aj1.5...@typhoon2.ba-dsg.net...

fdsaf

unread,
May 4, 2001, 2:42:55 AM5/4/01
to
I changed this and it still doesn't work.


var one=document.flowers.one.options[flowers.one.selectedIndex].value;
var two=document.flowers.two.options[flowers.two.selectedIndex].value;
var three=document.flowers.three.options[flowers.three.selectedIndex].value;
var four=document.flowers.four.options[flowers.four.selectedIndex].value;
var five=document.flowers.five.options[flowers.five.selectedIndex].value;
var six=document.flowers.six.options[flowers.six.selectedIndex].value;

Thnaks again.

"Matthew Burnside" <mattbu...@hotmail.zerospam.com> wrote in message
news:uIrI6.5690$O71.7...@paloalto-snr1.gtei.net...

fdsaf

unread,
May 4, 2001, 2:56:24 AM5/4/01
to
Nevermind, I have it working.
Thanks for the help.


"fdsaf" <as...@dfsa.coo> wrote in message

news:PbsI6.14596$Aj1.5...@typhoon2.ba-dsg.net...

Lee

unread,
May 4, 2001, 2:28:35 AM5/4/01
to
"fdsaf" said:
>
>In NN I get flowers not defined, any idea's?
>
>var one = flowers.one.options[flowers.one.selectedIndex].value;

document.flowers.one.options[document.flowers.one.selectedIndex].value

0 new messages