I'm a regular visitor for some interesting blogs and sites to get new posts. I just want those blog or site latest post links in my website. By that I can easily go to read those posts. So, I developed one plain javascript plug-in to do that.
Here is the GitHub Link to My Repository. You can simply download the source code. Very easy to use.
Syntax
loadFeed(url,element,num=null,enableContent=false);
Features
By using third parameter of our function, we can control how many entries should be...
Saturday, 26 April 2014
Tuesday, 22 April 2014

Are you a sound lover...? Do you want more sound in your phone...? Are you using Android in your phone...?
You may love this App... :D
SOUND BOOSTER
This app will let you to increase the volume in both Loud speaker and earpiece. You can route the audio to Earpiece as well!
Features:
1. Hide LED when Device turned on.
2. Do not boost volume more than 70%. To increase more go to settings...
Friday, 18 April 2014
We can Reverse DOM elements. All we need is to use .reverse() the DOM elements.
Here I used Parent Child structure in HTML. You can use ul li to create parent - child structure.
.line-data { font-size:14px; font-family: Consolas,"Liberation Mono",Courier,monospace; } .line-numbers { font-size:14px; background-color: #ECECEC; border-right: 1px solid #DDDDDD; color: #AAAAAA; padding: 0.0em; text-align: right; } .line-pre { font-size:14px;font-family: Consolas,"Liberation Mono",Courier,monospace;...
Monday, 14 April 2014
When we have a same ids for multiple array values, we can group those array values for easy handling.
Consider if we have a array like this,
Array
(
[0] => Array
(
[id] => 96
[shipping_no] => 212755-1
[part_no] => reterty
[description] => tyrfyt
[packaging_type] => PC
)
[1] => Array
(
[id] => 96
[shipping_no] => 212755-1
[part_no] => dftgtryh
...
Thursday, 10 April 2014
Source from James Padolsey. In this post, I just Created a Demo using his code.
$.fn.shuffle = function () {
var allElems = this.get(),
getRandom = function (max) {
return Math.floor(Math.random() * max);
},
shuffled = $.map(allElems, function () {
var random = getRandom(allElems.length),
randEl = $(allElems[random]).clone(true)[0];
allElems.splice(random, 1);
return...
Monday, 7 April 2014
Jake Rocheleau designed a very nice jQuery image rotators with description plug-in.
He missed to instruct how to stop this animation. Here I got the STACKOVERFLOW post. And answered to that question.
Question: How to stop jquery imageslider on mouse hover.
Simply we need to find the correct selector. And .clearInterval() on .mouseover() event listener. Then reset the slide time in setInterval() in .mouseout() event listener.
like this below code,
$('.image_thumb ul li').on("mouseover",function(){
...
Thursday, 3 April 2014
In this post, We are going to learn how to get only numbers from string using Javascript. To do this we are going to use one of the power full weapon Regular Expression.
In this bellow example we are getting value from text box and get only numbers using javascript's .replace().replace() method.
Here we are going to use non-digit character equivalent ( \D ). Just find the non-digit character and replace with " " empty.
var $ = function (id) {
return document.getElementById(id);
};
$('btn').addEventListener('click',...
Some times I feel lazy to use document.getElementById('selector_id') when I'm working with plain Javascript.
I can hear You also feel the same. Lets we can create our own shorthand for getElementById().
All we need is to just write a function for that.
var $ = function (id) {
return document.getElementById(id);
};
Here after We can call our get our element by ID like this,
$('btn')
I think you want to see it in DEMO... You can find it below...
NOTE : Most of the javascript libraries are...
Subscribe to:
Posts (Atom)