Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-11-2012, 07:43 AM   PM User | #1
Drew012
New Coder

 
Join Date: Jul 2012
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Drew012 is an unknown quantity at this point
JQuery Visualize Plugin - Help changing chart type

I have an HTML table that is automatically updated using a function I created in javascript. I am using a graphing plugin that takes the updated information from this table and displays them as a pie chart. However, I have a problem. I really don't know enough about JQuery to update my graph.

This is the source I am referring to:
https://raw.github.com/filamentgroup...le-editable.js

Note: The source in the link DOES update exactly as I want it to. However, as you can see it effects every table in my page, and makes them editable. This is a problem because the user can edit the title of a row! Basically I want what the function does, but I understand that it is only updating as the user edits a table.

So I assume I am looking for some sort of onChange element to apply to it. Since I already have a function that will be changing the HTML table, I just need to update the chart...onChange...rather than onClick when the editable chart it clicked?

I know this is basically all Jquery but I would guess some of you have some sort of experience with this. Anything to steer me in the right direction would be helpful. Thanks!
Drew012 is offline   Reply With Quote
Old 07-11-2012, 02:50 PM   PM User | #2
sunfighter
Senior Coder

 
Join Date: Jan 2011
Location: Missouri
Posts: 2,491
Thanks: 18
Thanked 361 Times in 360 Posts
sunfighter is on a distinguished road
Your jquery IS operating on ALL tables because of this = $('table') and $('table td')

Give the table you want to control an ID [let's say ID="editable"] and use $('table#editable') and $('table#editable td')

See if that works.
sunfighter is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:00 AM.


Advertisement
Log in to turn off these ads.