Posts

Showing posts with the label JQuery

jquery.wysiwyg.js - Fix to Problem with assigning URL to image in Internet Explorer

The jquery.wysiwyg.js plugin is working fine in FireFox. But when it is loaded in Internet Explorer, we are not able to set a link for the image. It shows an error " SCRIPT5007: Unable to get value of the property 'length': object is null or undefined jquery.wysiwyg.js, line 1 character 3646 ".

Create a twitter reader using JQuery

  The year of JavaScript has come and JQuery is one of the powerful JavaScript libraries out there. We could perform a multitude of tasks using these libraries. I have created a twitter reader that displays a user's timeline using JQuery. The implementation is very simple. See the code below.     <html> <head> <title>Twitter Reader</title> <script src="jquery.js" language="javascript"></script> </head> <body align="center" bgcolor="#181C21"> <script language="javascript" type="text/javascript"> $(document).ready(function(){ $.getJSON("http://twitter.com/statuses/user_timeline/prasanthkumars.json?callback=?", function(data){ $.each(data,function(i, item){ $("<div style='color:#865833'>"+item.text+"</div>").appendTo("body"); }); $("div").filter(function(index){ return (index % 2 == 0); }).css...