473,785 Members | 2,784 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 <theonlyDennis@ removeForSpam_m indspring.com> exclaimed in <4d************ *************** *****@4ax.com>:
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.


He won't, and he can't. And neither can *you* - which is the entire
point. The web, statistically, isn't accurate, and there is no way
to improve upon it.

Let us take the "fact" that IE is the most popular browser there is. If
you run a site with alot of visitors, look at your server logs, and
notice that IE has 80% of the market, you'd be well advised to remember
that there is *no way* you can know whether or not those 80% are not
really Lynx with a faked UA string.

You can assume it as likely, but you cannot *know*.

How about the statement "Most people use 800x600", which is often
taken at face value ? Well, the method used to *determine* this is to
ask the UA using Javascript. This means that:

(a) A site need to install the Javascript,
(b) An UA need to visit that site,
(c) The UA need to have Javascript enabled.

Sites like thecounter.com claim that, in some months, as many as 13% run
without Javascript enabled. This leaves us with several interesting
variables for (a), (b) and (c) above:

- Are sites that install the counter script typical of websites ?
- Are visitors to these sites typical of users ?
- What about the 13% that might have Javascript turned on or off ?

Those 13% are also determined by way of Javascript, btw ... you SURE
you want to trust statistics gathered on use of various web technologies ?

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


What have I said that makes you think that I don't want to listen? Is
that I am taking a view different from the mainstream in this NG? Is
that "not wanting to listen"?


It has less to do with "mainstream " and more to do with the topic of
these newsgroups. Mainly we deal with technical, objective, issues.

You're basically saying that the Earth is flat after testing the theory
with your Captain Zoom's Elite Corps of Engineers Chronoscope. It's not
going to win a popularity contest amongs a bunch of astronomers, I can
tell'ya.

--
- Tina Holmboe Greytower Technologies
ti**@greytower. net http://www.greytower.net/
[+46] 0708 557 905
Jul 20 '05 #71
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.
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"

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.

The analogy isn't perfect, of course, but think about it.
--
- Tina Holmboe Greytower Technologies
ti**@greytower. net http://www.greytower.net/
[+46] 0708 557 905
Jul 20 '05 #72
On Mon, 20 Oct 2003, Nick Kew wrote:
Welcome to the Experienced Users club. Now you too can take your share of
abuse from the "but everyone has XYZ..." brigade.


Quite. However, "everyone has it" can be as much a threat as a
promise. If it was only those who really wanted "it" that had "it",
(for quite a number of different values of "it"), then one could
incorporate "it" with merry abandon, knowing that only those who
wanted it would get it.

But when "it" has been forced down everyone's throat, despite a clear
proportion of users hating "it", one needs to take much more care in
how one uses "it". N'est-ce pas?
Jul 20 '05 #73
Barry Pearson wrote:
Mark Parnell wrote:
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.
:-)


I have Flash installed. I also run with it switched off.


This is such a useful tool for Firebird:
http://texturizer.net/firebird/exten...ck%20To%20View

almost as good as HTTP Live Headers
--
Iso.
FAQs: http://html-faq.com http://alt-html.org http://allmyfaqs.com/
Recommended Hosting: http://www.affordablehost.com/
Web Design Tutorial: http://www.sitepoint.com/article/1010
Jul 20 '05 #74
Isofarro wrote:
Barry Pearson wrote:

[snip]
I have Flash installed. I also run with it switched off.


This is such a useful tool for Firebird:
http://texturizer.net/firebird/exten...ck%20To%20View

almost as good as HTTP Live Headers


Thank you! Very nice. Now installed in my Firebird 0.7.

--
Barry Pearson
http://www.Barry.Pearson.name/photography/
http://www.BirdsAndAnimals.info/
http://www.ChildSupportAnalysis.co.uk/
Jul 20 '05 #75
In article <ko************ *************** *****@4ax.com> in
comp.infosystem s.www.authoring.html, Dennis
<theonlyDennis@ removeForSpam_m indspring.com> wrote:
On Sat, 18 Oct 2003 05:51:20 GMT, Brian
<us*****@julie tremblay.com.in valid-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/


Well, now _there's_ an unbiased source.

Ja, you betcha.

--
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 #76
In article <bn************ @ID-16734.news.uni-berlin.de> in
comp.infosystem s.www.authoring.html, Matthias Gutfeldt <say-no-to-
sp**@gmx.net> wrote:
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?


I think "badgering" means "telling people something that disagrees
with their preconceptions" . :-)

--
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 #77
In article <4d************ *************** *****@4ax.com> in
comp.infosystem s.www.authoring.html, Dennis
<theonlyDennis@ removeForSpam_m indspring.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.

"He who has ears to hear, let him hear."

--
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 #78
"Stan Brown" <th************ @fastmail.fm> wrote in message
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.


It's a relatively small sample of users and within a specific segment that
is knowledgable enough to disable the technology. It doesn't really tell me
anything. Just like all statistics! :)

Jonathan
--
http://www.snook.ca/
Jul 20 '05 #79
Jonathan Snook wrote:
"Stan Brown" <th************ @fastmail.fm> wrote in message
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.


It's a relatively small sample of users and within a specific segment
that is knowledgable enough to disable the technology. It doesn't
really tell me anything. Just like all statistics! :)


The key is that they don't like it, not that they know how to disable it.
Users who don't like Flash but can't disable it can often just go elsewhere,
as I typically did before I disabled it.

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.

Debates here don't influence his target audience. They will accept or reject
his web sites completely oblivious to who has scored how many debating points
in Usenet! So he needs to judge whether his potential users like Flash - not
try to persuade people here to like Flash, or criticise them by implication.

--
Barry Pearson
http://www.Barry.Pearson.name/photography/
http://www.BirdsAndAnimals.info/
http://www.ChildSupportAnalysis.co.uk/
Jul 20 '05 #80

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
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...
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
6740
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
5381
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
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
3
2880
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.