473,785 Members | 2,879 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 16456
Dennis wrote:

Well, that's a swell "solution." A site presented in Flash is my
cue to hit the back button.
Look at your words carefully. Your only criticism of Flash is that
you don't like it and avoid it.


What's to like? It's used only for ads and gratuitous "kewl" effects.
That's hardly a "criticism" , or maybe you are just venting your
feelings. Sorry I upset you.


No sweat off my nose. Keep up the cluelessness.

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

Jul 20 '05 #41
Dennis wrote:
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.


You are mistaken if you think Flash is the answer. You cannot predict
what the user's preferred window size, text size, or any other
environmental variable may be. The very nature of Flash encourages
inaccessible, inflexible layouts. The user's preference settings are
not part of the equation, thus Flash cannot adapt to the user's settings.

This means that you will create a site that only "works" in a very
narrow band of screen resolution, window size and text size. The rest
of us will be out of luck. If your goal is usability, then your best
bet is a liquid layout that adjusts well to different window and text
sizes. This Flash cannot do, at least I have never seen it done.
And steps can be taken to make it also accessible.


Whatever you do on this front will be inadequate, since Flash's
accessibility features on the authoring side are inadequate.
Accessibility features in the Flash player are pretty much non-existent,
so we users are at your mercy.
Just what we need, another unusable Flash site. <heavy sigh>


Take out "unusable" from your comment and it too loses its force.


I have yet to find a Flash site that is usable for me. I am not very
optimistic that whatever you come up with will be any different.

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

Jul 20 '05 #42
In article <52************ *************** *****@4ax.com> in
comp.infosystem s.www.authoring.html, Dennis
<theonlyDennis@ removeForSpam_m indspring.com> wrote:
On Thu, 16 Oct 2003 15:50:26 -0400, Stan Brown
<th*********** *@fastmail.fm> wrote:
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.


97%, huh? Why did you make up that particular number? Why didn't you
say 95%? or 99.2% or 67.1%?

But what will _really_ happen is that people will go to your site,
see that it depends on Flash, and go elsewhere, unless you offer
content that they want and can't get anywhere else, which seems
unlikely.

Why do you post here if you don't want to listen to the feedback you
get?

--
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 #43
On Fri, 17 Oct 2003 22:29:01 -0400, "EightNineThree " <uc*@ftc.gov>
wrote:

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


Obviously.

Jul 20 '05 #44
On Sat, 18 Oct 2003 03:02:52 GMT, ti**@greytower. net (Tina Holmboe)
wrote:
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.
No authoring environment (flash, CSS, DHTML, straight HTML) can fit
more onto the screen than the screen can hold, so you can't blame me
for not ensuring that. But with Flash, I have complete control in
filling up the window that the user gives me. There are 2 relevant
Flash ActionScript commands, stage.width and stage.height. These tell
you within a pixel how big the user's window is. If the window is big
enough to hold the content, I can put the content wherever I choose to
make it easiest to see. If the content is too great for the window, I
can either put multiple "pages" in or put in good old fashioned scroll
bars --horizontal or vertical as I choose. It's like CSS on steroids.
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.


I agree! I don't assume to know the user's situation (eg. window
size) is, but I can program Flash for WHATEVER it might be. That's my
whole point. Without Flash (or a more mature CSS) I have to aim at the
middle of the bell curve (what, 800 by 600?) and let automatic
scrolling and huge empty borders do the rest. It's very ironic
because I attempting to accomplish in a more thoroughgoing way
precisely what you are saying that I am ignoring.

Dennis
Jul 20 '05 #45
Sometime around Sun, 19 Oct 2003 19:37:52 -0700, Dennis is reported to have
stated:
Without Flash (or a more mature CSS) I have to aim at the
middle of the bell curve (what, 800 by 600?) and let automatic
scrolling and huge empty borders do the rest.
Not at all. The web is fluid by nature. If you don't specify fixed sizes,
then the page will flow automatically.
It's very ironic
because I attempting to accomplish in a more thoroughgoing way
precisely what you are saying that I am ignoring.


And what of the users that don't have Flash? You are ignoring them?

--
Mark Parnell
http://www.clarkecomputers.com.au
Jul 20 '05 #46
On Sat, 18 Oct 2003 04:44:06 -0500, kchayka <kc*********@si hope.com>
wrote:
You are mistaken if you think Flash is the answer. You cannot predict
what the user's preferred window size, text size, or any other
environmenta l variable may be. The very nature of Flash encourages
inaccessible , inflexible layouts. The user's preference settings are
not part of the equation, thus Flash cannot adapt to the user's settings.

This means that you will create a site that only "works" in a very
narrow band of screen resolution, window size and text size. The rest
of us will be out of luck. If your goal is usability, then your best
bet is a liquid layout that adjusts well to different window and text
sizes. This Flash cannot do, at least I have never seen it done.
Now I think I see the problem. You and others at this NG have seen so
much bad Flash out there that you have a misunderstandin gs about the
program itself. For instance, did you know that you can stretch the
Flash "object" to fill up the entire browser window? And the objects
in it won't themselves have to stretch. At any moment you have access
to the exact pixel dimensions of the user's window. You program Flash
to respond accordingly (if you're a good programmer and care about
what people of all browser sizes and shapes see). Alas, most Flash
uses are obnoxious ads (I use PopUp Cop!) or fixed size movies that
are centered in the browser window. It doesn't have to be that at
all.
And steps can be taken to make it also accessible.
Whatever you do on this front will be inadequate, since Flash's
accessibilit y features on the authoring side are inadequate.
Accessibilit y features in the Flash player are pretty much non-existent,
so we users are at your mercy.


There are plusses and minuses on that and I think it comes out a
wash. For example, did you know that you can zoom in on a Flash
movie? I mean way close, and scroll through words 5 inches high.
HTML can't do that. As far as screen readers go, only one I know of
can read Flash movies now, but if someone has to use a screen reader
we're talking 100% text now and it wouldn't be hard to provide an
alternate link for that.
I have yet to find a Flash site that is usable for me. I am not very
optimistic that whatever you come up with will be any different.


Keep an open mind, I'll be back with a URL before long....

Dennis
Jul 20 '05 #47
On Sat, 18 Oct 2003 03:11:22 GMT, ti**@greytower. net (Tina Holmboe)
wrote:
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.


I was wrong, it's 98.6%. And if that isn't enough, those other 1.4%
are not locked out in any way. All they have to do is click on a link
that says "get Flash." But I would be very appreciative if you could
elaborate on my "arrogance. " I really don't understand the hostility
I have generated in this NG. How am I being arrogant?

Dennis

Jul 20 '05 #48
Dennis wrote:

But with Flash, I have complete control in
filling up the window that the user gives me.


That's swell. But since Flash has nothing to do with html, nor
stylesheets, why don't you bring your nifty "solution" elsewhere?

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

Jul 20 '05 #49
On Sat, 18 Oct 2003 05:51:20 GMT, Brian
<us*****@juliet remblay.com.inv alid-remove-this-part> wrote:
Dennis wrote:

Something like 97% of web surfers out there do.
Source, please. Or did you just make this up?


Here ya go,
http://www.macromedia.com/software/p...s/flashplayer/
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.


Well all you can do is make something available to people. If they
refuse to use it, that's not your problem. The Flash player is free
and easy to get and install.
End of problem.


Keep deluding yourself.


How am I deluding myself?
Jul 20 '05 #50

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

Similar topics

14
2153
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
7856
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
4333
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
2013
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
3581
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
2039
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
2121
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
16419
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
5194
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
3247
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
9645
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
9480
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
10329
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...
1
10092
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
9950
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
8974
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
7500
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
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4053
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

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.