Discussion Forums  >  WebViews and HTML for Mobile

Replies: 8    Views: 619

Altec2u
Apple Fan
Profile
Posts: 8
Reg: Oct 28, 2010
Lake Havasu Cit...
80
10/29/10 02:45 PM (15 years ago)

Custom HTML Properties

If i want to use images in the Custom HTML Properties how do I tell xcode where the images sources are?
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6868
Reg: Jan 01, 2010
Monterey, CA
78,860
like
10/29/10 10:25 PM (15 years ago)
Hi. You don't 'tell' Xcode where the images are, the HTML knows where they are. Example: Hi, this is in a paragraph There are instances where it would make sense to embed an image in the project itself, along with an HTML page, also as a file in the Xcode project itself. In this case, you could include 'local' images instead of downloading the image from the net. However, this strategy is not implemented because most of our site visitors don't understand how to take advantage of it. Our next release does address this issue (along with some others). Alternatively, if you don't have a website to host your images on, you could create a .PDF screen or Word .doc screen.
 
Zoid66
Lost but trying
Profile
Posts: 176
Reg: Oct 26, 2010
USA
1,760
like
11/02/10 08:43 AM (15 years ago)
I have a follow up quesiton here: Custome HTML, I would like some of the images to be location to the device. After downloading the source code would we just create a folder (in eclipse) and add the images to such? AND back in our HTML code would we point to the folder as you would with standard web development? ALso would this work as well with .js files? Code example below: ---- Looks like I can't past the code example:
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6868
Reg: Jan 01, 2010
Monterey, CA
78,860
like
11/02/10 10:23 AM (15 years ago)
Good questions. Referring to images that are local, in the Xcode project from the HTMl is a tough issue and not as easy as most folks think. However, because we add and update features based on our audiences opinions, and what matters to them, we could relatively easily add support for this. Here's how it could work: 1) You create an HTML file with image tags that refer to the image only, no path information, like so: 2) You drag the HTML file, and the image, into a directory in your Xcode project 3) You create add a 'Local HTML File' screen to your buzztouch app using the control panel and enter the name of the HTML file you drug into your Xcode project. This would not be difficult but would require us to: a) Support this new screen type in the iPhone and Android apps source-code that you download. b) Add a 'Local HTML File' screen type to the control panel. We could also do this for 'Local Sound File', 'Local Video File', 'Local PDF', etc. The trick would be helping our site visitors understand how it worked and understanding that once the app is compiled these types of screens could not be changed with the control panel making them static and not dynamic content. If this makes sense, and you want us to consider doing this, say so in this post. We are also working on a way for site visitors to vote / suggest new features so we can continue to work on what is important to our end-users. Sometimes our ideas are not popular! Cheers
 
Mikie
Aspiring developer
Profile
Posts: 5
Reg: Oct 28, 2010
location unknow...
50
like
11/03/10 01:41 AM (15 years ago)
I vote yes. Would cut down on internet use for those images that we know will always be static.
 
fusionsch
I hate code!
Profile
Posts: 516
Reg: Dec 28, 2010
Montreux Switze...
11,610
like
01/01/11 08:32 AM (15 years ago)
I vote yes too, as it definitely makes sense!!! I'm currently playing with your (great) tool to build a touristic app that will mainly rely on online content, but I wish to embed static content too. For a quite simple reason: this app will be used by foreign tourists too... who maybe don't have the possibility to be online with their iPhone when they are here, as it would be too expensive! When I'm travelling abroad, I search for places offering free wi-fi to get connected, as I would pay some 14 dollars for each MB of data loaded via Edge or G3! My idea is to have an interesting embedded content, with photographs etc., and to warn users before they need to be connected to get more! So... thanks in advance if you decide to offer this local html file feature!!! Best greetings and best wishes for 2011! Jack - fusions.ch
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6868
Reg: Jan 01, 2010
Monterey, CA
78,860
like
01/01/11 12:16 PM (15 years ago)
v1.5 is going to be perfect for you! If you have not already done so, send an email to info at buzztouch.com with Early Adopter in the subject line. You'll be impressed with the latest versions ability to easily embedd content ;-)
 
fusionsch
I hate code!
Profile
Posts: 516
Reg: Dec 28, 2010
Montreux Switze...
11,610
like
01/02/11 06:43 AM (15 years ago)
Hi David, Thanks! I've sent the Early Adopter e-mail! Just one more detail: to be able to develop an offline content, we'll need an offline info screen and an embedded main image! Any news about v1.5 release date? Best greetings Jack
 
farcat
buzztouch Evangelist
Profile
Posts: 1008
Reg: Jan 27, 2012
France
13,230
like
03/17/12 06:01 AM (14 years ago)
I vote yes too, that would be a great feature! Regards, Farcat
 

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.