whystruggle
14-Feb-2006, 01:09 AM
Hi. Great little script, but my form checkboxes pass this.checked to a javascript function with onclick.
I start with something like:
<input name="InputName" type="checkbox" value="CheckedValue" onclick="MyFunction(this.name,this.checked)">
And when fmbadhandler processes things I get this:
<input name="InputName" type="checkbox" value="CheckedValue" onclick="MyFunction(this.name,this.)">
I can probably modify the code myself to disallow modifications to "checked" within on____="" declarations, but I figured that I should make you aware of this. Quite frankly, I'm surprised that I seem to be the first to stumble upon this.
Thanks again for the great script.
I start with something like:
<input name="InputName" type="checkbox" value="CheckedValue" onclick="MyFunction(this.name,this.checked)">
And when fmbadhandler processes things I get this:
<input name="InputName" type="checkbox" value="CheckedValue" onclick="MyFunction(this.name,this.)">
I can probably modify the code myself to disallow modifications to "checked" within on____="" declarations, but I figured that I should make you aware of this. Quite frankly, I'm surprised that I seem to be the first to stumble upon this.
Thanks again for the great script.