Hi All-
So I've been bashing my head in with this the past few days. What I have is a UIWebView that has loaded a webpage, say www.mypage.com.
The html of mypage.com contains javascript that computes certain things for the page to display.
How would I be able to call the javascript functions of this page from objective c, and return those values?
Say the webpage has a function called foo(), that when called spits out the phrase,"foo was called". I would like from object C to be able to call this function, and print what it returns in NSLOG. Is this possible?
Any help is greatly appreciated. Thanks!
So I've been bashing my head in with this the past few days. What I have is a UIWebView that has loaded a webpage, say www.mypage.com.
The html of mypage.com contains javascript that computes certain things for the page to display.
How would I be able to call the javascript functions of this page from objective c, and return those values?
Say the webpage has a function called foo(), that when called spits out the phrase,"foo was called". I would like from object C to be able to call this function, and print what it returns in NSLOG. Is this possible?
Any help is greatly appreciated. Thanks!