module JQueryCheats require 'railtie' if defined?(Rails) require 'engine' if defined?(Rails) module HoverImage #class used to do a quick Hover image #class << self def mouseoverimage(initimage,hoverimage) cheats_image_tag ="" cheats_image_tag = "\"image\"" return cheats_image_tag.html_safe end def submitimage(imagepath,alt="Image Tag") button_tag = " \"#{alt}\"".html_safe button_tag += "".html_safe return button_tag end def simplemolink(imagepath,link) hover_arry = imagepath.split('.') extension = hover_arry.pop newpath = hover_arry.join newlink = "#{self.mouseoverimage(imagepath,newpath+"-hover."+extension)}".html_safe return newlink end def barchart(name,xmlurl) #create a new barchar div tag, class of jqplot is used to simplify jquery binding html = "
".html_safe #we will have to relly on XML to get the rest of the data... end def piechart(name,xmlurl) #create a new barchar div tag, class of jqplot is used to simplify jquery binding html = "
".html_safe #we will have to relly on XML to get the rest of the data... end def initialize end #end#end self end end