Monday, July 14, 2008

textformat NOT AWOL in OpenLaszlo 4.1

UPDATE (14 July 2008): I am updating this blog entry (striking out certain text and adding other text) to be more accurate in light of + this.getText() + "</a>";
this.setText(newUrl);
this.setHTML(true);
]]>
</handler>


In the new handler that doesn't use any form of textformat, because I was building up an HTML anchor tag myself in the JavaScript, I needed to use a CDATA block to tell the OpenLaszlo XML parser to not try to parse this JavaScript. The functionality now works exactly the same in the OpenLaszlo 4.1 environment either using lz.textformat or manually generating HTML.

Related to this, it is exciting to see in the blog entry
OpenLaszlo 4.1.1 is Coming and More... that we can expect to see 4.1.1 out soon (probably within a week) to address some issues identified by the OpenLaszlo community. That blog entry also mentions the possible release of OpenLaszlo 4.2 with SWF9 alpha support by the end of July. Finally, the brief text entry Use JavaScript 2 Today with OpenLaszlo mentions the upcoming OpenLaszlo 4.2 release and its support for compilation into various flavors of ActionScript (not surprising in light of support of SWF9).

2 comments:

Henry said...

Did you try "lz.textformat"?

When you define a class with the <class name="foo"> LZX class element, the class name gets bound in the "lz" object as "lz.foo" now.

@DustinMarx said...

Henry, your suggestion does address the issue. I had read this in the 4.1 Release Notes ("Upgrading to OpenLaszlo 4.1") several days ago, but it did not "click" in my mind that this was the particular issue in this case. I will be updating the blog entry your comment is in response to so that it accurately reflects this.

Thanks for the feedback.

Dustin