Friday, 13 December 2013

Getting Querystring values from javascript

function ShowGridDivsonload(objID)
    {
        var qsarr = new Array();
        var qs = location.search.substring(1);
        var singleqs = new Array();
        var str ="";
        qsarr = qs.split('&');
        for( i=0; i<qsarr.length; i++)
        {
            singleqs = qsarr[i].split('=');
            str = singleqs[1]  ;
        }
           if( str == "HS")
           {
             $("#"+objID+" div").show();
             $("#"+objID+" a[Anchor] ").text("-");
             document.getElementById("imgbuttonExpand").src = '../CRMImages/close_view.fw.png';
             document.getElementById("imgbuttonExpand").value = "close";
           }
    }
   

No comments:

Post a Comment