Thursday, 28 January 2016

fancyBoxtest mvc

http://www.c-sharpcorner.com/UploadFile/b696c4/create-edit-details-delete-operation-from-fancy-box-in-mv895/


function LoadFancyDialogue(URL) {
     
        $.fancybox({
            href: URL,
            padding: 5,
            fitToView: false,
            width: '40%',
            height: '55%',
            autoSize: false,
            closeClick: false,
            openEffect: 'none',
            closeEffect: 'none',
            type: 'ajax', afterClose: function () {

                parent.location.reload();
            }
           
           
          
            });
    }



--------------------
$('#testDiv').on('click', '.S2A', function (e) {
        // Sale Pages
        e.preventDefault(); // stops the page jumping to the top
        var SaleID = $(this).attr('id');
        var SaleTaskID = $(this).attr('title');
        var TaskNo = $(this).attr('subject');
        LoadFancyDialogue("@Url.Action("RFTechnicalInfo", "SalePages")?SaleTaskID=" + SaleTaskID + "&SaleID=" + SaleID);
       // window.location.href = '@Url.Action("Sale_IpsInfo", "SalePages")?SaleID=' + SaleID;
        //DecideSaleURL(SaleID, SaleTaskID, TaskNo);
      
     
    });

No comments:

Post a Comment