Facebox loading with button field

30 views
Skip to first unread message

Sheetal Panchal

unread,
May 13, 2013, 3:49:26 AM5/13/13
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;
          }
       }
       );
Reply all
Reply to author
Forward
0 new messages