Re: web 2.0 standards
"Nothing is perfect", not even Xara Web Designer
The placeholder build into XWD allows you to tweak the webpages which are generated from the application. The things which I would like to see is a soloution which will combine the "name" of an object with the HTML attribute "id" or "className". Then the person who will be responsible of the HTML/javascript in the placeholder will be able to know how to locate the autogenerated objects in the DOM tree.
As far as I can see it should be possibel to make some formular which would do the task of converting XWD object names into IDs or classNames.
Grouped objects would also be possibel to handle in this way. HTML allows for multiple classnames on a objects, so if you have a group named "textAndCircle" the text lines inside of the group could look like this:
<div id="xr_xo0" class="xr_ap group_textAndCircle text1" style="left: 0; top: 0; width: 839px; height: 100px; visibility: hidden;">
The example is a combination of actual XWD generated HTML code and my suggestions. In the class tag (the className) I have added "group_textAndCircle" which informs that this line (div) is part of a group "textAndCircle".
The "text1" in the class attribute informs that this is a text object, and that it is the 1st line.
Such information would allow a frontend developer writing HTML/javascript to locate the objects in the HTML DOM tree. You could then for instance add DHTML features like fade in or animation...
Cheers,
Sten
"Everything has two sides"
Bookmarks