On Aug 26, 8:23 am, rusty <[EMAIL PROTECTED]> wrote:
> Does anyone know if there is a documented (easy) way to interact with
> the contents of a webkit loaded page from an sdk app?
> I'd like to call out to the host window process when a user clicks on
> certain elements in the html.
I'm working on a project right now that is doing the same type of
thing including a web kit view in a cocoa app. If you check the docs
for say NSWebView you might see a method that allows you to call
javascript on the html side. Its also easy to load an html request
into the web view. I would say other cocoa frameworks might have
similar functionality. Having the html talk to the native side is
trickier.
> Additionally, I read somewhere that webkit does no client side
> caching. In other words, on every distinct page load, every js
> script, css and image will have to reload from the web server. That
> kinda stinks. Is it true?
There are different caching options. It might be cached to disc, it
might be cached only in memory, it might not be cached at all. It
depends on what you do on the native side. I would just check the
framework docs for what you want to do in that framework. For example,
a framework might only allow in memory caching but not "on disc"
caching. There can be other ways around the problem such as storing
the html as a file on the local side and loading it as a string with a
baseurl reference to the server.
> thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"iPhoneWebDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/iphonewebdev?hl=en
-~----------~----~----~----~------~----~------~--~---