Can i use a webview with exclusively remote content (loading from a php site)?

First, a disclaimer: i'm completely new to iphone, android or any mobile development. In the other side, i've been developing websites (php, javascript) for long time.

I have a website which is adapted for mobile and works great. But, there are some features i need such as prevent the screen from dimming (my site is designed to be used for many hours without user interaction while being permanently visible or for example being able to send notifications (with sound, etc., to attract user attention.

This has lead me to consider a webview. From what i've seen, it's about creating a native app which just a webview (browser without toolbars) and using html and javascript to operate. It will use some native functions to perform some native actions (such as the ones i want).

I've searched around and i don't have a specific response to this: can i tell a webview to, permanently load the content from a remote site? I mean, my site is php based (zend), with many jquery content manipulation. Can i tell him something like LOAD htp://www.mysyite.com and let him do everything else from it? Absolutely no local content applies, everything is remote. The webview would just be an "interface" to the website.

And additional question is: can i use jquery on it? Ajax calls? Geolocation? I mean, in a browser i can, i just wonder if inside a webview i can.

I've read that phonegap does this. But most of the time, when taking about phonegap and about webview i general, i read people talking about loading locally the page not remotely in a permanent basis.

Finally, yes, i will build a native app in the future. But now, i simply don't have time to learn about android, ios and blackberry at the same time.

You got yourself the answer: Phonegap.

What phonegap does is to load a LOCAL html, that can do ajax calls to REMOTE urls.

Since you seem to have already done ajax, I think you'll get the picture pretty good:

Normal site: html on SITE <- ajax -> php on SITE
compare with:
Phonegap: html on PHONE <- ajax -> php on SITE

Yes, on phonegap you can use jquery, ajax, etc. And have access to phone things like geolocation. Probably you already saw it, but here is the list of javascript API calls that phonegap gives you: http://docs.phonegap.com/en/2.8.0/index.html

  • What to prepare for PHP interview? I'm called at the company on 11th Jan. I got an email and it was written that the opening is for PHP and HTML, testing and designing, iphone and flash. So I guess if I tell them that I'm interested in php job as a fresher so they may stick their questions on php and other related subjects. So I WANNA KNOW WHAT TO PREPARE TO BEAT THIS INTERVIEW? Please tell me so that i can get this job.
  • What site can I use to download books onto my iPhone for free? I have the app 'iBooks' where I used to store all my books but my phone got wiped and now the site I used to use have taken down the books I'm looking for (Harry potter) the site I used to use is www.epubbud.com and now I can't find a website that is even a little like this.
  • What is the most reliable site i can use to unlock my iPhone 4s? I'm looking to find the most reliable website that i can use to unlock my iPhone 4s. I'm also willing to pay money to unlock it. It is currently locked on telus and i want to use it for bell. I don't want to have telus unlock it because of the high cost of money
  • Is there an app on the iPhone that I can use as a remote? My friend has an app on his phone where he can control the TV like a remote but it's not an iPhone so's wondering does my phone have an app like this