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