Trigger Javascript Function on Web Page with Button on Toolbar
Greetings,
I am in the process of creating a very simple native app for the iPad with Xcode 4. It consists of a UIWebView and a Toolbar with a few Buttons. When the app is launched, it loads a webpage that I have designed. The design scheme is that all the "work" is done by the web page.
Here is what I want to know how to do:
When a Toolbar Button is pressed - I want it to trigger a Javascript function on my webpage. This would be analogous to the HTML <...onclick:"GenericJavascriptFunctionName()".../>, only I want the same GenericJavacriptFunctionName() to be triggered when I press a Toolbar Button on my native app.
Thanks in advance
|