cfdeveloper
Programmer
Hi Guys,
I'm trying to word wrap some text. I don't know if there is a client side tag that does this for you.
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. Can someone please point me to the right direction
Regards,
cfcoder
I'm trying to word wrap some text. I don't know if there is a client side tag that does this for you.
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. Can someone please point me to the right direction
Regards,
cfcoder