![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#31 | |
|
Hobbyist Programmer
|
Quote:
<input type="" name="" size=""> |
|
|
|
|
|
|
#32 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Just because you don't want a long piece of garbage doesn't mean you don't want to allow longer things with multiple words. Besides, 'size' is a control-sizing doo-dad, I think you probably meant maxlength.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#33 |
|
Hobbyist Programmer
Join Date: Nov 2005
Posts: 149
Rep Power: 4
![]() |
DaWei is correct. I want to have the phrases be at most 150 characters long, but I still want to be able to stop any insanely long words from messing up my tables.
I wish there were some line-breaking techniques like and "word-wrap:break-word" that worked in Firefox. |
|
|
|
|
|
#34 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Well, you know what they say about wishing in one hand and...ahhhh nemmine. Seriously, think about this for a second. Almost universally, a browser renders what it received from the server as a response. One exception is form fields. If a user enters lebenty-zillion Ws into a form field and never hits 'submit', who's to know? If the form is submitted, the contents of the field are available to the form-processing software. That means this dastardly entry may be discarded, broken into appropriate lengths, or used to drive the hard-disk head up against the stops and make grinding sounds until the janitor goes crazy and hits the server with a mop. The fact that there's nothing 'universal' to handle this on the browser end probably means you're the third person to be seriously concerned about it. Fix it on the server side and wait for enough other people to go gray.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#35 |
|
Hobbyist Programmer
|
@Writlaus
...wait a sec...if you know PHP shouldnt you know how to handle things like this? |
|
|
|
|
|
#36 |
|
Hobbyist Programmer
Join Date: Nov 2005
Posts: 149
Rep Power: 4
![]() |
mrynit, I said in a previous post in this thread that I would rather not use the wordwrap(); function because it makes decisions based on numbers of characters rather than physical lenght in pixels of the formatted string.
|
|
|
|
|
|
#37 |
|
Hobbyist Programmer
|
1. why cant you limit the number of characters to prevent such long stings that cause this problem??
2. dont use wordwrap(); if it doesnt work. develope your own way of handling really long strings using server side w/e you want. 3. :banana:
__________________
i dont know much about programming but i try to help |
|
|
|
|
|
#38 | |
|
SEXY SHOELESS GOD OF WAR!
![]() Join Date: Jun 2005
Location: Wet west coast of Canada
Posts: 1,193
Rep Power: 5
![]() |
Quote:
So, you're left with two options as I see it. First, you can forget about it, and just let it mess up the tables when it occurs. Second, you can do it server-side, and just accept that in some situations, it will be sub-optimal.
__________________
And once again, Probability proves itself willing to sneak into a back alley and service Drama as would a copper-piece harlot. - Vaarsuvius, Order of the Stick |
|
|
|
|
|
|
#39 |
|
Hobbyist Programmer
Join Date: Nov 2005
Posts: 149
Rep Power: 4
![]() |
Yeah... I guess I'm going to have to use wordwrap(); or something like it afterall. If anyone has any other suggestions, go ahead and post 'em, but for now I'll start working on it server-side.
EDIT: Just to let everyone know, all I'm really looking for is a way to stop a long word from messing up my tables. |
|
|
|
|
|
#40 | |
|
Hobbyist Programmer
|
Quote:
__________________
i dont know much about programming but i try to help |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|