Window.open...?openagent and pop-up blocker

We have a (web) form which calls an agent via the ‘unload’ event using window.open.

Suddenly it stopped working. We suspect a pop-up blocker has been installed on the client’s machine (and I am trying to find it now - it’s not IE’s own), and is closing the agent window before it can run.

Even if we kill the pop-up blocker, other clients may have them.

Is there a way of calling an agent like this without opening a browser window i.e. so the blocker has nothing to kill?

We have to call the agent from ‘unload’ as it is the only place guaranteed to run if the browser window changes. I use ‘window.open’ rather than window.location as I don’t want to divert the main window from its intended location…or could I pass the url to the agent, and get to that address from there once it has run (thinking as I type) - can you use ‘print’ in an agent window to choose next url? Maybe I answered my own question!!!

Subject: window.open…?openagent and pop-up blocker

You can use print in an agent to forward the browser to another URL, just enlose the URL in square brackets: [http://www.notes.net] will forward the browser here.

Keep in mind you can also use query string in the URL when calling your agent. If you call your agent with http://server.com/database/agent?OpenAgent you can add & and a name value pair, like &DocUNID=XXXXX. You can build this URL with javascript so that it’s dynamic. In your agent contextDoc.QUERY_STRING_DECODED(0) is going to be the query string. (contextDoc is set with Set contextDoc = sess.DocumentContext) You may know all this already but it’s worth repeating for thost that may not.