Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
|
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 22nd, 2005, 03:29 AM
Registered User
 
Join Date: Jul 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem with noWrap in TD tag

Hi,

        I have Problem in noWrap. Following is my code. When the page loads through javascript i'm adding this code to the page( using createElement and setAttributes). Eventhough i have given noWrap for TD(mentioned Bold) still the word is showing like

Upload
Document(with big fontsize)

How can i solve this issue?
or Any other equivalent for noWrap?
Is noWrap is case sensitive?

I tried the NOBR tag within the TD tag now its showing like

Upload Document(with big fontsize) but even i made fontsize low(7) its still showing with big fontsize.

I'm confident in mycode because when i do this from staring of function its showing perfectly. When i do it after some manipulation of innerHTML it causing problem.

But when i go through the innerHTML its showing like below code.

How can i solve this problem. Please let me know How to solve it?

<TD class=ms-separator noWrap>|</TD
<TD class=ms-toolbar>
<TABLE cellSpacing=0 cellPadding=1 border=0>
<TBODY>
<TR>
<TD class=ms-toolbar noWrap><A class=ms-toolbar id=diidIOUploadItem title=Upload accessKey=U Onclick="javascript:test()" tabIndex=2><IMG id=tbbutton1U height=16 alt=Upload src="Shared Documents_files/upload.gif" width=16 border=0></A></TD>
<TD noWrap><A class=ms-toolbar id=diidIOUploadItem accessKey=U onclick="javascript:test()" tabIndex=2>Upload Document</A></TD></TR></TBODY></TABLE></TD>

Thanks and Regards,
Vinoth

 
Old July 27th, 2005, 08:28 AM
Friend of Wrox
 
Join Date: Sep 2004
Posts: 103
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It's vague what ur problem is but your example seems to work fine.
I copied and pasted your code and put it in an HTML page and added a <table> <tr> to its beginning.
Then opened it with IE. Nowrap worked just fine(maybe you expect something else from it) and even when I resized the browser winodow and make its width smaller than the "Upload Document" statement the statement wouldn't break and wouldn't apear in two lines unlike what you've (probably) mentioned above...
About the font size I guess you should handle it in your stylesheet class or probably check your stylesheet class path..





Similar Threads
Thread Thread Starter Forum Replies Last Post
HTML tag problem Aker C# 7 April 22nd, 2008 11:04 AM
HTML tag from C# or ASP.NET tag from javascript angshujit ASP.NET 2.0 Basics 3 February 16th, 2007 10:07 AM
Servlet Tag Problem odriscolla ASP.NET 1.0 and 1.1 Professional 3 June 29th, 2005 05:02 AM
Servlet tag problem odriscolla Servlets 0 June 28th, 2005 04:55 AM
NoWrap on DataGrid? RockNRoll ASP.NET 1.0 and 1.1 Basics 1 July 31st, 2003 05:50 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.