thanks,
jim On Dec 16, 2005, at 9:22 AM, James Howe wrote:
Ok, your suggestion worked. But I'm still a little confused as to why my solution didn't. If I explicitly do something like this:<textlistitem fontstyle="bold" .../>The text displayed by the textlistitem will display as bold. If, however, I try to set the attribute manually, it doesn't work. Is this a case where textlistitem should be propagating the attribute setting down to its components (i.e. _title?)Thanks again for your help.On Fri, 16 Dec 2005 11:46:51 -0500, Bryan Barkley <[EMAIL PROTECTED]> wrote:Your method is operating on a textlistitem, not actual text.I think what you want is "this._title.setAttribute("fontstyle", "bold");On 12/16/05, James Howe <[EMAIL PROTECTED]> wrote:I have a list which is displaying some textlistitems based on information extracted from some XML data. Depending on the information in the XML, I may want an individual textlistitem to display as bold or not. I've tried doing the following, but didn't get the result I was hoping for:<textlistitem datapath="somedata"> <method event="ondata"> <![CDATA[var textToDisplay = this.datapath.xpathQuery ("someElement/text()");if (someTest) {// this.setAttribute("fontstyle", "bold"); <-- I triedthis both ways this.fontstyle = "bold"; } this.setAttribute("text", textToDisplay); ]]> </method> </textlistitem>No matter what I tried, the information was never bolded. The only way I could get bold text was to specify a fontstyle="bold" on the textlistitem tag itself. Of course, this makes every item bold, which isn't what I want. I also know that the code inside of 'someTest' is being reached. I even tried setting the fontstyle outside of the 'if', and that made nodifference either. Can someone tell me what I'm doing wrong? Thanks! -- James Howe _______________________________________________ Laszlo-user mailing list [email protected] http://www.openlaszlo.org/mailman/listinfo/laszlo-user-- James Howe _______________________________________________ Laszlo-user mailing list [email protected] http://www.openlaszlo.org/mailman/listinfo/laszlo-user
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Laszlo-user mailing list [email protected] http://www.openlaszlo.org/mailman/listinfo/laszlo-user
