473,657 Members | 2,805 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IE changes cell widths upon JavaScript insertion??

Hi there, thanks to anyone in advance who can help me with this.

I am creating an HTML page with extensive CSS and table formatting; one
thing that is driving me absolutely bats**t crazy is that I have a
simple Javascript date display widget:

<script language="JavaS cript" src="script/date.js"></script>

in one cell. Upon insertion of the script, IE takes it upon itself to
stretch the cell vertically by a few pixels, without explanation. The
cell's width and height are manually set by pixel (width="xx
', height="yy"). The length of the document.write isn't long enough to
stretch the cell out of shape.

Is there a way for me to get around this?

If you'd like to see the source, please shoot me an e-mail or post.

Dec 18 '05 #1
4 1256
je*****@gmail.c om wrote:
Hi there, thanks to anyone in advance who can help me with this.

If you'd like to see the source, please shoot me an e-mail or post.

The best way is to post an URL with a test case that demonstrates the
problem.

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Dec 19 '05 #2
je*****@gmail.c om wrote:
Hi there, thanks to anyone in advance who can help me with this.
You are not making it easy to help you, when you don't post the URL.
I am creating an HTML page with extensive CSS and table formatting; one
thing that is driving me absolutely bats**t crazy is that I have a
simple Javascript date display widget:

<script language="JavaS cript" src="script/date.js"></script>

in one cell.
Your page is most probably broken by design, when considered as a World
Wide Web page. You are probably generating a wrong date with wrong
(unreliable) tools, in a place where no date is needed. You could show
that I'm wrong by showing the URL and explaining why the date should be
there if and only if JavaScript is enabled and your JavaScript code
happens to work.
Upon insertion of the script, IE takes it upon itself to
stretch the cell vertically by a few pixels, without explanation.
You have probably met the White Space Bug. But since you want to hide
your source, I will hide my technical advice behind some obscurity
(though in a manner that should be more easily solvable than the URL of
your page).
Is there a way for me to get around this?
Yes, start learning the basics of good WWW authoring.
If you'd like to see the source, please shoot me


No, I think I won't.
Dec 19 '05 #3
I fixed it on my own, but gosh, I am SO happy you decided to reply with
such helpful advice; delivered, no less, with such charming wit and
bonhomie.

I would suggest you start learning the basics of good manners.

Dec 20 '05 #4
That last was for Jukka; Jim, thank you for your reply.

Dec 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
4107
by: kj | last post by:
Is there a way to dynamically (e.g. upon onClick) change the bgColor attribute of a table cell? I tried cell.setAttribute("bgColor", someColor), where someColor was a string of the form "#RRGGBB", but nothing happened. Also, how can I set the mouse cursor to be an arrow when it hovers over these table cells? (It's an insertion bar now.) Thanks!
4
64865
by: Bart Heinsius | last post by:
Hi, I can't get my cell widths fixed in a table in IE6. In Mozilla it works, see http://www.xs4all.nl/~margreeh/aa.html . It's the blue cells that remain fixed at 20pt widths in Mozilla but not in IE. The HTML was generated with Mozilla's Composer. Can anyone help getting this to work in IE? Thanks already, Bart.
13
2713
by: Kai Grossjohann | last post by:
I have a web app which comprises different frames: a menu bar frame, a search form frame, a result list frame. Depending on the state, only a subset of these frames is available. (Eg, after login, only the menu bar frame exists to allow the user to select a search form. After this, only the menu bar and the search form are visible.) Now the users are to be able to resize the frames. WIBNI the webapp could remember the frame sizes...
15
2672
by: Vorpal Chortler | last post by:
I've got a web customer complaining about centered text when it's not supposed to be. I just looked over at browsercam and it only appears on Win IE 6 - Nothing else, EVERYTHING else is justified left as it should be. I'm using primitive CSS1 AND tables for the site. The top page is at http://www.geocities.com/brigidregina/index.html The CSS lives at
1
7102
by: MattB | last post by:
Hello please help, I have a table cell with a div in it. The div has a width of 300px. but when it is rendered it puts extra space into the table cell. Here's the style <style> #treecontainer {
3
10710
by: Steve Sabljak | last post by:
I seem to having a little trouble getting a table to display correctly in both msie and firefox. I want to set the table and column widths in pixels, and have some cell padding too. The table displays correctly in standards compiance mode in firefox, but not msie, where the padding is added on to the column widths. the table size is always correct, but the column widths are not what I expect them to be. If I change the column widths to...
31
5687
by: Arthur Shapiro | last post by:
I'm the webmaster for a recreational organization. As part of one page of the site, I have an HTML "Calendar at a Glance" of the organization's events for the month. It's a simple table of a calendar, 7 across by whatever needed down, and I manually create it each month - not a big deal. Every day I go in and darken the background color of the current day's cell by changing the appropriate <TD> entry to <TD bgcolor="c63800"> and...
7
1778
by: needin4mation | last post by:
Please Consider this code snippet: private void dgdHistory_ItemCreated(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e) { if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem || e.Item.ItemType == ListItemType.EditItem) { TableCell myChangeCell = e.Item.Cells;
0
2296
by: Mehina | last post by:
i am having a problem regarding the disappearance of the cursor in the DataGrid cell after i change the width of the column on runtime.here is a function which is being called in the Textchanged handler of the embedded Textbox of DataGrid Cell. Private Sub UpgradeGridColumns() Dim colText As String Dim currColumn As DataColumn Dim currColStyle As DataGridTextBoxColumn Dim ColumnStyle As...
0
8316
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8833
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8737
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8610
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7345
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5636
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4168
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2735
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1967
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.