Avoiding Duplicate Documents

I have a Web based application that I want to ensure the document doesn’t already exist based a key value contained on the form. I want to perform this check when the document is submitted (using javascript in the submit button). How is this accomplished? Thanks in advanced.

Subject: Avoiding Duplicate Documents

I’m trying to do a very simliar thing but will be approaching it differently. We are doing a survey based on a help desk call completion. A link it sent out with a specific URL. In the url is the key. I am trying to use the Webqueryopen event to check the existence of a document based on the embedded key in the URL.

Subject: RE: Avoiding Duplicate Documents

There is no way to do this with JavaScript alone, since it doesn’t have a way to access information on the server. You could create an applet that uses CORBA to communicate with the server and then use JavaScript to send an ID to the applet for it to check for uniqueness. However, it’s simpler overall to just do this test on the server, e.g. in a Webquerysave agent.

Subject: RE: Avoiding Duplicate Documents

thanks,but that is beyond my skill sets.

Subject: RE: Avoiding Duplicate Documents

Take a look at Jake Howlett’s “Ajax” (I’m not at all fond of that acronym) implementation over the next couple of days:

http://www.codestore.net/

(I’ll put a proper link in here when Jake’s got the project finished.)

It uses JavaScript and XML to do the job. Oh, and “beyond my skill sets” is not a good answer. Every one of us came into this game with a “what’s Notes?” level of knowledge. “Could you explain that”, “how would I go about that” and “could you point me to any resources” would have been better. As a community, we tend to go quite a way out of our way to help people who seem willing to help themselves.

Subject: RE: Avoiding Duplicate Documents

This sounds very interesting, but I went out to codestore and I didn’t see anything that looked like this. Did I miss it?

Stan Rogers wrote:

Take a look at Jake Howlett’s “Ajax” (I’m not at all fond of that acronym) implementation over the next couple of days:

http://www.codestore.net/

(I’ll put a proper link in here when Jake’s got the project finished.)