iOS: Load Form in a UIWebView and Submit


[self.webView stringByEvaluatingJavaScriptFromString:[NSString stringWithFormat:@"document.getElementById('username').value ='%@'", @"user"]];
    
[self.webView stringByEvaluatingJavaScriptFromString:[NSString stringWithFormat:@"document.getElementById('password').value ='%@'", @"passs"]];
    
[self.webView stringByEvaluatingJavaScriptFromString:@"document.getElementById('loginForm').submit()"];
iOS: Load Form in a UIWebView and Submit iOS: Load Form in a UIWebView and Submit Reviewed by Ricardo Castellanos on 8:28 Rating: 5

No hay comentarios:

Con la tecnología de Blogger.