I have a UIWebView set up containing my universitys intranet page, my code will pass in my username fine (as it is a number)
NSString *studentNumber = @"639909";
NSString *javaScriptNumber = @"document.getElementById('username').value=%@;";
javaScriptNumber = [NSString stringWithFormat: javaScriptNumber, studentNumber];
[webViewInt stringByEvaluatingJavaScriptFromString: javaScriptNumber];
However when i try to run the same code to fill in the password field, it will only work with numbers, my password is text so when I enter text nothing will pass into the password field. However if I set my password to be all numbers it seems to work. Is there something in this code I need to change to allow it to pass all characters as it currently only passes numbers
Thankyou
(This is the code for the password)
NSString *password = @"password";
NSString *javaScriptPass = @"document.getElementById('password').value=%@;";
javaScriptPass = [NSString stringWithFormat: javaScriptPass, password];
[webViewInt stringByEvaluatingJavaScriptFromString:javaScriptPass];