Page 1 of 1
Beginner HTMLText question
Posted: Sat May 21, 2011 2:15 am
by yachris
Hello,
I'm seeing if it makes sense to "port" a partly-completed iOS project to LiveCode.
A big part of the project is a LOT of HTML. I'm curious if I can use the "HTMLText" property for iOS and Android. The documentation says it's for OSX/Windows/Linux only.
Will it be supported on iOS/Android any time soon? Are there workarounds (other than launching the browser, which isn't acceptable)?
Thanks!
Re: Beginner HTMLText question
Posted: Sat May 21, 2011 11:33 am
by BvG
htmltext is build into every field object, no matter the platform. However, it is not really html, but only a very small subset. If that is enough for what you need to do, then it will run on any platform that LC can deploy to.
Re: Beginner HTMLText question
Posted: Sat May 21, 2011 1:04 pm
by yachris
Excellent, that's exactly what I need... thanks for the reply. Basically, I'm using bold text and paragraphs... and maybe bold-italics if I get really crazy

Re: Beginner HTMLText question
Posted: Sat May 21, 2011 4:55 pm
by sp27
Is there a place where this "small subset" is defined/listed? I need tables with definable borders (just the on/off or thickness, nothing fancy), cellpadding, and cell alignment. Are those supported, please?
sp27
Re: Beginner HTMLText question
Posted: Sat May 21, 2011 5:22 pm
by Dixie
sp27..
Look at' htmlText' in the dictionary...
be well
Dixie
Beginner HTMLText question
Posted: Sat May 21, 2011 7:29 pm
by sp27
Very disappointing, at least for my purposes. HTMLText is barely more than text styles. Has someone developed an add-on that would display a better subset of HTML tags in a field? User Guide says there is "a 3rd party library available that allows you to host a web browser within an object and control it by script." I've also seen references to a "web browser object" (based on WebKit, etc.) that allows the programmer to place a Web page in a LC card.
I am not looking for a full-featured browser to build into my cards, nor for a way to launch the user's browser.
I have a large database of texts in basic HTML format (including tables), and I need to display these texts in a card. Where should I look?
Any tips will be appreciated.
sp27
Re: Beginner HTMLText question
Posted: Sun May 22, 2011 12:20 am
by Klaus
Hi sp27,
LiveCode for iOS supports a native "Browser control – UIWebView" on iOS that you can use and manage!
Check the "iOS Release Notes" (Menu: Help) for more info -> Browser control – UIWebView
Best
Klaus
Re: Beginner HTMLText question
Posted: Sun May 22, 2011 3:52 am
by sp27
Anyone interested in a complete solution to displaying a full set of HTML tags please refer to my post called "something better than HTMLText of fileds, anyone?" in forum Using Externals and Plugins. Thanks,
sp27