Return to Snippet

Revision: 44454
at April 12, 2011 02:24 by kashif21


Initial Code
function showPrintPage() {
    var PageType = $("[id$=_lnkPrint]").attr("PageType");
    var grdID = 'divGrid';
    if (PageType == "Multitab") {
        grdID = $("[id$=_lnkPrint]").attr("Gridid");
    }
    var Browsediv = window.document.getElementById(grdID);
    var Detaildiv = window.document.getElementById('idAreaDetail');
    var Chartdiv = window.document.getElementById('idAreaChart');
    if (Browsediv != null)
        getPrint(grdID);
    else if (Detaildiv != null)
        getPrint('idAreaDetail');
    else if (Chartdiv != null)
        getPrint('idAreaChart');

    return false;
}

Initial URL

                                

Initial Description

                                

Initial Title
cross browser printing methood

Initial Tags
browser, printing

Initial Language
JavaScript