I'm fairly new to asp.net/c# and very new to jQuery so please forgive me if this is a newb question.
I have a jQuery fancybox installed which is defined by:
function pageLoad(sender, args) {
$("#ctl00_wpm_ShowProduct_ctl04_TestAddToCart").fancybox({
'width' : 600,
'height' : 620,
'type' : 'iframe' });
}
When I click the asp:HyperLink that renders as ctl00_wpn_ShowProduct_ctl04_TestAddToCart everything works (I realize if I move things on the page this could break but I need to make it work before I make it work well).
I have another asp:Button on that page that I want to do some processing and then open the target URL (calendar) in a fancybox. In the original the click on the link brought fancybox into play and opened the calendar URL. Now if I remove that, how do I get the same results from the button after it does its half-dozen other tasks? I won't have a link to which I can tie the jQuery activation.
I know that codebehind is server and jQuery is client, but if it can work from a link it should work from a button.