You will recieve your password to this address. Address is not made public.

Your preferred username that is used when logging in.

f.offset() is null Created Mar 16, 2010

This thread is solved

Views: 2285     Replies: 1     Last reply May 3, 2010  
You must login first before you can use this feature

JugglerX

Posts: 1

Registered:
Mar 16, 2010

f.offset() is null

Posted: Mar 16, 2010

Hi Guys,

On the website www.gosea.com/results.html I am getting a javascript error "f.offset() is null"

The jquery seems to work through it, but I'd like to fix the error. I have tried setting values for offset and removing offset all together.

Cheers,

Rob

_andreas_

Posts: 1

Registered:
May 3, 2010

» f.offset() is null

Posted: May 3, 2010

Reply to: f.offset() is null, from JugglerX
Hello Rob,

did you fix this problem?

I get the very same error by moving the mouse pointer fast over trigger elements.

I've kind of fixed it by a small change in the function getPostion(e):


			var top = conf.relative ? trigger.position().top : ((trigger.offset() !== null) ? trigger.offset().top : 0), 
				 left = conf.relative ? trigger.position().left : ((trigger.offset() !== null) ? trigger.offset().left : 0),
				 pos = conf.position[0];

As you can see, the only thing I've done, is to check if trigger.offset() is null before using it's top and left values.

I don't like making changes in the source code because it makes updates more complicated. It would be great if someone has another solution to work around this issue.

Greetings from Austria
Andreas