Sheetal Panchal
unread,May 13, 2013, 3:49:26 AM5/13/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to fac...@googlegroups.com
I want to call facebox with button. I try to call on button it is not working. showing error on ajax call.
This is my sample code
var taskurl_val = SITEROOT+"/modules/content/process.php";
jQuery.facebox({ajax:taskurl_val});
jQuery.get(SITEROOT+"/modules/content/process_integ.php",{time:time,date:date,userid:userid},
function(data)
{
if(data==1) // slot is free moved to booking confirm page
{
return true;
}
else
{
$("#facebox .content").empty();
var taskurl_val = SITEROOT+"/modules/content/error.php";
jQuery.facebox({ajax:taskurl_val});
setTimeout(function() { jQuery(document).trigger('close.facebox');
}, 10000);
return false;
}
}
);