Click to See Complete Forum and Search --> : How to open Word with javascript
Base
Aug 22nd, 2001, 03:04 AM
Hello,
The problem is I want to open word(multiple sessions if possible) with javascript, I know it possible using VB-script.
Is there any one whoe can help me?
Thanks
sail3005
Aug 22nd, 2001, 05:44 PM
it's not possible with javascript. you can't open programs.
scoutt
Aug 22nd, 2001, 05:57 PM
don't think it is possible.
Base
Aug 23rd, 2001, 01:28 AM
Oh,
but aren't there some tricks to create a word documtent and then not open it but showing a link to the newly created file?
Inhumanoid
Aug 23rd, 2001, 02:55 AM
You can open multiple word docs which reside on the server (not sure if this is what you want (they can be the same docs or different ones). But this just opens them:
<html>
<head>
<script language="javascript">
function openDocs(){
for(var i=0;i<3;i++)
window.open('word'+i+'.doc','_new');
}
</script>
</head>
<body onLoad="openDocs();">
blablabla
</body>
</html>
Base
Aug 23rd, 2001, 05:29 AM
Thanks, that about what I had in mind.
sail3005
Aug 23rd, 2001, 11:50 AM
i think that will pop open a file download box for the user though.
Base
Aug 24th, 2001, 01:20 AM
That's fine too. Makes it easier for the mightbe users I think.
sail3005
Aug 24th, 2001, 10:42 AM
Well, actually if they have microsoft word, or another program associated with .doc files, then it will open microsoft word, so, hey, that might get done what you want to accomplish :D
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.