jQuery / Programmings / Technologies

jQuery Text Shortening Plugin – more less plugin

A text shortening plugin with help of css and jquery. Try it and modify as your need. It is my small attempt contribute open-source codes. Find project on git hub. github url : https://github.com/safeer-in/more_less How to Use: <script type=”text/javascript” src=”js/jquery-1.10.2.min.js”></script> <script type=”text/javascript” src=”js/jquery.more-less.min.js”></script> <script> $(document).ready(function(){ $(‘.more_less_content’).moreless(); }); </script> Options Example: $(‘.more_less_content’).moreless({ wordlimit : 150, lessText … Continue reading

JavaScript / jQuery / PHP / Programmings / Technologies

Image preview before upload file

We can preview the uploaded image easily with jQuery or JavaScript before actual upload of file. Just Follow these Steps HTML Code <form id=”Imgfrm”> <input id=”imgfile” type=”file” /> <img id=”preview” src=”#” alt=”your image” />< /form> Then use following jQuery Code (You can use pure JavaScript also) $(“#imgfile”).change(function(){ if (this.files && this.files[0]) { var reader = … Continue reading

General / jQuery / Programmings

Create A Single Social Stream From Multiple Networks – jQuery Socialist

Originally posted on webshunt:
  Today, almost everyone is active on multiple social networks and displaying social streams is a widely-implemented when creating websites. jQuery Socialist is a plugin which can aggregate activity from multiple networks and display it as a single feed. It can get the contents from Facebook pages, Twitter, LinkedIn, YouTube, RSS and many others…


Converting PHP Multi-dimensional Array to JAVASCRIPT Array – Using JSON encoding

As you know PHP is a Server-side Scripting language. It executes only at the time of page loading and reaches response to the browser as HTML. So PHP multidimensional array cannot assign to JavaScript array directly, since JavaScript is a Client-side Scripting language. That means it runs inside the browser. So when you need to … Continue reading