[jQuery] Re: dimensions issue?

2007-09-26 Thread Eridius
I though if a selector return nothing and i tried to call a method, it would just fail by saying that the method i called is not a function. Brandon Aaron wrote: The jQuery collection is empty ... meaning it didn't match any any elements. Which means my_element.length == 0 -- Brandon

[jQuery] Re: dimensions issue?

2007-09-26 Thread Brandon Aaron
Most jQuery methods will work on 0 or more elements. However some methods require at least one element. These methods usually return some value related to the element. The only time you would see an error like method i called is not found is if you don't include a plugin's script file before using

[jQuery] Re: dimensions issue?

2007-09-25 Thread Brandon Aaron
The jQuery collection is empty ... meaning it didn't match any any elements. Which means my_element.length == 0 -- Brandon Aaron On 9/25/07, Eridius [EMAIL PROTECTED] wrote: [Exception... 'Dimensions: jQuery collection is empty' when calling method: [nsIDOMEventListener::handleEvent]