DL,
Thank you very much for your response. I made a small breakthrough this
weekend, and found on SourceForge the YUI (Yahoo UI) script library:
http://sourceforge.net/projects/yui
This script library contains a ramped-up DOM script that offers getXY(),
getX(), getY(), setXY(), setX() and setY() methods for any element. I
have successfully tested the accessor methods for this, and I'll publish
an example of the code in action. What I'm able to do now, essentially,
is to track a <span/> element's Y coordinate up and down the page as I
resize the window. This is useful because it lets me tie margin notes
(which can be dynamically generated and placed) to a specific word in a
<div/> in the browser.
This functionality would be possible in Laszlo if the HTML elements were
first-level objects and not specially interpreted parts of the text
stream for a <text/> element. XUL had the same problem--the resolution
boundary for the object model ended at the <description/> and <label/>
elements. Anything inside of them was handled by native code. I
suspect the object resolution boundary for Laszlo is imposed at the
Flash Player level. Still, the ability to get and set the ordinate and
abscissa of an element arbitrarily through JavaScript opens up the
possibility of adding this feature to Laszlo at a later time.
When I'm done posting an example, I'll take a look at the Deng
library--if nothing else, I'd like to more fully understand how these
scripts function. Thanks again for your reply!
Cheers,
--
Alexander Saint Croix
DL wrote:
On 27 Jan 2007 at 11:52, Alexander Saint Croix wrote:
> Nay, the depths of XUL were barren to me. Its champions had fled, XBL
> lie dying in the corner. Darkness ensued. Then came Laszlo.
>
> I have, for the past several days, thrown myself at the Sisyphean task
> of trying to build in Laszlo, what would be the equivalent in XHTML of
> <span> elements, arbitrarily nested in a <div>, differing from said
> XHTML elements in that the X and Y coordinates of the <span> nodes were
> accessible through the DOM. I have concluded, based upon careful
> searches of the archives of this list, of the web, and of
> Macromediadobe's documentation as well as the writings of the Elder
> Moock, that this technology simply does not exist.
>
Are you looking for .. dynamic rendering XHTML/CSS in Flash .. as in
Deng???
_http://wahlers.com.br/claus/blog/deng-20/_
In the OpenLaszlo forum there is an early prototype of integrating
Deng 1.0 component (as a movie clip) into OpenLaszlo.
_http://forum.openlaszlo.org/showthread.php?t=5641&highlight=deng_
<http://forum.openlaszlo.org/showthread.php?t=5641&highlight=deng>
/This includes dynamic rendering of XHTML content from OpenLaszlo./
And allows rendering of XForms, .. and SVG . but /sans/ SVG
interactivity.
Unfortunately, the dated Deng 1.0 is AS1, and Deng 2.0 initiative
seems to be dormant.
...
DL