Re: OT-Jscript

From: Sungchul Park <scpark(at)gen128(dot)com>
To: Enrico Comini <algobit(at)algobit(dot)com>
Cc: ML-Postrges-general <Pgsql-General(at)Postgresql(dot)org>, ML-PHP-DB <php-db(at)lists(dot)php(dot)net>
Subject: Re: OT-Jscript
Date: 2000-09-13 23:49:13
Message-ID: Pine.LNX.4.10.10009140846190.684-100000@scpark.gen128.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)gen128(dot)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

In response to

  • OT-Jscript at 2000-09-09 11:55:34 from Enrico Comini

Browse pgsql-general by date

  From Date Subject
Next Message Kane Tao 2000-09-14 00:47:59 test
Previous Message Jim Jennis 2000-09-13 22:29:47 Linking Postgresql OBDC via C