|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
||||
|
||||
|
Formatting a description.
I'm diving into XUL finally and am trying to see how I can make an XUL interface to my IRC bot to get stats on a nickname or something. Right now I've only been able to setup the window and a menu. I'd like to put formatted text into a <description> element (or is there a better one?) but can't seem to do so dynamically. I can do what i want fine if I code it in that way using this:
Code:
<description id="text-desplay"> <html:h1>Statistics</html:h1> <html:br/> <html:b>Nick</html:b>: kicken<html:br/> ... </description> That displays exactly as I would expect, however if I try to set the value using javascript later, it doesn't convert the html tags into what they do. It also won't convert a \n into a new line. This is what I'm doing right now: Code:
this.textDisplay=document.getElementById('text-display');
this.textDisplay.value="Wiser Control Center<html:br/>\nGUI Version<html:br/>\n";
this.textDisplay.value+="Written by: Keith Maika <keithm@aoeex.com>\n";
this.textDisplay.value+="<html:br/>Version 0.01";
Here is the URL to the xul file: http://kicken.mine.nu:8008/extras/xul/wiser.xul Any help is appricated. Thanks much. |
|
#2
|
||||
|
||||
|
Hey Kicken - you might wanna post this or ask this on the #mozillazine irc channel - they can probably give you an answer pretty quick on this...
![]() I have'nt done anything yet that sets dynamic values by JavaScript - so I can't really provide an accurate answer to you...
__________________
~ Joe Penn |
|
#3
|
||||
|
||||
|
Thanks, I'll have to check it out. I've just changed it now to use some labels that are formatted using css and some disabled text boxes. It works I guess and still looks about like I was going to make it before. This XUL is some interesting stuff. I like it, and known JS/CSS makes it pretty easy to use
![]() |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > Formatting a description. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|