@networkInterfaceImage(INTERFACE, ID)

Inserts a NIC Interface Adapter image button which the user can click on for AJAX updates about a interface on the server.

The following parameters are recognized:

INTERFACE

The interface to get information for.

ID

ID name of the location to insert this NIC Interface Adapter image button.

This macro allows one to insert a <span> entity into the HTML document being produced such that when the user "hovers" over the entity, a DOM tooltip will be displayed (and periodically updated) showing information about the interface. NOTE: You must invoke the "NstWui.initialize();" JavaScript command in the <head> section of your page in order to enable the dynamic tooltips. On must also register the "ID" with: NstDom.addIdEnhance('ID', NstDom.networkInterfaceImageSpanEnhance);

Example of using the macro:

      @networkInterfaceImage("eth3","startTap2")
    

Assuming the com.ccg.macros.at.All class is within your CLASSPATH and the config/html.at macros file has been generated (Hint: run make atmacros in the wui directory), a developer should be able to run the above example by copy/pasting from below:

[root@probe root]# java com.ccg.macros.at.All <<EOF
@include("config/html.at",,"d")

      @networkInterfaceImage("eth3","startTap2")
    
EOF

This macro is defined as:

@htmlEntity("div",,"@htmlAttr("title","@param(0)")@htmlAttr("id","@param(1)")")