Re: Import formated text and pictures dynamically into view
Max Carlson <
max@...>
2010-11-04 02:57:53 GMT
Hi Chris,
Are you compiling for Flash or HTML5? For Flash, there is a subset of
HTML formatting commands you can get away with, e.g. <a
href="...">...</a> or <img src="..." .../>. If that won't work for you,
I'd suggest using the <html/> component, which creates an iframe:
http://labs.openlaszlo.org/trunk-nightly/docs/reference/lz.html.html
Let me know how it goes!
On 11/2/10 3:40 PM, Chris Janik wrote:
> Here's the problem. In the website I'm building I've built my own
> windows class, complete with resizing, scrollbar etc... I'm very happy
> with the look. What I'm having a problem with is importing the data.
> Currently I'm loading text from an xml file via http. This works for
> simple blocks of text (most of the content) and it's meeting one of my
> primary criteria, to change dynamically and load on request, not
> compiled in, but what I'm looking for is way to rich up (that's right I
> just coined an expression) the text. On a previous site I built with OL
> I used an IFrame but I'd like to avoid that this time as I'm fond of the
> custom scrollbar I've got and I found the IFrame didn't play
> particularly well with Internet Explorer. I also considered using a
> richinputtext box but it's the importation of data that is the problem
> not where I'm putting it.
>
> Can someone please tell me the best way to import formatted text with
> the occasional pictures slipped in, on the fly?
>
> Any help would be very much appreciated
>
> Thanks a lot,
>
> Chris