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 7082877
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:06:32+00:00 2026-05-28T07:06:32+00:00

I am using this plugin to create charts: http://www.filamentgroup.com/lab/update_to_jquery_visualize_accessible_charts_with_html5_from_designing_with/ The code works below if

  • 0

I am using this plugin to create charts: http://www.filamentgroup.com/lab/update_to_jquery_visualize_accessible_charts_with_html5_from_designing_with/

The code works below if I run it via the console in firebug, but if I have it run in when i reload the page it wont load the chart.

I am going to guess its that because the parent element is created after the DOM is loaded.

So I am wondering if I can fire this with jQuery live()? Loads like:

  • Request user location
  • Display single page view (this is where the element is created via JSON data)

Any ideas on how I can get my plugin to fire once the new element is created?

$('#snow-line').visualize({type:'bar'});

$('#resort-open').visualize({
    type:'pie',
    colors: ['#658AB6','#FAFAFA']
});

UPDATE:

This is how I am rendering the data via my JSON object

var resortOpenPerc = loadResort.openDownHillPercent;
var ressortOpenDiff = 100-resortOpenPerc;

$("#resort-open tbody tr:eq(0) td:first").html(resortOpenPerc);
$("#resort-open tbody tr:eq(1) td:first").html(ressortOpenDiff);

And this error is rendering:

Index or size is negative or greater than the allowed amount
domain.com/visualize.js
Line 201
  • 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-05-28T07:06:33+00:00Added an answer on May 28, 2026 at 7:06 am

    “So I am wondering if I can fire this with jquery live()?”

    No. The .live() method is deprecated presumably in part because it does not convey the fact that it is mere event delegation.

    In other words, it works only for handling browser events, not arbitrary code like plugins.


    You say the elements are created “with Mustache.js and data is being loaded via JSON”.

    I don’t know what that means in your code (because you didn’t post it), but if you don’t have direct access to the new elements as they’re being created, then simply select them after they’ve been added to the DOM, and run the plugin at that time.

    // code to create new elements...
    
    $('#snow-line').visualize({type:'bar'});
    
    $('#resort-open').visualize({
        type:'pie',
        colors: ['#658AB6','#FAFAFA']
    });
    

    If this doesn’t work, then there’s some other issue, and you’ll need to post your code so that we can see the issue.

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

Sidebar

Related Questions

I'm using this plugin: http://www.jeremymartin.name/projects.php?project=kwicks And my code follows this example: http://www.jeremymartin.name/examples/kwicks.php?example=7 I'm using
I'm using this jQuery Tooltip plugin: http://docs.jquery.com/Plugins/Tooltip I create tooltips for all links when
Im using this plugin: http://www.fyneworks.com/jquery/star-rating It includes a star.gif (which actually contains the star
I am using this plugin for my new site: http://colorpowered.com/colorbox/ The page in concern
I'm using this Jquery plugin http://t.wits.sg/misc/jQueryProgressBar/demo.php# and I just want to create a default
I'm currently using the following jQuery plugin: jQuery OEmbed. This plugin works great in
So I am using this jquery plugin to create a nice pie chart on
I'm using this plugin with jQuery 1.6.1 and jQuery UI 1.8.14 to create a
I'm using this lightweight jQuery plugin to create a rich-text editor: Batiste RTE jQuery
I am using this plugin from Get Hifi in my code. I am trying

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.