Re: Re: [GENERAL] OT-Jscript
| From: | Jayme Jeffman Filho | Date: | Thu, 14 Sep 2000 04:34:28 +0000 |
| Subject: | Re: Re: [GENERAL] OT-Jscript | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-2874@lists.php.net to get a copy of this message | ||
As the input tag is a form element you must pass "this.form"to the function
you are calling.
<input type=text value=\"100\" name=\"quant\"
onChange=\"agg_quant(this.form)\">
Jayme.
-----Mensagem Original-----
De: Sungchul Park <scpark@gen128.com>
Para: Enrico Comini <algobit@algobit.com>
Cc: ML-Postrges-general <Pgsql-General@Postgresql.org>; ML-PHP-DB
<php-db@lists.php.net>
Enviada em: quarta-feira, 13 de setembro de 2000 20:49
Assunto: [PHP-DB] Re: [GENERAL] OT-Jscript
>
> 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
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>