Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

anuhoho

macrumors newbie
Original poster
May 22, 2011
10
0
Hi

I have a url which shows a username,password fields and a submit button. On clicking the submit button it pops up a alert view in my device stating some message. I need to capture that message and use it in my application. Now that are java alerts that are being displayed.

So i need to find out a way so that as soon as the user clicks submit, I can disable the UIWebView and can take out the message from the pop up alert so that i can use it.
 
Maybe it's not possible under iOS to do this?

Under Mac OS X, you'd attached a WebUIDelegate to the WebView. But iOS's UIWebView doesn't have this.
 
I think that the only way would be via javascript. But I have no idea how to do this.

I know there are articles on the web with info on how to use javascript to get notifications from UIWebview. Look there.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.