|
Mailing Lists
|
Home /
Groups /
ColdFusion Talk (CF-Talk)
Word Wrap
First, I'm getting zilch from the list, so please email your repliesJim McAtee 06/28/01 07:12 P I'm trying to word wrap some text. I don't if there is a client side tag that does this for you. Can someone please point me to the right directioncf coder 09/17/04 10:38 A cf coder wrote:Damien McKenna 09/17/04 10:42 A hi! I'm just displaying comments/text on the browser window. I have a tablecf coder 09/17/04 11:00 A Your browser should wrap text for you? Not too sure what you mean?Joe Rinehart 09/17/04 10:48 A First, I'm getting zilch from the list, so please email your replies directly to me. I'm looking for a good (fast) word wrap tag. I've tried out cf_wordwrap from the tag gallery, but it doesn't work very well. I need the tag to preserve any carriage returns and line feeds contained within the body of text, so that short lines and paragraph breaks are preserved. Another bug within that tag is that it wraps one character short of the desired line length. Thanks, Jim ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm I'm trying to word wrap some text. I don't if there is a client side tag that does this for you. Can someone please point me to the right direction Best regards, cfcoder cf coder wrote: >I'm trying to word wrap some text. I don't if there is a client side tag that does this for you. Can someone please point me to the right direction > > What sort of word-wrapping do you need? -- *Damien McKenna* - Web Developer - dmckenna@thelimucompany.com <mailto:dmckenna@thelimucompany.com> The Limu Company - http://www.thelimucompany.com/ - 407-804-1014 "Nothing endures but change." - Heraclitus hi! I'm just displaying comments/text on the browser window. I have a table <table> <tr> <td colspan="6"> Comments </td> </tr> <tr> <td colspan="6"> #COMMENTS# </td> </tr> </table> The information is displayed on a pop-up modal dialog box. This is how I call it. var mouseX = clicked.screenX; var mouseY = clicked.screenY ; var numheight = screen.height; var numwidth = screen.width; var sHeight = numheight + 'px'; var sWidth = numwidth + 'px'; if (mouseX > numwidth) {var sXPos = (mouseX - numwidth)+'px';} else {var sXPos = mouseX; } if (mouseY > numheight) {var sYPos = mouseY +'px';} else {var sYPos = mouseY; } var features = "resizable: yes; help: no; status: no; scroll: yes; dialogHeight:" + sHeight +"; dialogWidth:" + sWidth + "; dialogLeft:" + sXPos + "; dialogTop:"+ sYPos + "; " showModalDialog('printthis.cfm?jobNo=1' , features); I'm permitting page scrolling; if I view a job with really lengthy comments, since the width and height of the pop-up window is the size of the monitor, with the windows taskbar set to "dispaly on top of other windows", I can't see the the horizontal scroller. If word-wrapping is a big ask, can you suggest me how to display the horizontal bar just above the windows task bar? I hope I'm making sense. Regards, cfcoder ----- Excess quoted text cut - see Original Post for more ----- Heraclitus Your browser should wrap text for you? Not too sure what you mean? I'm trying to word wrap some text. I don't if there is a client side tag that does this for you. Can someone please point me to the right direction Best regards, cfcoder________________________________
|
May 24, 2012
|
Latest Fusion Authority Articles
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||