Hi all.
I have an agent that i want to call from a web page in order to load dinamically some information.
Is it possible to call the agent from a page event such as onLoad?
I apreciatte any help. Thanks in advance
Luis
Hi all.
I have an agent that i want to call from a web page in order to load dinamically some information.
Is it possible to call the agent from a page event such as onLoad?
I apreciatte any help. Thanks in advance
Luis
Subject: call a web agent using javascript
Unless the agent needs to be called repeatedly while the page is open in the browser, calling it from the WebQueryOpen would probably be easier. But sure, you can call the agent into an iframe, a new window, or by using and XmlHTTPRequest in the background, then use DHTML to move the data from the agent output fame/window/request object to the main document.
Subject: RE: call a web agent using javascript
Its even easier than that.
Start by creating a button in notes and setting the formula to @command([toolsrunmacro]…
On the HTML tab, give this button a name, “TestButton”.
On the HTML tab, also give it a “style”: display=‘none’ (This will make the button appear hidden, but accessible via javascipt. Do not hide the button in normal fashion.)
In your javascript, you can click that button:
document.forms[0].TestButton.click();
That will actually trigger your agent.
Subject: RE: call a web agent using javascript
Lovely – that will cause a complete page refresh, and we all know how excited end-users get when they get to wait for a page to load again. What’s better, if it’s called from the onload (as described in the original request), it will cause a complete page refresh every time the page loads.
Subject: call a web agent using javascript
It is easy:
var getDBPath = “/” + form.DBPath.value;
window.open(getDBPath + “/wCreateMobilityEvaluation?OpenAgent&PassUNID=” + form.UNID.value, “_blank”, ‘menubar=yes,width=850,height=600, scrollbars=yes,resizable=yes’);