Discussion Forums  >  Uncategorized

Replies: 9    Views: 737

basement
Aspiring developer
Profile
Posts: 488
Reg: Apr 07, 2011
Ontario
4,880
04/27/11 05:56 AM (14 years ago)

pull to refresh (iOS)?

I just read about this and thought it might solve my refresh page (on html) problem as reported here: http://www.buzztouch.com/forum/thread.php?tid=501FD57FB9430EFFB69DF84&status=&searchInput=search...&sortColumn=FT.dateStampUTC&sortUpDown=DESC¤tPage=2&doViews=1 http://ioscodesamples.blogspot.com/2011/02/iphone-pull-to-refresh.html Could you tell me how I could add this via buzztouch, if that's possible?
 
gotfox
buzztouch Evangelist
Profile
Posts: 146
Reg: Feb 05, 2011
Las Vegas
8,460
like
04/27/11 06:22 AM (14 years ago)
This function is already a part of the app. It doesn't have that good looking Pull to refresh description, but it's there. Try it.
 
basement
Aspiring developer
Profile
Posts: 488
Reg: Apr 07, 2011
Ontario
4,880
like
04/27/11 06:44 AM (14 years ago)
oh, thanks.....I see it works on a menu, but does it doesn't seem to work on pages that use html (buzztouch 1.5, iOS)
 
gotfox
buzztouch Evangelist
Profile
Posts: 146
Reg: Feb 05, 2011
Las Vegas
8,460
like
04/27/11 07:12 AM (14 years ago)
You are correct, that doesn't work there. Seeing as how you are in an HTML screen in 1.5, have you gone to the Advanced Screen Properties-->Document Behavior-->Show Browser Refresh Button?
 
mutzy
Aspiring developer
Profile
Posts: 841
Reg: Nov 03, 2010
Medford, MA
9,860
like
04/27/11 09:02 AM (14 years ago)
speaking of which, does anyone know how to disable this? I took out the data URL and reporttocloud reference in my config.txt file which removed the refresh icon in the top left and stops asking the user to refresh, but pulling down the menu screen still causes it to refresh (possibly showing new, unfinished content).
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
04/27/11 09:09 AM (14 years ago)
To remove the 'pull to refresh' feature in a menu, remove the dataURL in that menu's Advanced Properties.
 
gotfox
buzztouch Evangelist
Profile
Posts: 146
Reg: Feb 05, 2011
Las Vegas
8,460
like
04/27/11 10:19 AM (14 years ago)
Also try disabling the force refresh under Document Behavior.
 
mutzy
Aspiring developer
Profile
Posts: 841
Reg: Nov 03, 2010
Medford, MA
9,860
like
04/27/11 10:30 AM (14 years ago)
I think the force refresh has to do with cached documents. I already disabled that on most of my screens and it still refreshes when I pull down. I'll go through and delete dataURL for these menus which should do the trick. Thanks guys...
 
Marcel Proust
I hate code!
Profile
Posts: 1
Reg: Jul 17, 2011
Sydney
10
like
07/19/11 07:03 PM (14 years ago)
Hi there. New to all of this so can i perhaps ask a silly question. If i get an app to point to a html5 document will the iphone cache images and sounds attached to that html document. For example; if the app point to html5 that in turn displays a slide show of images, with each image having its own sound, will that be available offline once it has been 'seen'? 1.5 is looking great btw. Very excited. Great job!
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
07/20/11 03:05 AM (14 years ago)
Hi in Sydney... HTML5 markup does allow for this type of functionality. The app's code itself will not pull images or sounds or anthing else FROM the the html and cache it. This means you have two choices (in v1.5). a) Add the images and sound to the Xcode project and use a non-relative URL In the HTML5 to the image / audio. Just use the file name in the src tag. OR b) Write an HTML5 page that undertands that the assets needed to load the page are available offline. iOS supports this. Basically you're doing some special markup to instruct the browser to do it for you. This is a good approach sometimes but does take some technical skill. YOu could see this: http://geeknizer.com/html-5-client-storage/
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.