Click here to Skip to main content
15,896,348 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,
I am using fancyBox Scripts to display a link in an IFrAme. The script for FancyBox is
JavaScript
<script type="text/javascript">
  $(document).ready(function() {
  $("#various1").fancybox({
    'titlePosition'		: 'inside',
    'transitionIn'		: 'none',
    'transitionOut'		: 'none'
  });
  $("#various2").fancybox();
  $("#various3").fancybox({
    'width'			: '75%',
    'height'			: '75%',
    'autoScale'			: false,
    'transitionIn'		: 'none',
    'transitionOut'		: 'none',
    'type'			: 'iframe'
  })
});
</script>

Up till now I have used anchor tags <a> to invoke or trigger fancyBox Script.
<a id="various1" href="#inline1" title="<b>Dr. abc</b>">
    View Profile

But now I want to trigger this on Asp buttonlink or Image Button.

How do i do this???
Posted
Updated 21-Dec-10 3:52am
v3
Comments
Toniyo Jackson 14-Dec-10 7:30am    
Edited
Hiren solanki 14-Dec-10 9:12am    
@Toniyo : Edited ? for what ?. That we can see.

1 solution

What problem you are facing. Write a new javascript function, that you have written in $(document).ready and call from the clientclick of Imagebutton or asp:Button.
Are you looking for something else.
 
Share this answer
 
Comments
Safiuddin Ansari 15-Jul-11 3:16am    
I want to do some calculation before calling fancybox

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900