This is an interesting concept. Unfortunately, the kind of signaling  
from the web page to the Objective C code and back is kind of limited.  
Basically, you can redirect to a particular URL on your web page and  
the Objective C can sense that. You would have to make a whole  
standard set of URLs and what action they should cause to perform.  
Also, you can execute JavaScript code against the page being  
displayed, and be returned a value to the Objective C code.

The Objective C web control, UIWebView, can load whatever URL it  
chooses.

Anyone know any other methods of getting the web page and SDK methods  
to play together?

Regarding assets, you can bundle files and images in your application,  
and read them into Strings, and display that directly in a UIWebView.  
I guess you could call that making a web server on the iPhone.

--Gershon Kagan

On Jul 16, 2008, at 4:58 PM, Hayden wrote:

>
> I am interested in this as well.
>
>> 3) An application may basically embed a browser into the application
>> via UIWebView.  The application can intercept gestures, user's link
>> clicking, and returned html from the network and modify or enhance  
>> all
>> of the above before having the webview parse it.
>
> Can you package javascript, HTML, css, graphics and other web
> application file assets within the native application installer or do
> these assets need to be compiled into the application somehow?
>
> Is there a way for JavaScript in the web application to communicate
> with native C code to access device services like GPS?
>
> On some platforms it is possible to integrate javscript in a web based
> user interface with a native application by setting up a local server,
> and send AJAX or Json queries from the web UI to the local server,
> which then acts on the data and sends new data back to the web
> application.
>
> If these were all possible it would be interesting if there was an
> open source project to develop a iphone open C framework that would
> enable web developers who are not that familiar with open C to create
> a standalone iphone appliation by developing the user interface within
> the browser and having a sandbox of javascript commands to access
> device services like GPS, contacts database or other features.
> Developers would create the javascript/web application package it with
> the open C framework and create a standalone iphone app.
>
> >


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to