Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

How to integrate Google Place Autocomplete?

How to integrate Google Places Autocomplete in Javascript? Places Autocomplete is the web service provided by google. It returns place predictions in response to an HTTP request. Running example can be seen here: http://www.geocodezip.com...

Cookies in JavaScript

What are Cookies? Cookies are stored in small text files, on your computer i.e., cookies are the data. To create a cookie in javascript let us look at the code below : document.cookie="username= Ramesh"; whenever a browser requ...

Introduction to JCanvas

JCanvas: As we know that canvas is used to draw graphics with the help of javascript. In this there are certain properties to draw a line, circle, box, etc but canvas does not support event handlers. JCanvas is a javascript library which is...

Simple preview image on upload

If we need to display the preview of the image on upload, we can write a simple javascript function to perform the same this can be done as : <!DOCTYPE html> <html> <body> <script> function img(x) { doc...

How to bind application data to attributes of HTML DOM elements?

The following directives are used to bind application data to attributes of HTML DOM elements: 1.ng-disabled Directive:-    This directive is used to disable any attribute (button,checkbox,etc).     Add ng-disabled...

Create dynamic editable table with HTML using javascript

If you want to create dynamic editable rows in a table using html and javascript, below example will helps you.   In the below code first I have created a button and then created table in which I have added 2 columns, as the output is ...

How to create a Basic Google Maps

Making the google maps is not so difficult. Just to follow some code and google apis.We can make any location google map by using the code below. We have taken the example of dehradun location in India for making this google map. <html>...

jQuery $.ajax()

$,ajax() allows to make an ajax call. This method provide more control than any other method. In the ex below all the parameters  and comment related to each parameter describe the purpose of each one. var ajaxUrl = "Json.htm"; ...

jQuery getJson

getJson is the method that is used to call the json data by ajax call. We can only pass the parameter using the get method. ex of json call function and the data displayed. var jsonUrl = "Json.htm"; $("#btnJson").click(function () { ...

How to pass array in Waypoints API in Google Maps API 3 ?

Waypoints API helps to find directions in Google. So how to pass multiple latitudes and longitudes in Waypoints API. This is the way pass a single lat long we would pass it as below waypoints: [{ location:new google.maps.LatLng(42...

How to customize markers in Google Map in Javascript?

How to customize Map Marker: This blog will help you understand how to customize the markers in google map. Specify the icon option on MarkerOptions to change the marker’s icon. The icon option can be either a string (the URL to the mark...

How to integrate Google Street View in Javascript?

How to integrate Google Street View in Javascript? This blog will help you to know how to integrate google street view using javascript. Firstly create index.html and paste the following lines of code: <!DOCTYPE html> <html> ...

Changing button text (toggle text) on click in AngularJS

We can make a button behave like a toggling button by making a directive in AngularJS. It is very simple. You just need to bind the attribute and then check the condition. First create a simple HTML :- <html> <head> ...

Redirect to a new page/url in AngularJS

We use $location service or $window to redirect to a new URL. $location exposes the URL to the browsers address bar and makes it available to the application. It reflects the changes either side ,i.e. synchronizes the changes and maintains it bet...

Get the stack trace for javascript function

We always face debug issue in javascript and the time when we want to know which function actually create problem we set debug in all the function in sequence of calling. Since Javascript is not a very structured language it can sometimes be hard...

Number and Number properties in javascript

The Number is a javascript object that represents numerical date, either integers or floating-point numbers. The syntax for creating a number object is as follows: var num = new Number(number); If it receives a non-number argument, the...

How to set the height of two div equal dynamically using Javascript?

Hello reader's if you are developing the website in which data is generated in div and height of them is not equal then you can sort out your problem from this blog.   In the scenario above, sometimes text matter in the div is not ...

How to show show the text data from a file into website using ajax

Hello Reader's if you are making the website in which you have to fetch and show the content data from an external file then in this blog you can see how to do it. In web technologies different technologies offers you many ways to do this but...

How to set fomr action on two submit buttons using Jquery

Hello Readers, if you are developing the html form with two or more submit buttons then in this blog you can learn it. On certains conditions a html form should have multiple submit buttons and  both should redirect user to their individual ...

Google Maps: How to disable mouse scroll wheel with Google Maps API ?

Diable Google Maps scrolling: I was facing issue with Google Maps API version 3. On page scroll, google maps scroll should be disabled i.e. I have to disable zooming when you scroll on the map. So this is how I have fixed this issue. Write thi...

HTTP request get vs post in jQuery AJAX

Client and server communication is done with two commonly used http method 1.GET 2.POST GET- GET is basically used for getting the data from the server sometime cached. The $.get method is used in jQuery to get the data. $.get(UR...

jQuery AJAX load()

It is a very simple and powerful ajax method to load the data from the server and display it in the selected element. $(selector).load(URL,data,callback); URL parameter specifies the URL you wish to load data parameter specifies a set ...

How to Check Password Strength using jQuery

Hello Reader's! In this blog i will show you how to Check password strength  and its very important for your website to have some password checking on signup pages to force your users to enter a strong password. If you want to make your ...

CSS jQuery

We can add css by jquery using css() method To return the value of a specified css property css("propertyname"); To set a css property css({"propertyname":"value","propertyname":"value",...}); To set a background and the fontsi...

AJAX XMLHttp

XMLHttpRequest object is used to exchange the data with the server without loading the whole page. XMLHttpRequest is supported by all new browser. Those who do not support, support ActiveXObject. For declaring in the code   if...

$.each loop

$.each loop is the substitute of the age old for loop and for-in loop. jquery provide an object iterator utitlity $.each() and collection iterator utitlity .each(). $.each is an generic iterator function for loop. It is used for both object...

How does page redirection works in javascript?

Sometimes you want to notify your visitors of the change of the new domain name when your webpage is moved. At that time it is good way to place a “redirect page” at the old location which, after a timed delay, will forward visitors t...

Jquery HTML

We can add html dynamically to our website using jQuery. We use to add html dynamically like when we want on some click function or we want to some other event to add boxes and any other thing. We can use function to add function appen...

jQuery adding class

We can dynamically add class to the html using the jQuery. It is used when we are adding html dynamically or when at an event we want that css to be called. We can add the css class simply   $("button").click(function(){ $("h1...

Different types of jQuery Remove Elements

With the help of jQuery, its easy to remove any html within a single click. jQuery is having 2 methods to remove html elements.   remove() - Removes the selected element (and its child elements) empty() - Removes the child elements ...

How to append text boxes using Angular JS

Hello Reader's if you are looking to append the text boxes in your html form then Angular JS offeres you a very better way to do this than others and It is, We can append  a textbox element in html a form dynamically&...

How to show select box using the Angular JS

  Hello Reader's if you are new to Angular JS then this blog is helpful to you. In this blog you can see how angular js can be used to generate the html. AngularJS enables you to create selectbox based on items in an ar...

Node.js: How to install Node.js on Ubuntu 14.04

This blog will help you to understand how to install node.js Install Node.js First update the apt-get package lists with this command: $ sudo apt-get update Now install the git package using apt-get $ sudo ...

How Javascript Cookies works?

Sometimes we need to store session information for different web pages. It is mostly needed for commercial websites where we need to fill up a form through several stages. So to maintain the session information across web pages and to keep track ...

Performing live serach using AJAX and PHP

Here in this blog i have used AJAX to search and provide result on the whenever user enter any character in the textbox. The result is coming from a PHP page. Ajax search is used for making the code easy to understand and for saving the users tim...

How to disable back button of the browser using javascrpt

There are many cases where we have to disable the back button of the browser. Here, the following code will help you to make your back button disable. HTML: <body onload="disableBackOnLoad(); "> Now the back button is disabled ...

How to convert image into base64 string using javascript

Here is the example that shows converting an image file to base 64 string code. It can be done by the canvas method. HTML5 provides the canvas tag that is used to draw a canvas. For converting an image file to base 64 string you need to creat...

how to create modal in javascript

js-model is a library that allows user to work with models by using javascript code. This will help to user for creating a pop-up window for the further details. It contain the interactive data as well as a large part of the logic surrounding for...

How to integrate progress bar with Angular UI Bootstrap

How to integrate progress bar with Angular UI: To use progress bar in angular, you need to include the following code in your controller: Syntax: <uib-progressbar value="" max=></uib-progressbar> It has attributes like m...

How to lookup address & city location on live search using google

Hello Reader's!Sometime you want to use the auto complete as a text suggestion on your search field. Here I am going to explain how you can search city with suggestion. It's a very simple to use in any application. First you need to u...

How to use the jQuery validate() to validate the reset password form.

This tutorial will help to setup front-end form validation for reset password form using jQuery validate() in a short time. This tutorial carries very basic and clear instructions to help anyone in implementing some validation on their reset pass...

Difference between val and text in jquery.

 text This attribute is used to set or return the text content of the elements which are selected. HTML markup is removed when this attribute is used to return text content i.e returns that text content that can be displayed in the browse...

What does $(div[id*='box']) in jQuery mean?

$(“div[id*='box']”) in jQuery The above expression mean selecting all div elements whose id attribute contain box word anywhere like firstbox, secondbox, box1, box2, middleboxexample etc.  Program to demonstrat...

What does $(div[id$='box']) in jQuery mean?

$(“div[id$='box']”) in jQuery The above expression mean selecting all div elements whose id attribute end with box like firstbox, secondbox etc.  Program to demonstrate above expression: <html lang...

jQuey scrollTop()

this method is used to set the position of vertical scroll bar for a particular element. 0 Position of scrollbar means it is at the Top. In a web page, when ever we want to adjust the scrollbar according to its content, we make use of this ...

jQuery html() Method

The html() method is used to return the content  of a particular  elements and it returns the content of first matched element. It overwrites the content of matched elements.   <!DOCTYPE html> <ht...

What does $(div[id^='box']) in jQuery mean?

$(“div[id^='box']”) The above expression mean selecting all div elements whose id attribute start with box like box1, box2 etc. Program to demonstrate above expression: <html lang="en"> <head> <...

AngularJS - $interpolate, $compile and $parse

There are three useful services provided by AngularJS for view rendering and evaluating expression which it uses internally. $interpolate :- This service simply takes a string and is used to evaluate expressions. We can run the entire string...

How to convert Javascript Arrays to Comma seperated values

The toString() method can be used to convert an array into a string. It returs a result containing string and it will seperate the different elements in the array with commas. var group = ['one','two','three','four']; var conv = group.toS...

Angular $q,promises and deferred.

Promises are logics that are executed after any function is completed.  In AngularJS, promises are provided by the in-built $q service. It executes asynchronous functions by registering them with the promise object.   Deferred helps ...
1 12 31
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: