Re: Using Web APIs
Re: Using Web APIs
- Subject: Re: Using Web APIs
- From: Quinn <email@hidden>
- Date: Wed, 25 Feb 2004 16:14:20 +0000
At 10:04 +0000 25/2/04, Mark Thomas wrote:
The bit which not sure about whether it possible to extend the java script
language in the similar way which you can do via java via JNI, is this
approach to take or is there another way. We are presently do this in our
windows version so we can add in some special scripting functionality.
For HTML rendering, WebKit is your friend.
As far as allowing you to call out from JavaScript to your host
application, there's currently no architected way of doing this.
However, you can work around this limitation by calling "alert" in
JavaScript and catching that call in your application's
webView:runJavaScriptAlertPanelWithMessage: method.
DTS has an, as yet unreleased, sample that shows how to do this. I
didn't write the sample, so I can't just send you a copy. However,
if you write to <email@hidden>, the sample's author should be able
to supply you with the latest version.
S+E
--
Quinn "The Eskimo!" <
http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.