Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 6    Views: 51

AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
02/04/14 02:38 PM (11 years ago)

HTMLPRO question - needs refresh before displaying page

I have a twitter list that I wish to display inside my Android BT3 app. I've created the list and embedded it in an html page as as instructed by twitter and hosted it - the url is http://limetimeapps.co.uk/appfiles/f1quotes/f1-twitterpicks-m.html. It works ok on a mobile browser, but I would prefer to keep the user navigation inside the app, using the html pro plugin to display the apge. The problem is my page only shows with html pro if I use the refresh button, which isn't a good user experience. Can anyone suggest anything to help please?
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
02/04/14 03:08 PM (11 years ago)
could you do a periodic refresh from within the html page? Cheers! -- Smug
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
02/04/14 03:21 PM (11 years ago)
Interesting idea. I probably could, but, if I set it to refresh to say once a minute, I doubt a user would wait that long. If I set it to a shorter period, I think that would cause other issues. I think the problem isn't the html of my page, I think the twitter list code is doing something.
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
02/04/14 03:37 PM (11 years ago)
Why not force the refresh in the onCreate or onStart method? should be able to just add in the line: handleRefreshButton();
 
Annonymous
Profile
02/04/14 03:54 PM (11 years ago)
I'll give that a try Chris, but if it works in a mobile browser but not the plugin, would that be masking a more fundamental problem? The plugin is fine for everything else.
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
02/04/14 04:16 PM (11 years ago)
The plugin caches the document for fast loading, appropriate for most people.
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
03/07/14 12:17 PM (11 years ago)
Tried all sorts of things, but I can't make my twitter list work with html pro. I am not a coder so my attempts involved a lot of trial and error. However, the page loads with custom url.
 

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.