Lotusscript agent - to javascript - back to lotusscript

I have a browser form with a submit button that has @Command([FileCloseWindow]);

@Command([ToolsRunMacro]; "test")

there is a field on the form called Test

a Lotusscript agent called “Test” looks like this

Dim BrowserDoc As NotesDocument	

Set session = New NotesSession

Set BrowserDoc = session.DocumentContext





Dim tmpstr As String

tmpstr = "Hello"

Print "<BR>"

Print tmpstr



tmpstr = BrowserDoc.reason(0)

Print "<BR>"

Print "--" + tmpstr + "--"

Print "<BR>"

'Now I go itno javascript to prompt the user for an answer

Print "<script>"

Print | answer = confirm(y);|

Print |if (answer){tmpstr = "Got It";}|

Print "</script>"	

'back out to lotusscript, trying to get a value from Javascript

Print "<BR>"

Print "--" + tmpstr + "--"

Print "<BR>"

Print answer

Print "<BR>"

My question is, how do I get a handle on a value in the Javascript code?

dh

Subject: lotusscript agent - to javascript - back to lotusscript

Lotusscript agents don’t work that way, agents are not interactive with the web ui.

You will need to call the first agent, and have the results of the first agent call a second agent passing the results of your questions.

Subject: -