I've actually had similar issues. My web application has been cached entirely, but these few files are key:
login.html -> contains a frameset with the following 2 pages: login.page.html -> contains a login form. login.applet.html -> contains a java applet that takes care of the logins. applet.jar -> the applet While there's an active internet connection, it all works brilliantly. Even if I then go offline and my frame (login.html) detects me going offline, enabling the offline part. All pages are served by Gears. But.. When I refresh the page (Ctrl + F5) or clear my browser cache (Ctrl + Shift + Del in Firefox) and then refresh, Gears refuses to serve me anything, despite the fact that the files are physically there in the Gears folder. Starting the application offline through a desktop shortcut isn't working, either, regardless of having a browser cache or not. At every point during my application's Gears javascripting, I've had the localserver.enabled set to true. But I guess when you close the browser and use that desktop shortcut, this information is lost entirely? The Gears software outside of the browser does not serve the local files by default, even if there is not internet connection? I guess I'm doing something wrong, though. Any help would be much appreciated :) On Aug 20, 11:53 am, Eduard Martini <[email protected]> wrote: > First, desktop shortcut is not related with offline mode. You can > create a desktop shortcut forhttp://www.mysite.my. When clicking on > shortcut that url is accessed in web browser. Nothing more. It just > opens the web browser at the specified address. > > Now, if you have implemented offline access to your application, > thenhttp://www.mysite.myshould be available offline. To check that, open > a browser and type your site address there. If it is working, will > work when using desktop shortcut also, if not, not. > > Please understand desktop shortcut does not add any functionality, > just opens the browsers and types in the web address. That's all, > nothing more. Any other functionality that you want, should be > implemented. > > Hope that helps > > On Aug 20, 2:09 am, Merhawie <[email protected]> wrote: > > > Are you sure the localserver is being activated and urls cached? > > > On Wed, Aug 19, 2009 at 3:10 PM, ravi181229 <[email protected]> wrote: > > > > No, it's not available. same connection error. > > > > On Aug 20, 2:03 am, Merhawie <[email protected]> wrote: > > > > is it available if you just enter it into the browser directly while > > > > offline? > > > > > On Wed, Aug 19, 2009 at 3:00 PM, ravi181229 <[email protected]> wrote: > > > > > > Hi Merhawie, > > > > > > ok..I created a desktop shortcut but when I go offline and click on > > > > > that..it says 'Failed to Connect' on the browser. > > > > > How do I access my application offline ? > > > > > > Thanks, > > > > > Ravi > > > > > > On Aug 19, 11:45 pm, Merhawie <[email protected]> wrote: > > > > > > The url of your page will be served from the localserver either way. > > > The > > > > > > content of that page can be updated though while online. > > > > > > > On Wed, Aug 19, 2009 at 12:43 PM, ravi181229 <[email protected]> > > > wrote: > > > > > > > > Hi, > > > > > > > > I have a basic doubt: > > > > > > > I have a script file inwww.myserver.com/ggears.html > > > > > > > I also created a desktop shortcut for this. > > > > > > > Now, when user goes offline (no internet connection) then which > > > file > > > > > > > does he access ? > > > > > > > When user clicks on desktop shortcut (which was created) , which > > > file > > > > > > > is executed to work offline ? > > > > > > > Is there any file created local to the users computer > > > > > > > or is there some kind of ggear thing that uses the browser cache ? > > > > > > > > Can I create a php file (www.myserver.com/ggears.php) and write > > > php > > > > > > > script also along with gears code ? > > > > > > > > Please explain. > > > > > > > Ravi
