O'Reilly logo

JUNOS Automation Cookbook by Adam Chappell

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Web client application

The web client is implemented in a single piece of HTML, which creates the skeleton structure of a document and then uses JavaScript event handlers in conjunction with the client-side socket.io framework to generate the page content as and when event information is received from the server. When a new update is received, we use the standard JavaScript DOM manipulation function in order to find the container <div> and add a new pair of child <div> elements to that thus representing the heading comment, and the configuration commit extract respectively.

As a final touch, when we update the DOM, we take time to adjust the window scroll position to the bottom of the document, allowing useful viewing without constant user ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required