Response title
This is preview!
Of course I've tried the drill down, its cool!
The documentation is enough.
Suggestion: When you drill down instead of making an ajax call allow to instantiate the plugin with all the data.See what I mean, all the data is there from the begining.{
"COLUMNS":["X_BAR_LABEL","X_BAR_VALUE","X_BAR_COLOR", "TOOL_TIP_TITLE"],
"DATA":[
["Tom",1238,"#AA0000","Tom ^ ",{
"COLUMNS":["X_BAR_LABEL","X_BAR_VALUE","X_BAR_COLOR", "TOOL_TIP_TITLE"],
"DATA":[
["Jan",1238,"#AA0000","Jan ^ "],
["Feb",1069,"#AA0000","
Feb
^ "],
["Mar",1214,"#AA0000","
Mar
^ "],
["Apr",1262,"#AA0000","
Apr
^ "],
["May",1975,"#AA0000","
May
^ "],
["Jun",1076,"#AA0000","
Jun
^ "]
]
}
]},
["Dick",1069,"#AA0000","Dick ^ "],
["Harry",1214,"#AA0000","Harry ^ "],
["Mary",1262,"#AA0000","Mary ^ "],
["Louise",1975,"#AA0000","Louise ^ "],
["Sue",1076,"#AA0000","Sue ^ "]
]
}
Suggestion #2: make the pluggin self contained, init it and nothing else no:
In the Drill down example there a lot of code outside the plugin and it confuses me, I don't know if all the code is necessary for the plugin to work or withIf I have more ideas I'll will post them here :)$("#chart_div").ddBarChart({ .......
will be enough
HTH
Hi, here's how I fixed that whitespace issue.Copy code
- (function(){
var _oldemail = $.validator.methods.email
$.validator.methods.email = function( value, element ) {
return _oldemail.call( this, $.trim(value), element )
}
})()
If you wonder what's happening here, check out this post about the pattern from Paul Irish: http://paulirish.com/2010/duck-punching-with-jquery/
In short, it calls the existing method for validating but with already $.trim'med value.
© 2013 jQuery Foundation
Sponsored by and others.