Messagebox on browser

Hi,

I am using an agent to perform a caculation and would want to print an alert/messagebox onto the screen for a certain condition.

but i am not sure how to do this, as for notes client i can use messagebox but i am using browser as client and so i guess have to use a javascript.

i am not sure how to use javascript in a agent using lotuscript.

any help is appreciated

thanks

Subject: messagebox on browser

Since the Lotus Script will be running on the server, we can’t display message boxes on browser (which doesn’t support lotus script). You have send a new page to Browser with the messages.

Use print statements in lotus script to write an html page. For example, add this line to display the message “Thank you for your submission” :

Print “

Thank you for your submission

To provide instructions to a browser

For example, add this line to direct a browser to the Domino Web site:

Print “[http://domino.lotus.com]”

Or you can display another form/page to display the results of your computation. Link to the main document can be given using $$Return field in this form.

Regards,

Byju Joy

Subject: messagebox on browser

Hi,

if the page is generated by the agent, you can use the “onLoad”-Event in the body tag and call a Javascript function. So when the page is loaded, this function will be executed. The agent has to print this lines in the output html.

For Example:

function printMessage(){ alert ("Hello World"); } NOTE: Syntax may differ, take a look at some javascript and HTML documentation. I hope this will help you. Manfred Miller