|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
xul and text area interaction
Interested in using xul <button label> to interact with the text in the <textarea> of an html page.
Example would be like the "B" button on this posting page. You click the "B" button and a popup window appears asking you to enter the text you want surrounded with <b></b>. I am interested in doing the same thing with xul. Could someone point me in the right direction. Yes, I will be reading the docs and all the links provided in this forum. Thanks. |
|
#2
|
||||
|
||||
|
Ok - you would actually use javascript just like the board does here to do it.
Now, with that said - you are using XUL, so a more robust solution would be just to create a WYSIWYG editor to format the code within the <textarea> with real-time preview. Check out some of the projects on mozdev.org - download a few of them and have a peak at the code to see how they have done it. If you still want to do it like this forum does, just save a forum page and look through the javascript to get an idea of how they do it.
__________________
~ Joe Penn |
|
#3
|
|||
|
|||
|
thanks for the suggestions
i've been through those steps before. the current projects - like mozile or bitflux (which isn't a moz* project) are pretty much what i'm after. just want to have the text in a textarea <form> instead of just a #content (js) area. thanks for the attempt anyway. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > xul and text area interaction |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|