473,796 Members | 2,559 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
Sometime around Sun, 26 Oct 2003 17:17:39 -0800, Dennis is reported to have
stated:
On Mon, 20 Oct 2003 12:46:51 +1000, Mark Parnell
<we*******@clar kecomputers.com .au> wrote:
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?


Yes, they do. So? As to why - who knows? Because they are too
narrow-minded, and stuck in the mid 90's? IMHO, much of the reason that
the large sites still have fixed-width, table-based layouts is simply
because of the time and effort that would be required to change it. That's
how sites were done in 1996, when many of these sites were done. Yes, many
of them may have changed the look of their sites since then, but not done a
complete redesign. We, however, have the opportunity to do things right
from the start.

The question you should be asking is not what do the major sites do, but
what is the best thing to do? The two are not necessarily the same. If
you have the ability to do something properly, why do it badly, just
because that's what everyone else does?
And what of the users that don't have Flash? You are ignoring them?


97%+ of web users have Flash installed


Macromedia's figures, which are dubious at best. And what of search
engines? They don't have Flash installed. How are your potential visitors
going to find you in the first place?
and the rest can get it for free with a single click.
Not necessarily. What if they are at work, and the system administrator
does not allow them to download and install any software for security
reasons? What if they are blind, so use a speech browser? What if they
are on a slow connection, so cannot afford the time or money to download
Flash (or the animations once Flash is installed, for that matter).
Anyone who knowingly doesn't have it is
just being honery. And for them, I'd say get PopUpCop.


If I knew what honery meant, I might be offended. :-)

Why pay money for a program that stops _some_ flash ads, when I can
uninstall Flash for free and miss them all? I have seen very few
legitimate uses for Flash, and many mis-uses, so see no reason to have it
installed. If that means I miss out on your site, fine. I'll just go to
the next one, that actually allows me to access the content.

--
Mark Parnell
http://www.clarkecomputers.com.au
Jul 20 '05 #91
On Tue, 21 Oct 2003 14:08:33 -0500, kchayka <kc*********@si hope.com>
wrote:


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.


You can put your own font buttons on your flash movie and change the
font size that way. Admitedly, it would be slicker if the user's
existing browser settings would do that automatically. But just out
of curiosity, what do you do about graphics?

Dennis
Jul 20 '05 #92
Dennis wrote:

97%+ of web users have Flash installed
Yeah, that's according to Macromedia, right?
and the rest can get it for
free with a single click. Anyone who knowingly doesn't have it
"knowingly doesn't have it?" What, is it a crime?
is just being honery.


Here you've stumped me. I checked my dictionary, even checked 3
online references. No "honery." Did you mean ornery?

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

Jul 20 '05 #93
On Mon, 20 Oct 2003 10:23:01 +0300, Mikko Rantalainen <mi**@st.jyu.fi >
wrote:
Well, color me skeptical but I have yet to see Flash used in such a way
that the usability is *better* than without Flash. Could you give us a
hint and throw us an URL to *any* site that uses Flash and has good
usability in your opinion. I haven't yet seen any. [1]

If there aren't any such site in existence yet, how did you figure out
that you can come up with one or that even trying to do that with Flash
would be a great idea?
I've used Flash for several years now to author a math book I'm
making. I'm doing the graphics in Flash. I just like it better than
other vector drawing programs. I've written a program in Visual
Foxpro that takes the Flash output (wmf's) into Corel Draw and
programatically puts the pages together using OLE Automation. (yeah,
it's quite a soup) Well, I started to make a "web application" that
performed like a windows app, and that's when I found out what Flash
can do in a browser. Flash was the only way I could "take over" the
user's screen from corner to corner the way an application does. I
can't give you websites that use Flash in the way I'm describing, so I
guess I'm talking about something new. But the capabilities of the
program are there.

[1] The only thing that has even remotely nice features and uses Flash
is http://www.kartoo.com/. I think that the usability could be much
better but using Flash makes some sense in this case. (HTML version
could be much better though, so the comparision between the Flash and
HTML versions of that site isn't fair.)


Thanks for that katroo link. It sure looks great --about using it, I
don't know, I'll have to dig into it. At first glance, the art does
seem gratuituous but I'll have to dig into it to be fair.

Dennis
Jul 20 '05 #94
On Mon, 20 Oct 2003 16:26:13 GMT, ti**@greytower. net (Tina Holmboe)
wrote:
Dennis <theonlyDennis@ removeForSpam_m indspring.com> exclaimed in <1n************ *************** *****@4ax.com>:
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
You are wrong, yes. It isn't 98.6% - noone *know* how much it is.


Laura Gutman in Inside Dreamweaver (New Riders, 2002) says,"Macromedi a
claims that 98.6% of browsers have the Flash plugin, which is a
phenomenal number." I saw 97% indicated at MM's website.

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?


Because you are saying: "I want to use a technology which is not part of
the standard web tools. Anyone else should just adapt to me"


Not part of the standard web tools? Any thing that's got 97-98.6%
market penetration is pretty "standard".
Consider this. If every TV broadcast were, suddenly, in HDTV format
and the TV companies told you that "Oh, but all you have to do is get
a new TV set!" you'd be pretty miffed.


Not if a new HDTV was free of charge.

Dennis
Jul 20 '05 #95
Sometime around Sun, 26 Oct 2003 18:52:49 -0800, Dennis is reported to have
stated:
Consider this. If every TV broadcast were, suddenly, in HDTV format
and the TV companies told you that "Oh, but all you have to do is get
a new TV set!" you'd be pretty miffed.


Not if a new HDTV was free of charge.


But I have no way of getting it home. Or it won't fit in my loungeroom.

--
Mark Parnell
http://www.clarkecomputers.com.au
Jul 20 '05 #96
On Sun, 26 Oct 2003 17:29:34 -0800, Dennis wrote:
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.


Actually, it's very easy to design your site to scale images along with the
text based on the users preferred text size. You just specify your image
sizes in em's instead of pixels. I believe Eric Meyer had an article about
this that I read somewhere. Of course this technique isn't as precise as
pixels.
Jul 20 '05 #97
On Mon, 20 Oct 2003 14:01:54 +1000, Mark Parnell
<we*******@clar kecomputers.com .au> wrote:
Sometime around Sun, 19 Oct 2003 20:17:23 -0700, Dennis is reported to have
stated:
http://www.macromedia.com/software/p...s/flashplayer/
This report has been discussed here previously. The statistics are based
on 2000 participants - not a very large number considering the total number
of internet users - who are supposedly a "representa tive Internet sample".


Oh come on.
And of course, no matter how accurate the figures might or might not be,
they ignore one of the most important visitors to your site - the search
engine robots. I guarantee they don't have Flash installed. :-)


Google reads <a href> links in a swf (flash) file but it doesn't index
the general text that appears. You're right, that's a HUGE downside.
In fact, I have to make my home page in HTML so google can see it.
After that, I can branch out to the flash pages. In the meantime,
Google and the other robots out there ought to increase their
vocabulary and start reading those swf files!

Dennis

Jul 20 '05 #98
On Mon, 20 Oct 2003 15:00:01 -0400, Stan Brown
<th************ @fastmail.fm> wrote:
In article <4d************ *************** *****@4ax.com> in
comp.infosyste ms.www.authoring.html, Dennis
<theonlyDennis @removeForSpam_ mindspring.com> wrote:

Stan Brown had written:
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.
OK Mr. Statistics, how many web surfers turn away when they see a
Flash site? Give us a source and not just a personal opinion.


I don't have a number -- unlike you, I'm willing to admit that I
don't know.
But several people in this very thread have said they do not have
flash or do not routinely use it. That should tell you something.

I did provide a number. Now maybe Macromedia cooked it a little, but
with a figure as high as 97%, even if they cooked it a lot, it would
still be a very high percentage of users. My remark was to the point
that I suspect that users of this NG --affecionados of the web-- are
not typical of your average user. In my experience watching high
school age people surf the web, they LOVE the flash sites --even if
for all the "wrong reasons". My point is, I don't think most people
tun away from a flash site just becuase it's flash --unless you have
evidence to the contrary.
"He who has ears to hear, let him hear."


One could say that to anybody about anything. Ergo, it doesn't mean a
lot dude.

Dennis

Jul 20 '05 #99
Sometime around Sun, 26 Oct 2003 19:26:47 -0800, Dennis is reported to have
stated:

I did provide a number. Now maybe Macromedia cooked it a little, but
with a figure as high as 97%, even if they cooked it a lot, it would
still be a very high percentage of users.


But still less than 100%.

--
Mark Parnell
http://www.clarkecomputers.com.au
Jul 20 '05 #100

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
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...
0
9050
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
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
5569
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4115
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
3730
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.