Hi all,
I posted this in the javascript forum, and they told me to post it here.
I was wondering if anyone had any idea how I can do this.
Basically I want to be able to save changes that a user makes to a word document through the browser.
Here's how I think I can do it:
First create a new word document from a webpage.
Then allow the user to change the document.
I figure that I can add an event listener in javascript to listen for when DocumentClose or Quit happen, then I'll get the text from the document object in my webpage and send it back to be added to my database.
I've tried adding the event handler in javascript like so:
<script language="javascript">
var objWord = new ActiveXObject("Word.Application"
objWord.visible = true
var WordDoc = objWord.Documents.Add()
</script>
<script FOR="WordDoc" EVENT="quit()">
alert("save now"
</script>
Unfortunately it doesn't seem to work.
Has anyone tried this before or know how I can go about doing it?
Cheers
I posted this in the javascript forum, and they told me to post it here.
I was wondering if anyone had any idea how I can do this.
Basically I want to be able to save changes that a user makes to a word document through the browser.
Here's how I think I can do it:
First create a new word document from a webpage.
Then allow the user to change the document.
I figure that I can add an event listener in javascript to listen for when DocumentClose or Quit happen, then I'll get the text from the document object in my webpage and send it back to be added to my database.
I've tried adding the event handler in javascript like so:
<script language="javascript">
var objWord = new ActiveXObject("Word.Application"
objWord.visible = true
var WordDoc = objWord.Documents.Add()
</script>
<script FOR="WordDoc" EVENT="quit()">
alert("save now"
</script>
Unfortunately it doesn't seem to work.
Has anyone tried this before or know how I can go about doing it?
Cheers