how can I open the mail file dynamically with JavaScript ? something like this
- for user 1var win=window.open("http://server_name/mail/user1.nsf\\(MSG)?OpenView" , "tw", "width=680,height=500,status=yes,resizeable=no,left=200,top=100,scrollbars=yes");
- for user 2var win=window.open("http://server_name/mail/user2.nsf\\(MSG)?OpenView" , "tw", "width=680,height=500,status=yes,resizeable=no,left=200,top=100,scrollbars=yes");
and so on....
how to get the server_name and the user1, user2 ,..... with JavaScript ?
other variant is to use passThru html and computed text.
To call your function greetUser() in js header.
All as passThru Html (in text menu) and the @username as computed text (in create menu):
simply write in form.
<input type="button" value="click me" onClick="greetUser(\"@username\")"/ >
this way you use formula language to dynamically write JavaScript when the form is requested by the browser.
In Html-Head field you can write whole JavaScript functions with Formula Language.