Re: OT-Jscript
От | Sungchul Park |
---|---|
Тема | Re: OT-Jscript |
Дата | |
Msg-id | Pine.LNX.4.10.10009140846190.684-100000@scpark.gen128.com обсуждение исходный текст |
Ответ на | OT-Jscript ("Enrico Comini" <algobit@algobit.com>) |
Список | pgsql-general |
On Sat, 9 Sep 2000, Enrico Comini wrote: > Problem with JAVASCRIPT > > echo "<SCRIPT LANGUAGE=\"JavaScript\"> > function agg_quant(theform) { > theform.submit(); > return true > } > </script>"; > > <form name=\"form_quant\" method=post > action=cart.php3?d=rimuovi&cartID=$cartID> > <input type=text value=\"100\" name=\"quant\" > onChange=\"agg_quant(form_quant)\"> > </form> > > > Why there isn't problem if I press Enter and with Tab I have Property or > method not supported. > > Thanks, > Enrico > You can try to change your code like this... <form name=\"form_quant\" method=post action=cart.php3?d=rimuovi&cartID=$cartID> <input type=text value=\"100\" name=\"quant\" onChange=\"agg_quant(this)\"> </form> I mean use 'this' rather than 'form_quant' when you call agg_quant() function. Park, Sungchul / mailto:scpark@gen128.com gen128, inc. - The internet company powered by open source. http://www.gen128.com / Voice : +82-2-3017-0128 / Fax : +82-2-3017-1128 238-9 poi kangnam, #601 poongjoen bldg., Seoul 135-250, Republic of Korea
В списке pgsql-general по дате отправления: