Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 76908 invoked from network); 19 Jun 2006 03:02:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Jun 2006 03:02:05 -0000 Received: (qmail 87813 invoked by uid 500); 19 Jun 2006 03:01:50 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 87801 invoked by uid 500); 19 Jun 2006 03:01:49 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 87790 invoked by uid 99); 19 Jun 2006 03:01:49 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 Jun 2006 20:01:49 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [216.227.215.170] (HELO chiron.lunarpages.com) (216.227.215.170) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 Jun 2006 20:01:48 -0700 Received: from c-71-230-44-190.hsd1.pa.comcast.net ([71.230.44.190] helo=[192.168.123.100]) by chiron.lunarpages.com with esmtpa (Exim 4.52) id 1FsA1M-0004FY-Cd for user@struts.apache.org; Sun, 18 Jun 2006 20:01:48 -0700 Message-ID: <449613A2.80606@omnytex.com> Date: Sun, 18 Jun 2006 23:01:54 -0400 From: "Frank W. Zammetti" User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: Struts Users Mailing List Subject: Re: How to set size of submit button References: <1554.125.23.53.164.1150654246.squirrel@zzz.mail14.simplicato.com> <001801c6931f$7dad81b0$6601a8c0@LEBUSH> <4495CAA1.6010601@omnytex.com> <001201c69344$85f6efd0$6601a8c0@LEBUSH> <44960F84.10305@rochester.rr.com> In-Reply-To: <44960F84.10305@rochester.rr.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - chiron.lunarpages.com X-AntiAbuse: Original Domain - struts.apache.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - omnytex.com X-Source: X-Source-Args: X-Source-Dir: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Cool, I wasn't aware of that. Thanks Adam, that will come in very handy indeed! :) Frank Adam Samere wrote: > Frank and Eddie are right about not being able to read the css property > unless you have set it ahead of time. The javascript Element Object > (from which buttons etc are derived) has properties called clientWidth > and clientHeight. This will give you the width and height of the element > in pixels as rendered on the client. Hopefully that helps! > > document.getElementById('b').clientWidth > > -Adam > > Eddie Bush wrote: >> Frank, >> >> I don't think you could extract the width from the control's style >> unless you'd set it. I'd have to agree with you on that one. Isn't >> there a property on the control (width?) you could determine the width >> from? Maybe I answered too quick and should have done some research >> first. I was thinking I had done something similar before, but as I >> dig deeper into my memory I realize that it was the height of an >> iframe I set, and that was based off the contained document's height >> (scroll height or some such thing). >> >> I suppose it seemed intuitive to me that the button should have a >> width. I'll dig into my JavaScript book while at the office tomorrow >> and see if there isn't a property that a person can determine the >> width of a button with. There's got to be a way to do it. I'm >> curious now, too! I have been wrong before though. >> >> I'll try to pop-in at lunch and drop my findings ;-) >> >> Eddie >> >> ----- Original Message ----- From: "Frank W. Zammetti" >> >> To: "Struts Users Mailing List" >> Sent: Sunday, June 18, 2006 4:50 PM >> Subject: Re: How to set size of submit button >> >> >>> Would that even work Eddie? I seem to remember that if you didn't >>> explicitly set the width of an element yourself, you can't retrieve >>> it. Indeed, this quick test: >>> >>> >>> >>> >>> >>> >>> >>> ..results in a blank alert in both IE and FF. >>> >>> This only matters of course if you have to make all the buttons the >>> same width dynamically, but now I'm just curious! Is there a way to >>> do it I wonder? >>> >>> Frank >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org >> For additional commands, e-mail: user-help@struts.apache.org >> >> > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > For additional commands, e-mail: user-help@struts.apache.org > > > > -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM: fzammetti Yahoo: fzammetti MSN: fzammetti@hotmail.com Java Web Parts - http://javawebparts.sourceforge.net Supplying the wheel, so you don't have to reinvent it! --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org