Greenguy's Board


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2004-12-10, 09:25 PM   #1
Dylan
Lord help me, I'm just not that bright
 
Join Date: Feb 2004
Posts: 108
justify form textarea

How?

It's puzzling me
__________________
Dildo's Porn Links
Dylan is offline   Reply With Quote
Old 2004-12-10, 11:42 PM   #2
Dylan
Lord help me, I'm just not that bright
 
Join Date: Feb 2004
Posts: 108
Just to clarify, you know what
p align = justify
does right ?

Well, I want to do that to the text in a textarea
__________________
Dildo's Porn Links
Dylan is offline   Reply With Quote
Old 2004-12-11, 05:59 PM   #3
venturi
No offence Apu, but when they were handing out religions you must have been out taking a whizz
 
Join Date: Apr 2003
Location: An Oasis atop a High Desert Mesa
Posts: 282
Send a message via ICQ to venturi
Give this a try, not sure if it will work though...

Code:
<textarea style='text-align:justify;' rows='#' cols='#'>stuff in text area</textarea>
venturi is offline   Reply With Quote
Old 2004-12-11, 08:17 PM   #4
Dylan
Lord help me, I'm just not that bright
 
Join Date: Feb 2004
Posts: 108
After a bit of googling I found it can't be done using simple methods. One method I came across is the use of javax.swing.JTextPane |pissed|

I'm hoping there are easier methods I have not come across.
__________________
Dildo's Porn Links

Last edited by Dylan; 2004-12-11 at 08:20 PM..
Dylan is offline   Reply With Quote
Old 2004-12-28, 08:30 PM   #5
Entreri
WHO IS FONZY!?! Don't they teach you anything at school?
 
Join Date: Feb 2004
Posts: 42
I don't think it is feasible with a plain textarea. You may want to use a Javascript-based replacement for textarea (with all the possible browser issues it may bring).

Here's one that I found out (but didn't try). With it, it will allow the writer to justify the text amongst other things.

http://www.codeproject.com/jscript/htmlArea.asp

From there, perhaps you could search for a Javascript that strictly does justify formatting... You didn't specify why you needed that though - if it's from a GUI perspective, you might want to do your form in Flash, although I can't bear those.

Entreri.
Entreri is offline   Reply With Quote
Old 2004-12-29, 12:38 AM   #6
Porn Meister
Asleep at the switch? I wasn't asleep, I was drunk
 
Join Date: Dec 2004
Posts: 214
Well.. considering that the old align=justify aligns to the left and right margins, I would say that venturi's method should work just fine. Just add the margin sizes also to the style tag..
Seems like it should be fine..?
Porn Meister is offline   Reply With Quote
Old 2004-12-30, 02:25 PM   #7
miracle
If something goes wrong at the plant, blame the guy who can't speak English
 
Join Date: Jul 2004
Location: Greece
Posts: 38
Send a message via ICQ to miracle
Not sure if justification can be done in a textarea. I know only of the wordwrap parameter. But you can have a look at microsoft's MSDN library at
http://msdn.microsoft.com/library/default.asp

Click on the left menu:
+ Web Development
++ HTML and CSS
+++ HTML and DHTML reference
++++ Objects
+++++ textArea

There you should find everything textarea tag supports.

Hope that helps,
Mark
__________________
ThumbDaemons - Free TGP Script
miracle is offline   Reply With Quote
Old 2005-01-08, 09:37 PM   #8
GeorgeTH
Don't let a programmer design your front-end pages!
 
GeorgeTH's Avatar
 
Join Date: Aug 2003
Location: currently on the road in CA
Posts: 781
Quote:
Originally posted by miracle
Not sure if justification can be done in a textarea. I know only of the wordwrap parameter. But you can have a look at microsoft's MSDN library at
http://msdn.microsoft.com/library/default.asp

Click on the left menu:
+ Web Development
++ HTML and CSS
+++ HTML and DHTML reference
++++ Objects
+++++ textArea

There you should find everything textarea tag supports.

Hope that helps,
Mark
According Miracle's link the simple solution Venturi proposed should work...
__________________
Have a nice day!
GeorgeTH is offline   Reply With Quote
Old 2005-01-15, 09:02 PM   #9
GeorgeTH
Don't let a programmer design your front-end pages!
 
GeorgeTH's Avatar
 
Join Date: Aug 2003
Location: currently on the road in CA
Posts: 781
Quote:
Originally posted by GeorgeTH
According Miracle's link the simple solution Venturi proposed should work...
Quote myself - LOL! Now to the practical experience: according to the new gallery I made yesterday it doesn't work! At least I didn't get it to work... (it's the first time I'm using a textarea on a gallery).
__________________
Have a nice day!
GeorgeTH is offline   Reply With Quote
Reply


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

Forum Jump


All times are GMT -4. The time now is 06:09 PM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc