XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 27th, 2003, 01:38 PM
mac3wan mac3wan is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 2 mac3wan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
  #2  
Old April 29th, 2003, 12:18 AM
jpenn's Avatar
jpenn jpenn is offline
Contributing User
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Jun 2002
Location: Washington, DC
Posts: 2,693 jpenn User rank is Sergeant (500 - 2000 Reputation Level)jpenn User rank is Sergeant (500 - 2000 Reputation Level)jpenn User rank is Sergeant (500 - 2000 Reputation Level)jpenn User rank is Sergeant (500 - 2000 Reputation Level)jpenn User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 5 h 41 m 10 sec
Reputation Power: 16
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

Reply With Quote
  #3  
Old April 29th, 2003, 01:33 AM
mac3wan mac3wan is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 2 mac3wan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > xul and text area interaction


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway