473,796 Members | 2,482 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 16459


Barry Pearson wrote:

Dennis is trying to solve problems with his web sites.


That wasn't the impression I got. It sounded more like he got a notion
in his head that having all content visible on one screen would make
whatever that content was instantly more usable. Instead of identifying
any real issues (including what the content was or what the target
audience might be), he decided on a Flash solution without any further
thought.

He is more likely falling into the pit of fixing the wrong problem, but
since he hasn't provided any details about the site, it's hard to tell.

--
To email a reply, remove (dash)un(dash). Mail sent to the un
address is considered spam and automatically deleted.
Jul 20 '05 #81


Dennis wrote:
On Sat, 18 Oct 2003 04:44:06 -0500, kchayka <kc*********@si hope.com>
wrote:

Whatever you do on this front will be inadequate, since Flash's
accessibili ty features on the authoring side are inadequate.
Accessibili ty 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.


If you've ever had to use it on a regular basis, you might agree with me
that Flash's zoom feature leaves a lot to be desired. The user has no
control over the zoom factor or the size of the zoom area. What most
often happens is you end up with only small portion of the text that's
in a huge text size. You have to pan (not scroll) to see more. It is a
horrible way to use a site. Nobody would choose to use a site made this
way, unless they were masochists.
HTML can't do that.
With HTML, I have control over text size. I can make text whatever size
it needs to be for me to read it. Flash can't do that.
Keep an open mind, I'll be back with a URL before long....


My expectations are not any higher than they were before...

--
To email a reply, remove (dash)un(dash). Mail sent to the un
address is considered spam and automatically deleted.
Jul 20 '05 #82
"Matthias Gutfeldt" <sa************ @gmx.net> wrote in message
news:bn******** ****@ID-16734.news.uni-berlin.de...
Jonathan Snook wrote:
Seriously though, wouldn't it be better to try and educate the people who post questions here instead of badgering them and scaring them off to
less
Is "badgering" the Word of the Week or something?


http://www.weebls-stuff.com/toons/21/

'Nuff said.
Jul 20 '05 #83
"Brian" <us*****@juliet remblay.com.inv alid-remove-this-part> wrote in
message
Seriously though, wouldn't it be better to try and educate the people who post questions
We are. Haven't you been reading?


Yes, yes I have. Here, lemme grab another post of yours in this thread:
That's swell. But since Flash has nothing to do with html, nor
stylesheets, why don't you bring your nifty "solution" elsewhere?


Ah, yes. Quite educational. Let's send the user off to a flash board to
continue his development of unfriendly, unusable sites.
Jul 20 '05 #84
Jonathan Snook wrote:
wouldn't it be better to try and educate the
people who post questions

Brian wrote: We are.
Please note the plural.
Haven't you been reading?
Yes, yes I have. Here, lemme grab another post of yours in this
thread:
That's swell. But since Flash has nothing to do with html, nor
stylesheets, why don't you bring your nifty "solution" elsewhere?


Fair enough. But others had already told Dennis why Flash was a bad
idea. He wasn't listening. And since he was convinced that Flash was
the way to go, and that HTML and CSS were not, then the thread was
off-topic.
Ah, yes. Quite educational. Let's send the user off to a flash
board to continue his development of unfriendly, unusable sites


Sorry, but I only go so far. If the other end isn't going to meet us
half-way, then (s)he's on his/her own. There's no point in arguing
for its own sake.

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

Jul 20 '05 #85
"Barry Pearson" <ne**@childsupp ortanalysis.co. uk> wrote in message
news:SP******** *******@newsfep 3-gui.server.ntli .net...
The point about the small sample is well made. Dennis is trying to solve
problems with his web sites. Success or failure depends on what he does to the web sites, and how his target audience reacts to what he does. So Dennis'
challenge is to get the best advice he can, develop his web sites accordingly, and hope that the target audience likes the result.


The problem with 99% of the sites that we as developers create really get no
accurate feedback as to what works and what doesn't. If you look at the
stats and see people leaving after viewing one page, is it because of the
flash or is it because they've figured out what's on your site and know that
it doesn't meet their needs?

Jonathan

Jul 20 '05 #86
Jonathan Snook wrote:

The problem with 99% of the sites that we as developers create really get no
accurate feedback as to what works and what doesn't. If you look at the
stats and see people leaving after viewing one page, is it because of the
flash or is it because they've figured out what's on your site and know that
it doesn't meet their needs?


Don't (ab)use Flash and the you can eliminate the first possibility.

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

Jul 20 '05 #87
Nick Kew wrote:
In article <hI************ ******@newsfep2-gui.server.ntli .net>, one
of infinite monkeys at the keyboard of "Barry Pearson"
<ne**@childsupp ortanalysis.co. uk> wrote:
I now tend to assume that Flash is used as a substitute for valuable
content,


Bingo!

Welcome to the Experienced Users club. Now you too can take your
share of abuse from the "but everyone has XYZ..." brigade.


This isn't just about Flash, and it isn't just about the web, is it? I think
many of us link together the questions "is this material about information?"
and "is this artistic material?" Take a couple of extreme cases:

1. What is the ultimate in content-rich material? Perhaps the "paper",
especially the academic paper. It may be saying something that has never been
known before. It is sought by people who are hungry for such knowledge. And it
typically has the most raw presentation possible, stripped of artistic effects
& variation. This applies whether it is published on paper, shown as a slide
presentation, or published on the web.

2. If a gallery shows a painting or photograph of someone reading a newspaper,
do we treat the text in the newspaper seriously? Perhaps it has some ironical
references to the overall scene, but typically it is probably "filler". It has
the same status as the other components in the image, such as the carpet, the
person's hair, etc. (And do we try to click on the buttons or keys in an
on-line photograph of a computer or phone?)

I think I, and many others, tend to put material onto a single axis, something
like "informatio n rich" to "artistic". I also think that I am guided about
where the author thinks material should be on that axis by how artistic it
appears, since that is the easiest to see. So if it is artistic, I don't even
expect it to be information rich.

I've just had another look at the CSS Zen Garden site. Surely firmly in the
category of artistic works. (I don't see them primarily as technically clever
uses of CSS. I might learn that much about CSS one day. But since I lack the
artistic talent needed, I will never do pages like that). As I look at one of
those artistic works, the text appears to be as irrelevant as the text in the
newspaper in the painting in "2" above. It is "filler", while I look at the
use of colour, balance, texture, selectivity, etc. To read the words, I went
back to the home page, which has less emphatic artistic vision - even though
the words are the same throughout!

It isn't as simple as this! Raw information can appear amateurish. I think a
key is that I need to be able to make 2 judgements:

- First: "does the author care enough about this page to present it
competently?" (This is related to: "does the author take the viewer
seriously?")

- Second: "does the author consider this to be information-rich or artistic?"

--
Barry Pearson
http://www.Barry.Pearson.name/photography/
http://www.BirdsAndAnimals.info/
http://www.ChildSupportAnalysis.co.uk/
Jul 20 '05 #88
On Mon, 20 Oct 2003 12:46:51 +1000, Mark Parnell
<we*******@clar kecomputers.com .au> wrote:
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.


While that is true, you must admit that most all the top websites opt
for an "800-wide non-horizontal flowing" format (typically aligned
left) and let any flowing happen vertically (and waste all the rest of
the horizontal space). Why is that?
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?


97%+ of web users have Flash installed and the rest can get it for
free with a single click. Anyone who knowingly doesn't have it is
just being honery. And for them, I'd say get PopUpCop.
http://www.popupcop.com/
When you come to an obnoxious flash advertisement, freeze it in its
tracks.

Dennis

Jul 20 '05 #89
On Mon, 20 Oct 2003 09:27:10 -0500, kchayka <kc*********@si hope.com>
wrote:
Dennis wrote:

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.


So what are the relevant commands that tell you what the user's
preferred text size is?


Touche! Another one along the same line is that from Flash I can't
get to the user's system colors (as I can from JavaScript). But are
you familiar with the zoom feature in Flash? With it you can make
EVERYTHING larger, not just text. So images (which aren't affected by
the user's preferred text size) also get magnified for the user's
benefit. It seems like kind of a wash in my opinion.

Dennis
Jul 20 '05 #90

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
7857
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
2015
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
2040
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
9673
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
9525
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
10452
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
10169
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
10003
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...
1
7546
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
6785
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
5440
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...
0
5569
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.