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

Benjamin Shine ben at laszlosystems.com
Fri Mar 17 11:59:32 EST 2006

James, I don't think there is a _simple_ way to get the behavior you  
want. If you're rendering generic html, you've got the links from  
html, default target and all.

FYI, LzBrowser.loadURL() accepts parameters to tell it what window to  
load the link into, and to describe parameters of the desired window,  
like "toolbar=yes".

On Mar 15, 2006, at 8:06 AM, James Howe 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

benjamin shine
software engineer
ben at laszlosystems.com

More information about the Laszlo-user mailing list