views:

242

answers:

2

Hello

This is an interesting one for you all! I am looking at doing an app which contains a webview that points to a website that requires a login. I know how to do the webview, etc but is there a way that I can automatically fill in the usernanme and password through XCode? I am looking at storing the user name and password within the IPhones data (any advice on that would be appreciated!), filling in the username, password, and clicking the login button

I will know the names of these boxes if that helps?

Cheers

Paul

A: 

Try using UIWebView's -stringByEvaluatingJavaScriptFromString: method. Create a javascript snippet to fill your fields, and then evaluate it after your web page is loaded.

Ben Gottlieb
A: 

hey i know this topic is a lil bit old but i would have the same question... the problem is that i'm some kind of a newbie, i absolutely don't know how to program that.

here's what i'm looking for: i'm writing a very simple iphone app which allows to access to different webpages of my university. You need to log into each page with your id and psw and u'd like to program it so that you just have to enter them into the preferences and it fills the fields :)

some ideas?

Helmut