mohammed shamsheer

mohammed shamsheer

  • 1.2k
  • 394
  • 140.2k

how to get hidden value in javescript

Oct 3 2013 6:49 AM
 <script type="text/javascript">


           
function uploadStarted() {
    $get("imgDisplay").style.display = "none";
}
function uploadComplete(sender, args) {
    var imgDisplay = $get("imgDisplay");
    imgDisplay.src = "images/loader.gif";
    imgDisplay.style.cssText = "";
    var img = new Image();
    img.onload = function () {
        imgDisplay.style.cssText = "height:150px;width:150px";
        imgDisplay.src = img.src;
    };
    img.src = "<%=ResolveUrl(filename) %>" // "<%=ResolveUrl(hdnImage.ClientID) %>"; // args.get_fileName();
}
</script>


<%=ResolveUrl(hdnImage.ClientID) %> : hdnImage is hiddenvalue which contain the file name 


Question:I am not able to get the filename to the hdnImage 
how can i get it in the javascript..pls help..!!

Answers (3)