Can you give any more details on the exception? (file, line number, etc).
Perhaps a link to the page you're working on as well?
Inside each(), "this" is a DOM object (which ever one is currently being
iterated over), so I believe your code should work.
On 12/18/06, Abel Tamayo <[EMAIL PROTECTED]> wrote:
Alright. I have a non Jquery function called myFunction(domObject )prepared to
receive a DOM object as a parameter.
I want to use this function with several objects that share the same
class, so i use a sentence like this in the main page:
$(".oneClass").each(moveCodeToImg(this))
, but it doesn't seem to be working and firebug raises the following
exception:
fn has no properties
Maybe the problem is that, by doing this, what I'm passing is not an
object, but an array of them, but that's why I use the construction
each..this. Any ideas?
Thanks.
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/
--
Aaron Heimlich
Web Developer
[EMAIL PROTECTED]
http://aheimlich.freepgs.com
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/