Legends in Morris Chart

With help from this article https://github.com/morrisjs/morris.js/issues/346 This is about adding Legends to Morris charts. Though Morris chart shows legend on hovering on the graphs, but I wanted to show a legend permanently on one corner of the chart area. Below are the codes. It is mostly plug and play code The div in which the… Continue reading Legends in Morris Chart

Upload Files through AJAX (using Jquery and PHP)

This post demonstrates how to upload files to the server through AJAX. For the javascript  part JQuery has been used. Besides the file upload thing there are few other useful codes here: A generalised mail function. The function is capable of sending mails with attachments also. Ajax call using JQuery. Some server side validation codes.… Continue reading Upload Files through AJAX (using Jquery and PHP)

Published
Categorised as jQuery, PHP

Change Iframe Height of Embedded Google Trend

The 1 and the 530 in the highlighted code might need to be changed. <script type=”text/javascript”> jQuery(window).ready(function(){   var temp = jQuery(“iframe”)[1];   temp.height = 530; }) </script>

Published
Categorised as jQuery

Charts or Graphs

jqPlot (http://www.jqplot.com/) a good charting jquery based plugin. Examples on site.

Published
Categorised as jQuery