Groups
Groups
Sign in
Groups
Groups
FancyBox
Conversations
About
Send feedback
Help
jQuery 1.3 new live() method, can't make it work with Fancybox.
136 views
Skip to first unread message
qlinail
unread,
Apr 16, 2009, 6:27:09 AM
4/16/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to fancybox
hi guys,
jQuery 1.3 new live() method, can't make it work
code :
$(".aimg").live("click", function(){ $(this).fancybox() } );
help me . thx.
Janis
unread,
Apr 16, 2009, 6:37:47 AM
4/16/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to fancybox
Nothing unusual. In your example fancybox will bind click event to
that element.
Janis
qlinail
unread,
Apr 16, 2009, 8:13:06 AM
4/16/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to fancybox
How can I use live() ? thx.
Janis
unread,
Apr 16, 2009, 9:55:34 AM
4/16/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to fancybox
If you read carefully
http://docs.jquery.com/Events/live
you will
realize that .live() function is used to bind handler on event.
So, I guess you are looking for
http://docs.jquery.com/Plugins/livequery
and use it like this -
$(".aimg").livequery(function(){
$(this).fancybox();
});
Janis
qlinail
unread,
Apr 16, 2009, 10:01:00 AM
4/16/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to fancybox
Thank you very much!!!
On Apr 16, 9:55 pm, Janis <
janis.skarne...@gmail.com
> wrote:
> If you read carefullyhttp://
docs.jquery.com/Events/liveyou
will
> realize that .live() function is used to bind handler on event.
> So, I guess you are looking forhttp://
docs.jquery.com/Plugins/livequery
Reply all
Reply to author
Forward
0 new messages