[jQuery] Re: .attr('height')

2008-10-23 Thread weidc
hi, what about using: $('#'+litebox+'img.lite').width(); and $('#'+litebox+'img.lite').height(); ? -weidc On 23 Okt., 14:00, diego [EMAIL PROTECTED] wrote: Hi all,  I'm building a gallery, and so far it works in every browser except Internet Explorer, The problem is that IE (burns to hell)

[jQuery] Re: .attr('height')

2008-10-23 Thread diego
here an exemple http://www.pirolab.it/piro_09/index2.html the first three thumbs of the first box diego On 23 Ott, 14:00, diego [EMAIL PROTECTED] wrote: Hi all,  I'm building a gallery, and so far it works in every browser except Internet Explorer, The problem is that IE (burns to hell)

[jQuery] Re: .attr('height')

2008-10-23 Thread diego
The problem is that the my elements are 'display:none' that's why if i try your code the alert returns 0-0, i need to use .attr, height and width.. Diego On 23 Ott, 14:08, diego [EMAIL PROTECTED] wrote: here an exemplehttp://www.pirolab.it/piro_09/index2.html the first three thumbs of the

[jQuery] Re: .attr('height')

2008-10-23 Thread weidc
mh ye i see. can't even change the attr in ie itself 'cause it always gets 0 again. maybe it doesn't like that in $('#'+litebox+'img.lite'). atm i don't see a mistake in your script. -weidc On 23 Okt., 14:27, diego [EMAIL PROTECTED] wrote: The problem is that the my elements are

[jQuery] Re: .attr('height')

2008-10-23 Thread diego
Hi weidc, look at this..i've changed the .attr : var litebox = $(this).attr('rel'); var altezza = $('#'+litebox+'img.lite').attr('alt'); and the html span class=thumbs_big id=img1 img src=images/diegovalobra_b.jpg title=900 alt=585 class=lite/ span class=thumbs_close title=chiudiimg

[jQuery] Re: .attr('height')

2008-10-23 Thread diego
hi weidc, i've changed the .attr: var altezza = $('#'+litebox+'img.lite').attr('alt'); var larghezza = $('#'+litebox+'img.lite').attr('title'); span class=thumbs_big id=img1 img src=images/diegovalobra_b.jpg title=900 alt=585 class=lite/ span class=thumbs_close title=chiudiimg

[jQuery] Re: .attr('height')

2008-10-23 Thread weidc
oh my god this sucks. kind of frustrating huh? i'll keep on thinking about it. -weidc On 23 Okt., 15:56, diego [EMAIL PROTECTED] wrote: Hi weidc, look at this..i've changed the .attr : var litebox = $(this).attr('rel'); var altezza = $('#'+litebox+'img.lite').attr('alt'); and the html

[jQuery] Re: .attr('height')

2008-10-23 Thread diego
weidc i found the bug, at the elements with css 'display:none' IE gives width and height = 0, that's why i have in return 0-0, i think i'll work on it, trying to overcome this IE bug.. Anyway thank you very much for support.. Diego On 23 Ott, 16:16, weidc [EMAIL PROTECTED] wrote: oh my god

[jQuery] Re: .attr('height')

2008-10-23 Thread diego
I've done it...i don't use display:none , instead i use visibility:hidden hideing the elements by js, works fine in all browser... http://www.pirolab.it/piro_09/index2.html tnx again Diego On 23 Ott, 16:46, diego [EMAIL PROTECTED] wrote: weidc i found the bug, at the elements with css

[jQuery] Re: .attr('height')

2008-10-23 Thread ricardobeat
jQuery is supposed to briefly show the element to get its height/ width, then hide it again, this shouldn't be happening. Is your page valid xhtml? Couldn't you set the height and width inline attributes for the image? - ricardo On Oct 23, 1:51 pm, diego [EMAIL PROTECTED] wrote: I've done