Web Analytics Made Easy -
StatCounter how to bring File Open dialog window from javascript code - CodingForum

Announcement

Collapse
No announcement yet.

how to bring File Open dialog window from javascript code

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • how to bring File Open dialog window from javascript code

    hi .

    i am trying to get the File Open dialogue window by clicking href link in jsp.
    i dont know hwo to do that?

    Here is my code:
    <tr><td colspan=2 class="leftMenu" height="20" onmouseover="javascript:showPartner()"><A class=leftMenu href="#" onClick="startXL('Template.xls')">&nbsp;&nbsp;Meta data template</A></td></tr>

    <script language="JavaScript">
    function startXL(strFile)
    {
    var myApp = new ActiveXObject("Excel.Application");
    if (myApp != null)
    {
    myApp.visible = true;
    myApp.workbooks.open(strFile);
    }
    return false
    }
    </script>

    Plz provide me the help
    regards
    venki
Working...
X