473,666 Members | 2,143 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to detect table width or height?

Is there some way --using, say, DOM or javascript-- to detect the
current pixel width and/or height of a relatively sized table or of
one of its columns or rows. I'm going to be writing javascript to
adjust my page to the viewer's browser window dimensions and this
would sure be great information to have.

Thanks ....
Dennis
Jul 20 '05
157 16369
Dennis wrote:

The problem of getting multiple columns of text in the
viewport (that prompted me to start this thread) has led me to decide
on using Flash as my main medium.
You're kidding, right?
I think Flash will do what CSS is
too immature to yet do.
Hmm. Maybe you're actually serious.
Now, when CSS "catches up", it will surpass Flash
They are not competing technologies.
if you were to use Flash, you'd
know at every moment the height and width of the viewer's browser
window. So you could either just download the image that best fits
their screen or let the Flash player scale whatever size image you
use.


Yep, you are serious. Well, that's a swell "solution." A site
presented in Flash is my cue to hit the back button. I suppose I
ought to thank Macromedia for saving me the trouble of messing with
the site any more than that. I see that "get the plug-in" window, and
it's alt-left arrow, and onto something worth my time.

--
Brian
follow the directions in my address to email me

Jul 20 '05 #31
Dennis wrote:

The problem of getting multiple columns of text in the
viewport (that prompted me to start this thread) has led me to decide
on using Flash as my main medium.


You have decided that this look you envision is more important than
usability and accessibility? Just what we need, another unusable Flash
site. <heavy sigh>

--
To email a reply, remove (dash)un(dash). Mail sent to the un
address is considered spam and automatically deleted.

Jul 20 '05 #32
In article <62************ *************** *****@4ax.com> in
comp.infosystem s.www.authoring.html, Dennis
<theonlyDennis@ removeForSpam_m indspring.com> wrote:
The problem of getting multiple columns of text in the
viewport (that prompted me to start this thread) has led me to decide
on using Flash as my main medium. I think Flash will do what CSS is
too immature to yet do.


It will, for people who have Flash installed and turned on.

Many people don't have it installed; many who do have it installed
have turned it off because so much Flash is just annoying time-
wasting "kewl" visual effect.

So your choice by using Flash is for complete success or complete
failure, as opposed to 100% success or partial success if you don't
use Flash.

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator: http://jigsaw.w3.org/css-validator/
Jul 20 '05 #33
On Thu, 16 Oct 2003 05:24:48 GMT, Brian
<us*****@mangym utt.com.invalid-remove-this-part> wrote:
Dennis wrote:

The problem of getting multiple columns of text in the
viewport (that prompted me to start this thread) has led me to decide
on using Flash as my main medium.


You're kidding, right?
I think Flash will do what CSS is
too immature to yet do.


Hmm. Maybe you're actually serious.
Now, when CSS "catches up", it will surpass Flash


They are not competing technologies.
if you were to use Flash, you'd
know at every moment the height and width of the viewer's browser
window. So you could either just download the image that best fits
their screen or let the Flash player scale whatever size image you
use.


Yep, you are serious. Well, that's a swell "solution." A site
presented in Flash is my cue to hit the back button. I suppose I
ought to thank Macromedia for saving me the trouble of messing with
the site any more than that. I see that "get the plug-in" window, and
it's alt-left arrow, and onto something worth my time.


Look at your words carefully. Your only criticism of Flash is that
you don't like it and avoid it. That's hardly a "criticism" , or maybe
you are just venting your feelings. Sorry I upset you.
Jul 20 '05 #34
On Thu, 16 Oct 2003 07:26:10 -0500, kchayka <kc*********@si hope.com>
wrote:
You have decided that this look you envision is more important than
usability and accessibility?
No. I am doing it in Flash precisely for usability. A page is more
usable if the user can see at a glance where everything is and not
have to scroll around to find it. And steps can be taken to make it
also accessible.
Just what we need, another unusable Flash
site. <heavy sigh>


This reminds me of Emerson's comment, "Foolish consistency is the
hobgoblin of little minds." Take out the question-begging word
"foolish" and it loses its force. Take out "unusable" from your
comment and it too loses its force.

Dennis

Jul 20 '05 #35
On Thu, 16 Oct 2003 15:50:26 -0400, Stan Brown
<th************ @fastmail.fm> wrote:
It will, for people who have Flash installed and turned on.

Many people don't have it installed; many who do have it installed
have turned it off because so much Flash is just annoying time-
wasting "kewl" visual effect.

So your choice by using Flash is for complete success or complete
failure, as opposed to 100% success or partial success if you don't
use Flash.


Something like 97% of web surfers out there do. And those few who
don't can easily get it. End of problem.

Dennis
Jul 20 '05 #36

"Dennis" <theonlyDennis@ removeForSpam_m indspring.com> wrote in message
news:si******** *************** *********@4ax.c om...
On Thu, 16 Oct 2003 07:26:10 -0500, kchayka <kc*********@si hope.com>
wrote:
You have decided that this look you envision is more important than
usability and accessibility?


No. I am doing it in Flash precisely for usability. A page is more
usable if the user can see at a glance where everything is and not
have to scroll around to find it. And steps can be taken to make it
also accessible.


You obviously don't have the slightest clue about what usability is.

--
Karl Core

At times one remains faithful to a cause only because its opponents do not
cease to be insipid.
Friedrich Nietzsche

eightninethree AT eightninethree. com
Jul 20 '05 #37
Dennis <theonlyDennis@ removeForSpam_m indspring.com> exclaimed in <si************ *************** *****@4ax.com>:
No. I am doing it in Flash precisely for usability. A page is more
usable if the user can see at a glance where everything is and not
have to scroll around to find it. And steps can be taken to make it


You are right; a page is more usable if the user can see at a glance
where everything is and not have to scroll around it.

Your mistake is making the assumption that you are able to ensure that
this is the case.

Your job is making sure the document itself can adapt to the users
situation. Assuming you know anything at all regarding said situation
is arrogant and a pointless waste of time.

Naturally, the choice of what to do is up to you.

--
- Tina Holmboe Greytower Technologies
ti**@greytower. net http://www.greytower.net/
[+46] 0708 557 905
Jul 20 '05 #38
Dennis <theonlyDennis@ removeForSpam_m indspring.com> exclaimed in <52************ *************** *****@4ax.com>:
Something like 97% of web surfers out there do. And those few who
don't can easily get it. End of problem.


Flash is not available for all users or all UAs. Depending on it is
not useful.

Of course, with the arrogance your posting shows, "useful" wouldn't
be your first priority.

--
- Tina Holmboe Greytower Technologies
ti**@greytower. net http://www.greytower.net/
[+46] 0708 557 905
Jul 20 '05 #39
Dennis wrote:

Something like 97% of web surfers out there do.
Source, please. Or did you just make this up?
And those few who don't can easily get it.
If it's available, they can consider getting it. Whether they
actually go to the trouble of downloading and installing software for
your content is another matter.
End of problem.


Keep deluding yourself.

--
Brian
follow the directions in my address to email me

Jul 20 '05 #40

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

Similar topics

14
2141
by: Carl Gilbert | last post by:
Hi I am currently writing a site that utilises tables. I have one page that links to a second page. The only problem is that when I link to the second page, the table loads up with a different height than was set in the code. However, when I use the navigation buttons in IE to go back and then forward again to the second page, the table is displayed as expected.
10
7842
by: John | last post by:
I have a table with two rows. On the first row is a text box and in the second row is an image. I have set the table cellpadding to 0 and cellspacing to 0. The table is leaving extra spaces in the rows on the top and bottom of the picture and image. I need to make the height of the rows to be the same as the textbox and image. How do I do this? I have tried even setting the height of the table and all the <td> and <tr> tags to 1 but have...
1
4316
by: ajay | last post by:
I have following code for a slide menu but i twiked it to work for a single level menu. Open it in a Browser to get a clear picture. I have 2 Qs 1) How to make first entry as non-link. i.e i want to make first text as Table Heading/menu category. For examle in the given menu i want to make a heading as "Comp. Languages" which won't be a link. 2) The position of this menu is absolute to the page. I want to make it absolute to the Table...
1
2009
by: andrewkooi | last post by:
Greetings, I have 16 links for my horizontal menu navigation as you can see in my website www.singakad.com and at present, I am using a table and javascript for this menu. Is it possible for me to create a submenu for certain cells in this horizontal menu? How do I go about doing this? Thank you in advance for any assistance given.
11
3571
by: Norman L. DeForest | last post by:
Am I misunderstanding the CSS specifications or is Firefox (version 1.0.6) (and Opera) doing the wrong thing? It appears that Firefox 1.0.6 includes the border in width calculations for tables but not in height calculations. Oh, and Opera version 8.02 does the same thing. |<-->| |<-->| <------ border |<------------>| <------ table contents
3
2031
by: Chifo | last post by:
hello. i have a problem with a populate html table with data from table here it's the problem two querys retrieving data from table, one of querys show me a colletion of data from 6:00 am to 15:30 pm timestampz, i put this on a part of html table. when time on my if condition es great than 15:31, showme data from 15:31 to 23:59 timestamp and populate another part of html table. but, data in html first part,it's gone away.
5
2109
by: outstretchedarm | last post by:
I'm extremely new to javascript and to programming in general. I am trying to create an interactive table. I have already created the table with constants, in the key of C (it is for music). what I would like to do is to create a dropdown box that would enable the user to select all 12 keys, then based on that choice, have the whole table re-calculate, basically transposing all the data up or down. how would I go about doing this.
2
16407
by: nino9stars | last post by:
Hello, I have just started messing with absolute positioning on webpages, and it definitely let's you do some creative things. Well, after much searching and help, I got the images I was using to overlap correctly. You can see it on this page: www.creativekaysjewelry.com The images overlap exactly how I wanted and in the right position
1
5191
by: MissMarie | last post by:
I've been playing around with DIV tables in myspace to better learn how to rewrite my own code for my business site without having to pay someone to design it. I've tried embedding a slideshow into a div table and after I save it I noticed that the slideshow does not show up and the embed code I added is altered. Can anyone help me figure this out? The embed code that I'm talking about is three quarters down the code page under {PHOTOS},...
1
3243
by: azura | last post by:
how can i get this textfield auto detect?? because i try not to using view name button... i want when i enterd this matric no., the student name will appear automatically when i insert the matric no.. <table width="416" height="70" border="1"> <tr> <td width="87" height="33"><strong>Matric No</strong> </td> <td width="7"><div align="center">:</div></td> <td width="300"><input name="matric"...
0
8445
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8781
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...
1
8551
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8640
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
7386
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...
1
6198
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5664
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
4369
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2011
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.