Using the
Domino Web Access 6.5 on Linux Redbook, I was able to successfully add a button to the Domino Web Access action bar. For some reason, the
add a function for showing a web page example didn't work. The Javascript code in Example 11-1 said to add the following to the Scene_Actions function in the
Custom_JS form:
a_Actions[a_Actions.length] = {pos:100, title:'ITSO Redbook Page', href:'http://www.redbooks.ibm.com'};
While the [ITSO Redbook Page] button did appear in the action bar, when I clicked on it, I got a
HTTP Web Server: Couldn't find design note - http:/www.redbooks.ibm.com error:
Fortunately, the
provide a function to show an alert or dialog box example did work. I replaced the above JavaScript statement with this:
a_Actions[a_Actions.length] = {pos:100, title:'ITSO Redbook Page', href:'javascript:openWindow ( "http://www.redbooks.ibm.com")'};
and added this new function to the bottom of the JavaScript in the
Custom_JS form:
function helpDesk ()
{
var newWindow = window.open ( '/HelpDeskForm.nsf/CTR?OpenForm','helpdesk','toolbar=no,location=no,scrollbars=yes,directories=no,height=450,width=550' )
}
function openWindow ( url )
{
var newWindow = window.open ( url,'newWindow','toolbar=no,location=no,scrollbars=yes,directories=no,height=450,width=550' )
}
Worked like a charm.
(2)