Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Bolding text in a textarea
Old 11-10-2005, 11:29 AM Bolding text in a textarea
Nahele's Avatar
Extreme Talker

Posts: 204
Trades: 1
I'm importing messages and their dates from a database using php and placing into a text area box. Is there anyway that I can make just the dates bold. I tried looking this up but really couldn't find any useful pages except that javascript seemed to be the way to go.

Any help would be great.
Nahele is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-10-2005, 11:44 AM
funkdaddu's Avatar
Web Design Snob

Posts: 635
Trades: 0
I'm pretty sure you can only have one style for the whole textarea text.
funkdaddu is offline
Reply With Quote
View Public Profile Visit funkdaddu's homepage!
 
Old 11-10-2005, 12:17 PM
Christopher's Avatar
Iced Cap

Latest Blog Post:
Cross-domain AJAX with JSONP
Posts: 3,110
Location: Toronto, Ontario
Trades: 0
Yes, normal textareas do not provide controls to format specific text. The only thing you can do is apply styling to the entire thing, as funkdaddu pointed out.

To get the kind of thing you want, you'll need to create a rich text, WYSIWYG-like area (much like the editors we use on this forum). It can be quite complicated (different browsers have to be taken into account, and some browsers don't support it). And when the form is submitted, the content will be HTML so you'll have to filter all of that out etc.

I honestly don't think it's worth the trouble just to bold a date. Why not just extract the date from the content and place it in a separate field where you can apply some styling?
__________________

Please login or register to view this content. Registration is FREE
- Latest Articles:
Please login or register to view this content. Registration is FREE
,
Please login or register to view this content. Registration is FREE

--
Please login or register to view this content. Registration is FREE

Christopher is offline
Reply With Quote
View Public Profile
 
Old 11-10-2005, 01:43 PM
Nahele's Avatar
Extreme Talker

Posts: 204
Trades: 1
yeah sounds like it's not worth it, though it would have been nice.

Thanx for the advice.
Nahele is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Bolding text in a textarea
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.12828 seconds with 12 queries