Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 4    Views: 83

Ivan Haentjens
Code is Art
Profile
Posts: 8
Reg: Jul 21, 2011
Antwerp, Belgiu...
80
03/22/12 02:53 AM (13 years ago)

Html doc link with url variables?

Hi all there, Is there a way to add a url variable to a html doc screen link? When I use 'sample.html' as HTML file name, everything works. But 'sample.html?myvar=test' results in an error in the iphone simulator: 'Data for this screen has not been downloaded. Please check your internet connection.' tx, Ivan
 
djprendo
Aspiring developer
Profile
Posts: 10
Reg: Nov 04, 2011
Liverpool, UK
100
like
03/22/12 05:03 AM (13 years ago)
Variable don't work I'm afraid. What you can do, like I have. Is upload the files to a free hosting site (like dropbox or imgur) and copy their hosted link into your app. These site both use static links so they should link fine. Let me know how you get on.
 
Ivan Haentjens
Code is Art
Profile
Posts: 8
Reg: Jul 21, 2011
Antwerp, Belgiu...
80
like
03/22/12 05:06 AM (13 years ago)
Thank you for your answer! But that would mean the app needs an internet connection, no? I need to make the app work everywhere in the world, offline.
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
03/23/12 05:02 PM (13 years ago)
You could use a custom URL screen and put the html files in the BT_Docs Folder, call them with - file:///android_asset/BT_Docs/name_of_file.html **Edit** That's for Android of course. Haven't tried it with iOS, guess it'll be much the same?
 
Ivan Haentjens
Code is Art
Profile
Posts: 8
Reg: Jul 21, 2011
Antwerp, Belgiu...
80
like
03/29/12 01:36 PM (13 years ago)
Thanks raveyd. I know, and actually I am using a custom html link, but how to append a variable to the link?
 

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.