paolodina
07-16-2003, 10:04 AM
Hi guys, i'm a newbie in javascript, so, this could be a silly question, anyway..
I have a text field that can accept an integer (in the environment which i actually use, Zope, this might be specified inserting the string :int after the field name)
<input type="text" name="resPerPage:int" />
Now i want increment and decrement the value of resPerPage using two buttons..
<input type="button" value="+" onClick="javascript:this.form.resPerPage:int.value++;" />
<input type="button" value="-" onClick="javascript:this.form.resPerPage:int.value--;" />
But internet explorer display this error: character 21 expected ;
Character 21 is the second :
Is there a way to handle this case?
IMHO javascript(or better, the form i have used) can't handle the ':int' part.
Thanks guys, hope someone help!
Paolo Dina
I have a text field that can accept an integer (in the environment which i actually use, Zope, this might be specified inserting the string :int after the field name)
<input type="text" name="resPerPage:int" />
Now i want increment and decrement the value of resPerPage using two buttons..
<input type="button" value="+" onClick="javascript:this.form.resPerPage:int.value++;" />
<input type="button" value="-" onClick="javascript:this.form.resPerPage:int.value--;" />
But internet explorer display this error: character 21 expected ;
Character 21 is the second :
Is there a way to handle this case?
IMHO javascript(or better, the form i have used) can't handle the ':int' part.
Thanks guys, hope someone help!
Paolo Dina