Posts

Showing posts with the label Javascript

Create Json Array in Javascript Dynamically

This is an example to create Json Array in Javascript dynamically using new Array(), new Object() and .push(). < script > var obj = new Array ( ) ; for ( i = 1 ; i <= 5 ; i ++ ) { var jsonData = new Object ( ) ; jsonData . key = "ID" ; jsonData . value = i ; obj . push ( jsonData ) ; } console . log ( obj ) ; < / script >    

Import Hotmail Contacts using Javascript

Import Hotmail Contacts using Javascript For more information visit http://support.loginradius.com/hc/en-us/articles/201625646-How-do-I-create-a-MSN-Hotmail-Live-app- Example:- <!DOCTYPE html> <html>     <head>         <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>         <!--WL Library For Hotmail API-->         <script src="//js.live.net/v5.0/wl.js"></script> </head> <script>     var APP_CLIENT_ID = "000000004812A421";     var REDIRECT_URL = "http://xyz.com/index/import";     var CLIENT_SECRET = "c86m2XYZXaIG9CjTsbpQdvbIuR7vaaDl";     WL.init({               client_id: APP_CLIENT_ID,             ...

Login With Google Plus Using Javascript

Login With Google Plus Using Javascript More information visit: https://developers.google.com/+/web/api/javascript <!-- Place this asynchronous JavaScript just before your </body> tag --- Google SignIn--> <script type="text/javascript">     (function() {            var po = document.createElement('script'); po.type = 'text/javascript';            po.async = true;            po.src = 'https://apis.google.com/js/client.js?onload=onLoadCallback';            var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);          })(); </script> <script type="text/javascript"> $(document).ready(function(e) {            var po = doc...

Login with Linkedin Using Javascript

Login with Linkedin Using Javascript For more information visit: http://developers.linkedin.com/documents/getting-started-javascript-api <!--Script for LinkedIn Login add in head --> <script type="text/javascript" src="https://platform.linkedin.com/in.js">       api_key: 75dtnfjj******       authorize: true       lang:  en_US </script> <script type="text/javascript"> // JavaScript Document function signupLinkedIn() {     IN.User.authorize(onLinkedInAuth);     if(IN.User.isAuthorized())     {         //DO STUFF         //console.log('welcome');     }     return false; }; function onLinkedInAuth() {    // we pass field selectors as a single parameter (array of strings)    IN.API.Profile("me")     .fields(["...

Login with Facebook Using Javascript

Login with Facebook using Javascript. For more information visit : https://developers.facebook.com/products/login/ <script> window.fbAsyncInit = function() {   FB.init({     appId      : '*************427',     cookie     : true,  // enable cookies to allow the server to access                         // the session     xfbml      : true,  // parse social plugins on this page     version    : 'v2.0' // use version 2.0   }); }; // Load the SDK asynchronously (function(d, s, id) {     var js, fjs = d.getElementsByTagName(s)[0];     if (d.getElementById(id)) return;     js = d.createElement(s); js.id = id;     js.src = "//connect...

Delete multiple records using checkboxes in Coldfusion

Image
This is the example to delete, active and inactive multiple rows from  mysql using javascript and Coldfusion. We can checked all checkboxes and validate if no any checkbox checked. ---------------------------------------------------------------------------------------------------------- If you like this or this is useful for you. Please comment us. Thank You

Count character of textarea using Javascript

A programe that count character for textarea. You can set th length for textarea like 500 or 1000 or as you like. For Demo  Click Here Thank You.