View Full Version : problem characters
05-31-2005, 04:31 PM
05-31-2005, 05:05 PM
The backslash is read by the browser as an escape character, meaning that the character that follows the backslash should be taken literally (rather than interpreted as a special character).
To get the backslash to appear as part of a string - in this case, your password - escape it (i.e. escape the backslash)
When you autofill the password value, escape the backslash, by placing a backslash before it.
document.forms.elements.value = 'E032\\j1';
When you alert that form field value, it should give the correct password, including the single backslash.
05-31-2005, 05:11 PM
Thank you, that worked fine.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.