In jQuery generally using two methods for data posting. There is a chance of happening errors, for tracking get or post error use a jQuery fail() method. If error occurred will return to jQuery fail() method. $.post(“url”,function(userdata){ alert(userdata) ); }).fail(function(){ // error code here alert(‘page not found’) });
Author: smarttips
What is node js
Node.js is a Server side java scripting used to build reliable and scalable applications. Node.js is Server Side Javascript, used for developing server software. Node.js is not a client side script and it works only in server.It is mainly using as part of network based programs.This server side scripting is using callback method in server…
UNIX Linux ubuntu tail Command Examples
tail command help us to find the last lines of a file format: tail -f <filename> Example: tail -f /var/log/apache2/error.log Also can see new lines append to the end of file.
How To Install Node.js Framework with Express and socket.io modules
1. Get a repository or package of node.js using following command sudo apt-get install nodejs 2. After that we need a NodeJS package manager (npm) sudo apt-get install npm Run the node.js using the command node node.js node.js supports different modules Examples : socket.io ,express,http..etc var socket = require( ‘socket.io’ ); var express = require( ‘express’ ); var…
current stable version of php
Current Stable version of php – PHP 5.5.12 Download latest php version