Archive for the ‘javascript’ Category

Page 1 of 512345

jQuery plugin: word-counter for textarea

Sorry friends on the way of move to new home I've been lost from the blog as I didn't have internet connection for few last weeks. Now, I'm back and I try to be regular as much as I can. Inspired from the new feature of wordpress 2.6.x which displays word count of each post, I've developed jQuery plugin to display word-count of Textarea. Please note that it is word count plugin not character counter. Full story

Creating and Parsing JSON data with PHP

Yesterday, I was in a party and a guy came near to me and asked me what is JSON and how can handle it via PHP. Today, I'm going to tell you something about JSON data and how we can handle them via PHP. Although, JSON stands JavaScript Object Notation, it is used by many other technologies like PHP and Java for data interchange format over the Internet. Full story
Tags: ,

Getting random number between range of two numbers in JavaScript

Yesterday, Steve asked me how can we have random number function in JavaScript like rand() function of PHP where the programmer can specify the range of two numbers within which we need the random number. Today, I'm going to share two functions in JavaScript, In first function , you can specify the number and the function generate the random number between 1 and N. In another JavaScript function, you can specify range of two numbers between which you've to get a random number. Furthermore, there is optional last parameter in these function for decimal places, if provided, will return the random number with the decimal places specified in the third parameter. Full story

Get free ebooks of essential PHP and JavaScript tips , tricks & Hacks

As you might know that this blog and tradepub.com are providing free magazines to the reader of this blog. You can check the free magazines and E-book in the free magazines resource of this blog. You can find a collection of great resources of IT knowledge from here. And, today I'm here to highlight the great E-books from sitepoint.com on essential PHP and JavaScript tips , tricks  and other resources. Full story

Handling array of HTML Form Elements in JavaScript and PHP

Today, I would like to share the way of handling array of HTML FORM elements using JavaScript and PHP.Well, it's very easy to get the data from the array of HTML form elements in PHP and using them but in JavaScript it's a bit tricky to handle the array of HTML form elements. I had a hard time to handle them via JavaScript in past thats why I'm posting it here so that people will not have hard time to cope with array of form elements in JavaScript and PHP. Full story
Page 1 of 512345
Copyright © 2014 Roshan Bhattarai's Blog. All rights reserved.
Powered by WordPress.org, Custom Theme and ComFi.com Calling Card Company.