Welcome Guest, Not a member yet? Register   Sign In
Sending data to Fancybox via checkbox?
#1

[eluser]Wayne Smallman[/eluser]
Hi guys!

I'd like to trigger a Fancybox window with an iframe when the user clicks a checkbox.

However, name-value pairs need to be sent (a URL, effectively), for CodeIgniter to do its thing.

I've been looking at an earlier discussion on a similar topic, but I'm not very adept with jQuery, and what I've managed to accomplish so far is my upper limit.

Any advice would be much appreciated!
#2

[eluser]Wayne Smallman[/eluser]
Any takers?
#3

[eluser]umefarooq[/eluser]
hi use checkbox click event call facnybox, if you want to check either checked or not that you can also check in jquery

Code:
$("#checkbox_id").click(function(){
   $.fancybox(data);
});

if you are using ajax then use live

$("#checkbox_id").live('click',function(){
   $.fancybox(data);
});




Theme © iAndrew 2016 - Forum software by © MyBB