A
Aaron
how would i use document.write to write this input box? i can do it without
quotes but i need them for my purpose
<input type="textbox" name="input" value="something">
i did this but it doesn't have the double quotes
document.write( '<input type="textbox" name="input" ' + 'value="' +
entereddata+ '">');
2.
filter(enetereddate);
how can i filter out single quotes double quotes and other character that
might cause problem from a string? this string will be added to the value
param of the textbox.
this will cause problem, say i enetered this in a textbox
sjdkfjdfkd "dfdfd" dfdfd
when i do document.write and write this to the value parameter of the new
textbox it will be like this
<input type=textbox name=input value=sjdkfjdfkd "dfdfd" dfdfd>
i would like a function that can replace the quotes in the input string to
"
and also any other harmful characters
Thanks in advance,
Aaron
quotes but i need them for my purpose
<input type="textbox" name="input" value="something">
i did this but it doesn't have the double quotes
document.write( '<input type="textbox" name="input" ' + 'value="' +
entereddata+ '">');
2.
filter(enetereddate);
how can i filter out single quotes double quotes and other character that
might cause problem from a string? this string will be added to the value
param of the textbox.
this will cause problem, say i enetered this in a textbox
sjdkfjdfkd "dfdfd" dfdfd
when i do document.write and write this to the value parameter of the new
textbox it will be like this
<input type=textbox name=input value=sjdkfjdfkd "dfdfd" dfdfd>
i would like a function that can replace the quotes in the input string to
"
and also any other harmful characters
Thanks in advance,
Aaron