[Laszlo-user] Question and suggestion about supported HTML elements

Henry Minsky henry.minsky at gmail.com
Fri Mar 17 12:09:19 EST 2006


I can't think of another way than scanning and modifying the HTML before
setting it into the text field.




On 3/15/06, James Howe <openlaszlo at wingspread.imap-mail.com> wrote:
>
> I'm using Laszlo 3.1.1 and my application has a <text> view which displays
> information.  The information comes from a secondary source which I don't
> control and sometimes contains HTML markup.  The text control does a
> pretty good job displaying it, but I've run into a minor annoyance for
> which I'm wondering if there is a simple workaround.  The problem occurs
> when the text contains <a> tags.  If the user clicks the link, the browser
> dutifully displays the specified link.  The problem is that the browser
> replaces my Laszlo application with the contents of the link.  If the user
> clicks the back button, my Laszlo app essentially reloads.  Not a great
> user experience.  Are there simple ways to prevent this?
>
> I realize that I could specify a target on the link and have the content
> go to another window, but I don't control the content and I would have to
> preprocess the content, searching for <a> tags and modifying them
> accordingly.  What I would really like is to be able to configure the text
> control to use a default target of my choosing.  Of course the simplest
> solution would be if the back button just took the user back to my
> application.  Is there some way to get that to work?
>
> Thanks!
>
> --
> James Howe
> _______________________________________________
> Laszlo-user mailing list
> Laszlo-user at openlaszlo.org
> http://www.openlaszlo.org/mailman/listinfo/laszlo-user
>



--
Henry Minsky
Software Architect
hminsky at laszlosystems.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-user/attachments/20060317/d6983816/attachment.html


More information about the Laszlo-user mailing list