[jQuery] Re: Safari unable to get width and height of image.

2008-05-29 Thread rbjaanes

Yes. :)

On May 28, 7:19 pm, Ariel Flesler [EMAIL PROTECTED] wrote:
 You're calling the methods inside a document.ready, right ?

 --
 Ariel Fleslerhttp://flesler.blogspot.com

 On 28 mayo, 13:47, rbjaanes [EMAIL PROTECTED] wrote:

  Seems as if Safari doesn't know the required info before the image is
  done loading.
  The functions work fine in debug console, and later events.

  The image properties are NOT set in styles or anything.
  That might be part of the issue, but I can't do more testing atm.

  On May 28, 1:32 pm, rbjaanes [EMAIL PROTECTED] wrote:

   Trying to use elem.height(); and elem.width().

   Safari: 3.1.1
   jQuery: 1.2.6

   Element is set as draggable ... might have something to do with it.- 
   Ocultar texto de la cita -

  - Mostrar texto de la cita -


[jQuery] Safari unable to get width and height of image.

2008-05-28 Thread rbjaanes

Trying to use elem.height(); and elem.width().

Safari: 3.1.1
jQuery: 1.2.6

Element is set as draggable ... might have something to do with it.


[jQuery] Re: How to get element's number of position, mean eq()

2008-05-28 Thread rbjaanes


I believe you can use $('.Attention .Close').index(this);

But if you are trying to retrieve to object you could ...

$('.Attention .Close').click(function(){
alert $(this);
});

I might be wrong though :)

On May 28, 1:49 pm, mtest [EMAIL PROTECTED] wrote:
 Hello again:)
 My qгestion is:
 I have several attention block:
 div class=Attention.../div
 And there are button close in this blocks

 How I can get number, in which attention block clicked on the
 button?
 $('.Attention .Close').bind(click, function(){
      alert($(this).eq());

 });

 How I can get numper of [position in eq() ???

 Please, need a help

 Thank you allways :)


[jQuery] Re: Safari unable to get width and height of image.

2008-05-28 Thread rbjaanes

Seems as if Safari doesn't know the required info before the image is
done loading.
The functions work fine in debug console, and later events.

The image properties are NOT set in styles or anything.
That might be part of the issue, but I can't do more testing atm.

On May 28, 1:32 pm, rbjaanes [EMAIL PROTECTED] wrote:
 Trying to use elem.height(); and elem.width().

 Safari: 3.1.1
 jQuery: 1.2.6

 Element is set as draggable ... might have something to do with it.