OT-Jscript

Started by Enrico Cominiover 25 years ago2 messagesgeneral
Jump to latest
#1Enrico Comini
algobit@algobit.com

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

#2Sungchul Park
scpark@gen128.com
In reply to: Enrico Comini (#1)
Re: 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