Hello can i get the hight of some elements ? innerheight,..? ____________ Virus checked by G DATA AntiVirusKit Version: AVK 17.7603 from 11.09.2007 Virus news: www.antiviruslab.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
If the height is specified in the css then you can retrieve this quite
easily.
height = $(''div_element'').style.height
On Sep 11, 9:35 am, "reta...-Mmb7MZpHnFY@public.gmane.org"
<reta...-Mmb7MZpHnFY@public.gmane.org> wrote:> Hello
>
> can i get the hight of some elements ? innerheight,..?
>
> ____________
> Virus checked by G DATA AntiVirusKit
> Version: AVK 17.7603 from 11.09.2007
> Virus news:www.antiviruslab.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---
in the css the height is 100% and i get nothing
alert($(''ModulFrame'').style.height);
> If the height is specified in the css then you can retrieve this quite
> easily.
>
> height = $(''div_element'').style.height
>
> On Sep 11, 9:35 am, "reta...-Mmb7MZpHnFY@public.gmane.org"
<reta...-Mmb7MZpHnFY@public.gmane.org> wrote:
>> Hello
>>
>> can i get the hight of some elements ? innerheight,..?
>>
>> ____________
>> Virus checked by G DATA AntiVirusKit
>> Version: AVK 17.7603 from 11.09.2007
>> Virus news:www.antiviruslab.com
>
>
> >
____________
Virus checked by G DATA AntiVirusKit
Version: AVK 17.7606 from 11.09.2007
Virus news: www.antiviruslab.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---
<div id=''nav''
style=''height:30px;''></div>
alert($(''nav'').style.height);
This will give it to you, if the height is specified within the code
itself, not within the css.
I hope that helps or is what you''re looking for.
On Sep 11, 1:00 pm, "reta...-Mmb7MZpHnFY@public.gmane.org"
<reta...-Mmb7MZpHnFY@public.gmane.org> wrote:> in the css the height is 100% and i get nothing
>
> alert($(''ModulFrame'').style.height);
>
>
>
> > If the height is specified in the css then you can retrieve this quite
> > easily.
>
> > height = $(''div_element'').style.height
>
> > On Sep 11, 9:35 am, "reta...-Mmb7MZpHnFY@public.gmane.org"
<reta...-Mmb7MZpHnFY@public.gmane.org> wrote:
> >> Hello
>
> >> can i get the hight of some elements ? innerheight,..?
>
> >> ____________
> >> Virus checked by G DATA AntiVirusKit
> >> Version: AVK 17.7603 from 11.09.2007
> >> Virus news:www.antiviruslab.com
>
> ____________
> Virus checked by G DATA AntiVirusKit
> Version: AVK 17.7606 from 11.09.2007
> Virus news:www.antiviruslab.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---
Hello, hm but i cant get the realheight in pixl ? When i set the height to 100%? i want to calculate the height of some inner html elements> <div id=''nav'' style=''height:30px;''></div> > > alert($(''nav'').style.height); > > This will give it to you, if the height is specified within the code > itself, not within the css. > > I hope that helps or is what you''re looking for. > > On Sep 11, 1:00 pm, "reta...-Mmb7MZpHnFY@public.gmane.org" <reta...-Mmb7MZpHnFY@public.gmane.org> wrote: >> in the css the height is 100% and i get nothing >> >> alert($(''ModulFrame'').style.height); >> >> >> >>> If the height is specified in the css then you can retrieve this quite >>> easily. >>> height = $(''div_element'').style.height >>> On Sep 11, 9:35 am, "reta...-Mmb7MZpHnFY@public.gmane.org" <reta...-Mmb7MZpHnFY@public.gmane.org> wrote: >>>> Hello >>>> can i get the hight of some elements ? innerheight,..? >>>> ____________ >>>> Virus checked by G DATA AntiVirusKit >>>> Version: AVK 17.7603 from 11.09.2007 >>>> Virus news:www.antiviruslab.com >> ____________ >> Virus checked by G DATA AntiVirusKit >> Version: AVK 17.7606 from 11.09.2007 >> Virus news:www.antiviruslab.com > > > >____________ Virus checked by G DATA AntiVirusKit Version: AVK 17.7607 from 11.09.2007 Virus news: www.antiviruslab.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Have you tried $("nav").offsetHeight ?
$("nav").getDimensions() will return an array [width, height] (iirc,
look it up in the api)
-Nicolas
On 9/11/07, soze <info-HssgnHxB/8goXxlgY6FosEEOCMrvLtNR@public.gmane.org>
wrote:>
> <div id=''nav''
style=''height:30px;''></div>
>
> alert($(''nav'').style.height);
>
> This will give it to you, if the height is specified within the code
> itself, not within the css.
>
> I hope that helps or is what you''re looking for.
>
> On Sep 11, 1:00 pm, "reta...-Mmb7MZpHnFY@public.gmane.org"
<reta...-Mmb7MZpHnFY@public.gmane.org> wrote:
> > in the css the height is 100% and i get nothing
> >
> > alert($(''ModulFrame'').style.height);
> >
> >
> >
> > > If the height is specified in the css then you can retrieve this
quite
> > > easily.
> >
> > > height = $(''div_element'').style.height
> >
> > > On Sep 11, 9:35 am,
"reta...-Mmb7MZpHnFY@public.gmane.org"
<reta...-Mmb7MZpHnFY@public.gmane.org> wrote:
> > >> Hello
> >
> > >> can i get the hight of some elements ? innerheight,..?
> >
> > >> ____________
> > >> Virus checked by G DATA AntiVirusKit
> > >> Version: AVK 17.7603 from 11.09.2007
> > >> Virus news:www.antiviruslab.com
> >
> > ____________
> > Virus checked by G DATA AntiVirusKit
> > Version: AVK 17.7606 from 11.09.2007
> > Virus news:www.antiviruslab.com
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---
Hello, thanks, thats looks good. Now a last question. How can i set the height to a html element?> Have you tried $("nav").offsetHeight ? > $("nav").getDimensions() will return an array [width, height] (iirc, > look it up in the api) > > -Nicolas > > On 9/11/07, soze <info-HssgnHxB/8goXxlgY6FosEEOCMrvLtNR@public.gmane.org> wrote: >> <div id=''nav'' style=''height:30px;''></div> >> >> alert($(''nav'').style.height); >> >> This will give it to you, if the height is specified within the code >> itself, not within the css. >> >> I hope that helps or is what you''re looking for. >> >> On Sep 11, 1:00 pm, "reta...-Mmb7MZpHnFY@public.gmane.org" <reta...-Mmb7MZpHnFY@public.gmane.org> wrote: >>> in the css the height is 100% and i get nothing >>> >>> alert($(''ModulFrame'').style.height); >>> >>> >>> >>>> If the height is specified in the css then you can retrieve this quite >>>> easily. >>>> height = $(''div_element'').style.height >>>> On Sep 11, 9:35 am, "reta...-Mmb7MZpHnFY@public.gmane.org" <reta...-Mmb7MZpHnFY@public.gmane.org> wrote: >>>>> Hello >>>>> can i get the hight of some elements ? innerheight,..? >>>>> ____________ >>>>> Virus checked by G DATA AntiVirusKit >>>>> Version: AVK 17.7603 from 11.09.2007 >>>>> Virus news:www.antiviruslab.com >>> ____________ >>> Virus checked by G DATA AntiVirusKit >>> Version: AVK 17.7606 from 11.09.2007 >>> Virus news:www.antiviruslab.com >> > > >____________ Virus checked by G DATA AntiVirusKit Version: AVK 17.7614 from 11.09.2007 Virus news: www.antiviruslab.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Depends on what the element is but the general idea is to set height: 30px in your css. Placing it in the css is best, although you can do it as I''ve set it my previous example. On Sep 11, 5:10 pm, "reta...-Mmb7MZpHnFY@public.gmane.org" <reta...-Mmb7MZpHnFY@public.gmane.org> wrote:> Hello, > > thanks, thats looks good. Now a last question. How can i set the > height to a html element? > > > > > > > Have you tried $("nav").offsetHeight ? > > $("nav").getDimensions() will return an array [width, height] (iirc, > > look it up in the api) > > > -Nicolas > > > On 9/11/07, soze <i...-HssgnHxB/8goXxlgY6FosEEOCMrvLtNR@public.gmane.org> wrote: > >> <div id=''nav'' style=''height:30px;''></div> > > >> alert($(''nav'').style.height); > > >> This will give it to you, if the height is specified within the code > >> itself, not within the css. > > >> I hope that helps or is what you''re looking for. > > >> On Sep 11, 1:00 pm, "reta...-Mmb7MZpHnFY@public.gmane.org" <reta...-Mmb7MZpHnFY@public.gmane.org> wrote: > >>> in the css the height is 100% and i get nothing > > >>> alert($(''ModulFrame'').style.height); > > >>>> If the height is specified in the css then you can retrieve this quite > >>>> easily. > >>>> height = $(''div_element'').style.height > >>>> On Sep 11, 9:35 am, "reta...-Mmb7MZpHnFY@public.gmane.org" <reta...-Mmb7MZpHnFY@public.gmane.org> wrote: > >>>>> Hello > >>>>> can i get the hight of some elements ? innerheight,..? > >>>>> ____________ > >>>>> Virus checked by G DATA AntiVirusKit > >>>>> Version: AVK 17.7603 from 11.09.2007 > >>>>> Virus news:www.antiviruslab.com > >>> ____________ > >>> Virus checked by G DATA AntiVirusKit > >>> Version: AVK 17.7606 from 11.09.2007 > >>> Virus news:www.antiviruslab.com > > ____________ > Virus checked by G DATA AntiVirusKit > Version: AVK 17.7614 from 11.09.2007 > Virus news:www.antiviruslab.com- Hide quoted text - > > - Show quoted text ---~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
If you need to change it dynamically via js, Prototype lets you do
$("nav").setStyle({ height: "30px" });
Which is equivalent to what soze describes above.
API at http://prototypejs.org/api/element/setStyle
-Nicolas
On 9/11/07, soze <info-HssgnHxB/8goXxlgY6FosEEOCMrvLtNR@public.gmane.org>
wrote:>
> Depends on what the element is but the general idea is to set height:
> 30px in your css. Placing it in the css is best, although you can do
> it as I''ve set it my previous example.
>
> On Sep 11, 5:10 pm, "reta...-Mmb7MZpHnFY@public.gmane.org"
<reta...-Mmb7MZpHnFY@public.gmane.org> wrote:
> > Hello,
> >
> > thanks, thats looks good. Now a last question. How can i set the
> > height to a html element?
> >
> >
> >
> >
> >
> > > Have you tried $("nav").offsetHeight ?
> > > $("nav").getDimensions() will return an array [width,
height] (iirc,
> > > look it up in the api)
> >
> > > -Nicolas
> >
> > > On 9/11/07, soze
<i...-HssgnHxB/8goXxlgY6FosEEOCMrvLtNR@public.gmane.org> wrote:
> > >> <div id=''nav''
style=''height:30px;''></div>
> >
> > >> alert($(''nav'').style.height);
> >
> > >> This will give it to you, if the height is specified within
the code
> > >> itself, not within the css.
> >
> > >> I hope that helps or is what you''re looking for.
> >
> > >> On Sep 11, 1:00 pm,
"reta...-Mmb7MZpHnFY@public.gmane.org"
<reta...-Mmb7MZpHnFY@public.gmane.org> wrote:
> > >>> in the css the height is 100% and i get nothing
> >
> > >>> alert($(''ModulFrame'').style.height);
> >
> > >>>> If the height is specified in the css then you can
retrieve this quite
> > >>>> easily.
> > >>>> height =
$(''div_element'').style.height
> > >>>> On Sep 11, 9:35 am,
"reta...-Mmb7MZpHnFY@public.gmane.org"
<reta...-Mmb7MZpHnFY@public.gmane.org> wrote:
> > >>>>> Hello
> > >>>>> can i get the hight of some elements ?
innerheight,..?
> > >>>>> ____________
> > >>>>> Virus checked by G DATA AntiVirusKit
> > >>>>> Version: AVK 17.7603 from 11.09.2007
> > >>>>> Virus news:www.antiviruslab.com
> > >>> ____________
> > >>> Virus checked by G DATA AntiVirusKit
> > >>> Version: AVK 17.7606 from 11.09.2007
> > >>> Virus news:www.antiviruslab.com
> >
> > ____________
> > Virus checked by G DATA AntiVirusKit
> > Version: AVK 17.7614 from 11.09.2007
> > Virus news:www.antiviruslab.com- Hide quoted text -
> >
> > - Show quoted text -
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---