I believe this login control is on your fancybox and button is not postbacking.
Well solution is quite simple
$("Selector").fancybox({
onStart: function(event,ui){$(this).parent().appendTo($("form:first"))} // <== You need to call this on start event of facebox
});
The above line $(this).parent().appendTo($("form:first")) is the one that does the magic and it needs to be called onStart event of Fancybox
$("Selector").fancybox({
onStart: function(event,ui){$(this).parent().appendTo($("form:first"))} // <== You need to call this on start event of facebox
});
the above code is not working i don't why, but i am facing same issue
$(document).ready(function() { /* * Examples - images */ $("Selector").fancybox({ onStart: function(event,ui){$(this).parent().appendTo($("form:first"))} // <== You need to call this on start event of facebox });
Yopu need to specify it in each and every initialization statement of FACEBOX and please remove
$("Selector").fancybox({ onStart: function(event,ui){$(this).parent().appendTo($("form:first"))} // <== You need to call this on start event of facebox
mwcsdesign
Member
13 Points
7 Posts
Fancybox-ASP.NET button not working
Jun 22, 2011 09:47 AM|LINK
Dear Friends,
I am using master page in my site. and i have fancy box on content page. it is working fine. but fancybox not calling buuton click event. my code is
ayyappan.CNN
Participant
870 Points
326 Posts
Re: Fancybox-ASP.NET button not working
Jun 22, 2011 02:09 PM|LINK
Hi, I tried, please remove
style="display: none;"
"Marks As Answer, if it helps U"
HAND IN HAND IND., Asst. Project Director, Admin and IT,Systems, TN,India
Mark post(s) as "Answer" that helped you
hiren.sharma
Participant
1460 Points
311 Posts
Re: Fancybox-ASP.NET button not working
Jun 23, 2011 06:55 AM|LINK
I believe this login control is on your fancybox and button is not postbacking.
Well solution is quite simple
The above line $(this).parent().appendTo($("form:first")) is the one that does the magic and it needs to be called onStart event of Fancybox
HOPE THIS HELPS
HAPPY CODING
Try out My Blog | Visit My Website
mwcsdesign
Member
13 Points
7 Posts
Re: Fancybox-ASP.NET button not working
Jun 23, 2011 07:07 AM|LINK
You have solved my problem thanky ou, Very much
hiren.sharma
Participant
1460 Points
311 Posts
Re: Fancybox-ASP.NET button not working
Jun 23, 2011 10:13 AM|LINK
m glad that i could help but dont forget to mark as answered
Try out My Blog | Visit My Website
mwcsdesign
Member
13 Points
7 Posts
Re: Fancybox-ASP.NET button not working
Jun 25, 2011 05:46 AM|LINK
$("Selector").fancybox({ onStart: function(event,ui){$(this).parent().appendTo($("form:first"))} // <== You need to call this on start event of facebox });the above code is not working i don't why, but i am facing same issueplease solve my issue.Thanks,hiren.sharma
Participant
1460 Points
311 Posts
Re: Fancybox-ASP.NET button not working
Jun 25, 2011 07:03 AM|LINK
But what happened, earlier you said its working now you saying it's not
Please check for syntactical errors
and try to debug your code using firebug
N tell what changes did you made to the code that the code stopped working
Try out My Blog | Visit My Website
mwcsdesign
Member
13 Points
7 Posts
Re: Fancybox-ASP.NET button not working
Jun 27, 2011 05:18 AM|LINK
In my master page i have written following code
<head><script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
hiren.sharma
Participant
1460 Points
311 Posts
Re: Fancybox-ASP.NET button not working
Jun 27, 2011 05:28 AM|LINK
You have written
$("Selector").fancybox({You need to write it like
$("a#example1").fancybox(onStart: function(event,ui){$(this).parent().appendTo($("form:first"));onStart: function(event,ui){$(this).parent().appendTo($("form:first"))onStart: function(event,ui){$(this).parent().appendTo($("form:first"))$("Selector").fancybox({onStart: function(event,ui){$(this).parent().appendTo($("form:first"))} // <== You need to call this on start event of facebox
});
This doesn't make any sense
Try out My Blog | Visit My Website
mwcsdesign
Member
13 Points
7 Posts
Re: Fancybox-ASP.NET button not working
Jun 27, 2011 07:57 AM|LINK
Now the fancy box is not working after making following changes