javascript - How to access the value parameter of a new object created using JustGage? -
i didn't go digging, because don't think matters methods , forth justgage has, have new object g.
var g = new justgage({ id: "gauge", value: 34, min: 0, max: 100, }); my question how retrieve value parameter later in script.
i thought var value = g.value work, doesn't.
here bit of justgage.js file:
justgage = function(config) { if (!config.id) {alert("missing id parameter gauge!"); return false;} if (!document.getelementbyid(config.id)) {alert("no element id: \""+config.id+"\" found!"); return false;} var obj = this; // configurable parameters obj.config = { // id : string // container element id id : config.id, // title : string // gauge title title : (config.title) ? config.title : "", // titlefontcolor : string // color of gauge title titlefontcolor : (config.titlefontcolor) ? config.titlefontcolor : "#999999", // value : int // value gauge showing value : (config.value) ? config.value : 0,
try g.config.value - looking @ justgage source code think it'll there.
Comments
Post a Comment