ucNavBarExtension

Purpose

This exit is used to place an additional element on the navigation bar.

Applies To

Administration Methods

Signature

    public String ucNavBarExtension(
                 Connection dbconn, 
                 SesameSession session) 
                        throws Exception { return null; }

Notes

The exit is expected to return HTML that will render within a TABLE tag.

Example

public String ucNavBarExtension(Connection dbconn, SesameSession session) throws Exception {

   // String to embed meebo looks like
   //<embed src="http://widget.meebo.com/mm.swf?iXnWgTEroI"
     type="application/x-shockwave-flash" width="190" height="275"></embed>

   //Put a div and a button that opens a window containing meebo

   StringBuffer html = new StringBuffer("<div style=\"position:absolute;
      left:620px; top:22px\">");

   //<input value="Live Chat" onclick="openPopupWin(300,300,'http://widget.meebo.com
     /mm.swf?iXnWgTEroI','chat');" type="button">

      html.append(" <input type=\"button\" value=\"Live Chat\" ");
      html.append(" onClick=");
      html.append("window.open('http://widget.meebo.com
        /mm.swf?iXnWgTEroI','chat','width=300,height=300')");
      html.append(">");
      html.append("</div>");

    return html.toString();
}