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')"> 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
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')"> 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