Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space DOC and version 7.1.0
HTML
<div id="google_translate_element"></div>
<script type="text/javascript">
function googleTranslateElementInit() {
  new google.translate.TranslateElement({pageLanguage: 'en'}, 'google_translate_element');
}
</script>
<script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>

Getting Started

Table of Contents

 


Adding a Portable Gadget to a Web Page

...

  • search -- does a search with the global search API
  • dhcp -- does a search with the DHCP API
  • ipam -- does a search with the IPAM API
  • pv-logs – details actions taken in ProVision.

...


Here is an example for a search gadget, loading with the search term "6connect". By default it will load up to five results per type.

...

Code Block
languagejs
<script type='text/javascript'>
var settings = {
provision_location: "https://cloud.6connect.com/6c_123",
provision_api_key: "00-ABCDEFGHIJKLMN00",
provision_secret_key: "00abcd11ef22ghij3300klmno123",

ipam: "6connect",
limit: 10
};
</script>

...


An example with the DHCP gadget:

Code Block
languagejs
<script type='text/javascript'>
var settings = {
provision_location: "https://cloud.6connect.com/6c_123",
provision_api_key: "00-ABCDEFGHIJKLMN00",
provision_secret_key: "00abcd11ef22ghij3300klmno123",

dhcp: "Test",
};
</script>

 


b) Initialize the gadget HTML element

...

The first parameter targets the html element that is the gadget, using jQuery's selector format. In this case, it is an element with the ID "gadget". 


Basic Page Example

Here is a simple example html page with a search gadget. In this example, a default search term of "6connect" is included, and the return limited 10 records. 

...