HTML:
[code]
Password:<input name=”passwordField” class=”field”>
<button name = “randomize” value = “randomize” class = “button”
onClick=”randomizePassword(passwordField,15,allowSmall,allowNum,allowSymbol, allowPronou);”>Randomize</button><br>
<input type=checkbox NAME=”allowSmall” checked>Uses small alphabets<br>
<input type=checkbox NAME=”allowNum” checked>Uses numbers<br>
<input type=checkbox NAME=”allowSymbol” checked>Uses symbols<br>
<input type=checkbox NAME=”allowPronou” checked>Uses Latin-1 Supplement<br>
Recently, I am trying to send those checkboxes and a field input into the javascript’s argument as objects, but they are not working at all.
I’ve already included the javascript .js file into the HTML code. It does work correctly, because I can invoke other methods in that .js file.
The onClick of the button also work correctly. I’ve tested that.
The Javascript function “randomizePassword” in the HTML above does not even get called. I have tried put an alert(“1”) in the first line of that function, but no sign of alert at all.
IMO, It should all come down to “how to pass objects as arguments correctly”. I’ve tried google for it around, I have tried follow some examples, but it still does not work. If anybody has any solution, please help. ?