Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8653903
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T14:39:16+00:00 2026-06-12T14:39:16+00:00

I have a question about third party created JQuery plug ins and API’s and

  • 0

I have a question about third party created JQuery plug ins and API’s and the methodology for understanding them. Recently I downloaded the JQuery Masonry/Infinite scroll plug in and I couldn’t figure out how to configure it based on the instructions. So I downloaded a fully developed demo, then manually deleted everything that wouldn’t break the functionality. The code that was left allowed me to understand the plug in much greater detail than the documentation.

I’m now having a similar issue with a plug in called JQuery knob.
http://anthonyterrien.com/knob/

If you look at the JQuery Knob readme file it says this is working code:

<input type="text" value="75" class="dial">    

$(function() {
  $('.dial')
      .trigger(
          'configure',
          {
          "min":10,
          "max":40,
          "fgColor":"#FF0000",
          "skin":"tron",
          "cursor":true
          }
      );
  });

But as far as I can tell it isn’t at all. The read me also says the Plug in uses Canvas. I am wondering if I am suppose to wrap this code in a canvas context or if this functionality is already part of the plug in.

I know this kind of “question” might not fit in here but I’m a bit confused on the assumptions around reading these kinds of documentation and thought I would post the query regardless. Curious to see if this is due to my “newbi” programming experience or if this is something seasoned coders also fight with.

Thank you.

Edit

In response to Tyanna’s reply.

I modified the code and it still doesn’t work. I posted it below. I made sure that I checked the Google Console to insure the basics were taken care of, such as not getting a read-error on the library.

<!DOCTYPE html>
<meta charset="UTF-8">
<title>knob</title>

<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/themes/hot-sneaks/jquery-ui.css" type="text/css" />
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.js" charset="utf-8"></script>

<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.21/jquery-ui.min.js"></script>

<script src="js/jquery.knob.js"></script>

<div id="button1">test </div>
<script>

  $(function() {

    $("#button1").click(function () {
        $('.dial').trigger(
                'configure',
                  { 
                    "min":10,
                    "max":40,
                    "fgColor":"#FF0000",
                    "skin":"tron",
                    "cursor":true
                  }
            );
    });
  });

</script>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T14:39:17+00:00Added an answer on June 12, 2026 at 2:39 pm

    For this, you need to realize that trigger isn’t a command from the Knob library, it’s a jQuery command. You can find more about that command here: http://api.jquery.com/trigger/

    So, what this will do is, if you apply that script to a button click, it will apply the Knob script to the dial style, and will configure the div to look like what is in the code.

    Like this:

    $("#button1").click(function () {
        $('.dial').trigger(
                'configure',
                  { 
                    "min":10,
                    "max":40,
                    "fgColor":"#FF0000",
                    "skin":"tron",
                    "cursor":true
                  }
            );
    });
    

    If you just want to display a knob onload then you just have to do:

    $(function() {
        $(".dial").knob();
    }
    

    As for your question on how you’d know that. In the beginning, look it up. Go to jQuery and type in a method name you don’t know. A good way to tell if it’s a command from jQuery is if in the documentation the dev/author doesn’t explain it or how to use it. That means they feel it is common knowledge. If you don’t know it….look it up.

    In the beginning, it’s touch and go. You just have to keep trying and learning until you get the hang of it. Don’t bang your head against the way trying to figure it out. If you can’t find your answer quickly with a Google search, or if there isn’t a community for the plugin that you’re using, try emailing the author of the plugin. You’d be surprised how many will reply to questions.

    Hope that helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a question about a third-party DateTimePicker control. I've downloaded the dll and
I have a third party library (ZBar) which complains about the armv7 arch when
This is a two-part question about adding a third-party library (JAR) to an Android
I have the following question. Assume we have third party software that send us
I have question about parsing in Html helper : I have sth like: @foreach
I have question about clean thory in Python. When: @decorator_func def func(bla, alba): pass
I have question about XSLT1.0. The task is to write out in HTML all
I have question about normalization. Suppose I have an applications dealing with songs. First
I have question about interpreting strings as packed binary data in C++. In python,
i have question about YAJLiOS parser... I have next json data : {{ body

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.