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

  • Home
  • SEARCH
  • 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 7957387
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T04:14:33+00:00 2026-06-04T04:14:33+00:00

I included a Graphing and Plotting Jquery library called JQplot with wordpress using the

  • 0

I included a Graphing and Plotting Jquery library called JQplot with wordpress using the following code in my functions.php file:

function rw_jqplot() {
    // JS
    wp_deregister_script('jqplot');
    wp_enqueue_script('jqplot', plugins_url('/js/jquery.jqplot.min.js', __FILE__), array("jquery"), '1.0.0.1012');
    // CSS
    wp_deregister_style('jqplot');
    wp_enqueue_style('jqplot', plugins_url('/css/jquery.jqplot.min.css', __FILE__), false, '1.0.0.1012');

} add_action('init', 'rw_jqplot');
?>

The problem is that I get an error that says (in firebug): $ is undefined.

I did some research and I think that it has to do something with jquery running in no conflict mode. So maybe a solution to this is to somehow include the above code within the wordpress no conflict mode? is that possible to do?

Thanks!

  • 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-04T04:14:34+00:00Added an answer on June 4, 2026 at 4:14 am

    Looking at the JQPlot code, the whole plugin is declared within a closure:

    (function($) { 
      // JQPlot code
    })(jQuery);
    

    So the plugin is fine ($ = jQuery in the plugin scope). However, the effects declaration is not:

    var backCompat = $.uiBackCompat !== false;
    // And then, JQPlot effects declaration
    

    That’s an issue, and you should report it to the development team. For a quick&dirty fix, you can add (function($) { at the line 10577 and })(jQuery); at the end of the jquery.jqplot.js.

    Edit

    The latest stable version (0.9.7r635) seems not to have this issue. Maybe give it a try !

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

Sidebar

Related Questions

I included a script into my document's head that contains the following jquery code:
My included file (include.php) is this: <?php $myarray=(a,b,c); shuffle($myarray); ?> My main php file
Using the example code included in the man page for DateTime::Astro::Sunrise , I'm getting
Included Scripts <script src=../../Scripts/jquery-ui-1.8.17.custom.min.js type=text/javascript></script> Accordion Script ` $(function () { $(#accordion).accordion(); }); $(#tabs).tabs();
I included the code for making the URLs work with and without .php .
I have included custom code into csproj file which Zip the whole project on
I included some adsense code in my google chrome extension popup file. Unfortunately this
I have included external js file using getScript. However, I would like to include
I'm looking for a nice graphing library for JavaScript that can handle the following
i have following lines included at the bottom of my index.php: <script type=text/javascript language=javascript

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.