• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Using Web APIs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Using Web APIs (From: Mark Thomas <email@hidden>)

  • Prev by Date: Re: CFReadStream not giving me any data
  • Next by Date: Re: Copying files >2GB
  • Previous by thread: Using Web APIs
  • Next by thread: CFSocketCreateWithSocketSignature callback question
  • Index(es):
    • Date
    • Thread