Submit with javascript

I am just starting to learn a little bit of JavaScript. The code below is basic submit

How do I define who will receive the document. Where do I state the recipient. I have a sendto field and want the document to go the person in this field. I have the function in the js header and call the function. Thanks in advance

function doSubmit(){

document.forms[0].submit();

return true;

}

in the form onsubmit event, I added :

dosubmit();

Subject: submit with javascript

A couple of problems with your theory.

  1. The send is not performed in Javascript or anything on the web end for that matter, and,

  2. How do you expect the document to be represented once it has received at the other end?

The sequence of events on the web goes something like this:

  1. A document is SAVED through the document.forms[0].submit().

  2. The act of saving causes a WebQuerySave event.

  3. The WebQuerySave event starts an Agent.

  4. The agent can be either LotusScript or Java

  5. The agent includes a statement something like Set webdoc = s.DocumentContext

The webdoc is now the document that you just saved.

You can process it from there.

Point (2) above, may be handled by converting the form to HTML, but I would not use that method if I were you. Why not make a URL to the document and just send that?