Saturday, November 29, 2008

[jQuery] Re: IE Issue - Argument not valid - Creating a Jquery Magnifier

What's the demo url for the magnifier?

Rick

Anyulled wrote:
> Thanks Dave, your suggestion worked pretty fine. Now i'm gonna try to
> change the magnifier windows and zoom ratio with hitting the arrow
> keys.
>
> does anyone know how to make IE not show the alt info when the mouse
> is over the image? i need to cancel this, but I don't know how.
>
> On 20 nov, 23:05, Dave Methvin <dave.meth...@gmail.com> wrote:
>
>> Try the IE8 debugger, it's pretty good. You're using the compressed
>> version of jQuery so that is hard to debug, but it the debugger shows
>> the call stack at the point of the error and it leads to this line in
>> your page:
>>
>> $("#magnifier").css({display:"block",top:(e.pageY-$(this).css
>> ("width"))+"px",left:(e.pageX-$(this).css("height"))+"px"});
>>
>> The width and height css attributes are returning "auto" instead of a
>> number of pixels (that's an IE quirkiness), which is causing a math
>> error and it ends up trying to set the top to "NaNpx".
>>
>> Try $(this).height() and $(this).width() instead, they should return a
>> number in pixels--unless they are nested inside an element that is
>> hidden, and I don't think that applies here.
>>
>> Cool magnifier!
>>
>
>
> ---------------------------------------------------------------------------------------------------
> Text inserted by Panda IS 2009:
>
> This message has NOT been classified as spam. If it is unsolicited mail (spam), click on the following link to reclassify it: http://localhost:6083/Panda?ID=pav_15868&SPAM=true&path=C:\Documents%20and%20Settings\Rick%20Faircloth\Local%20Settings\Application%20Data\Panda%20Security\Panda%20Internet%20Security%202009\AntiSpam
> ---------------------------------------------------------------------------------------------------
>
>
>

No comments: