Using JQuery function and library in WebQuerySave agents

Hi, I need to include a javascript library and the functions in it, in a WebQuerySave agent. Kindly explain how can I include the library and functions in an agent. Thanks a lot

Subject: A WebQuerySaveAgent isn’t Javascript, so you can’t.

Perhaps you are outputting a HTML page with your webquerysave agent, that could include the JS.

Explain more what you have and what you are trying to achieve. You might just be able to go about it in a different way.

Subject: RE: A WebQuerySaveAgent isn’t Javascript, so you can’t.

Thanks Carl for the response. An agent, not a WQS, is doing validation. In case it fails, it need to raise a customised msg box, like alert.

Subject: RE: A WebQuerySaveAgent isn’t Javascript, so you can’t.

So your agent will either need to print a HTML page out or redirect to a different page.

You could also do you validation via JS or an AJAX call if it requires the server to do the validation before saving the document, that way the user doesn’t reload the page, and the dialog and JS library can be in the original page.

Subject: RE: A WebQuerySaveAgent isn’t Javascript, so you can’t.

Thanks Carl. I have been looking for a Ajax call to do Validation. Kindly point out to some examples, I could not find any. That will help in the long term, both in terms of Ajax and XML. thanks once again.

Subject: RE: A WebQuerySaveAgent isn’t Javascript, so you can’t.

there isn’t a call to do validation, you’ll need to code one.

You pass the parameters you want validating to an agent via AJAX and your agent can respond if it is valid or not, if it’s valid you could proceed with save, if not, you can show your dialog.