TheNextBid Widgets
  • Introduction
  • The SDK
  • Bidding Ribbon
  • Theming
  • Place Bid (optional)
  • Sourcenames and Object IDs
  • Advanced guides
    • Realworks Website
  • Outdated
    • Enlist (DEPRECATED)
    • Bidding (DEPRECATED)
Powered by GitBook
On this page
  • Frontend implementation
  • Syntax
  • Example usage
  1. Outdated

Enlist (DEPRECATED)

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

PreviousRealworks WebsiteNextBidding (DEPRECATED)

Last updated 6 years ago

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

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>

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

the SDK of TheNextBid
The enlist widget as seen on https://thenextbid.com/how-does-it-work-agent . An email will be sent to administrators of TheNextBid once completed. The user does not get registered when submitting this form.