lib/jquery_cheats.rb in jquery_cheats-2.1.0 vs lib/jquery_cheats.rb in jquery_cheats-2.2.0
- old
+ new
@@ -33,14 +33,22 @@
newpath = hover_arry.join
newlink = "<a href=\"#{link}\">#{self.mouseoverimage(imagepath,newpath+"-hover."+extension)}</a>".html_safe
return newlink
end
- def barchart()
-
+ def barchart(name,xmlurl)
+ #create a new barchar div tag, class of jqplot is used to simplify jquery binding
+ html = "<div id=\"#{name}\" class=\"barchart\" data-xmlurl=\"#{xmlurl}\"></div>".html_safe
+ #we will have to relly on XML to get the rest of the data...
end
- def initialize()
+ def piechart(name,xmlurl)
+ #create a new barchar div tag, class of jqplot is used to simplify jquery binding
+ html = "<div id=\"#{name}\" class=\"piechart\" data-xmlurl=\"#{xmlurl}\"></div>".html_safe
+ #we will have to relly on XML to get the rest of the data...
+ end
+
+ def initialize
end
#end#end self
\ No newline at end of file