WebQueryOpen and JS

Hello,

I have a form and on WebQueryOpen I run agent. I would like to use JS in that agent, but it does not work.

why?

my agent that I put in WQO has only 1 string:

print ||

Subject: WebQueryOpen and JS

Any print you do from a WQO agent will be ignored, since the only thing getting to the browser is the HTML from the form. To make something from the WQO agent appear on the form, you need to write it to a field on the form/document. The form functions and JS can then act on that data.

/Peter

Subject: WebQueryOpen and JS

Dmytro,

As far as I know, you cannot use javascript the way you described in a WQO agent.

If you want to execute some JS code when the document opens, you have to use the onload event of the form. There you can do all the javascript you want !

Hope this helps

Renaud