Enlist (DEPRECATED)

This widget is deprecated and might be removed in the future. Please don't use it (anymore)!

The enlist widget allows an agent (not a bidder) to enter their details so that they can later manage their listings at the dashboard of TheNextBid. This page describes how to open this popup widget.

Frontend implementation

First load the SDK of TheNextBid on to the website. This will provide the window.TNB function to initialise the enlist widget. Call this function to open the enlist widget.

Syntax

window.TNB(methodName, buttonName)

Parameters

  • methodName: string - the name of the SDK method to be called. For creating this widget this must be "enlist".

  • buttonName: string - the name of the button which is being clicked (or the name of something else triggering the widget). This variable will be visible in the mail which is being sent once completing the form inside the widget. It is not visible to the user. Please consider using a clear name. We used "subscription" , "prepaid" and "try-for-free" ourselves.

Example usage

<!-- 1. Load TheNextBid SDK -->
<script>
  (function(d, w, s, id){
    if (d.getElementById(id)) {return;}
    w.TNB = function(){w.TNB.calls.push(arguments)}; w.TNB.calls = [];
    var js, x = d.getElementsByTagName(s)[0];
    js = d.createElement(s); js.id = id; js.async = true;
    js.src = 'https://thenextbid.com/sdk-v.1.0.js'
    x.parentNode.insertBefore(js, x);
  }(document, window, 'script', 'thenextbid-jssdk'));
</script>

<!-- 2. Custom button to enlist -->
<button id="enlist-button">Start Using TheNextBid</button>

<!-- 3. Open the widget when needed -->
<script>
  document.getElementById('enlist-button')
    .addEventListener('click', function () {
      window.TNB('enlist', 'enlist for monthly subscription from example.com');
    });
</script>

Last updated