Showing posts with label jquery. Show all posts
Showing posts with label jquery. Show all posts

Sunday, 26 March 2017

How to call a function before leaving page - Jquery beforeonunload

Hi guys, Shraing Code Snippet for Calling a function before leaving page. It may be required for variety of purposes. you can use it to track statistics for user's leaving from a website page to record that page for bounce pages statistics from where user is leaving website mostly. this is just a simple example you can use it for variety of way. you can share in comments for...

Saturday, 27 August 2016

Javascript Event Propagation vs Event PreventDefault

Event Propagation vs Event PreventDefault Event Propagation Event Propagation Stops the Event from bubbling or making the event Chain .  Example : -  A Click Event on a <td> tag will also fire click event on it's parent <tr> and this event chain also continues to parent <table> tag of that <tr> this makes a event chain in order...

Thursday, 11 August 2016

Angularjs Vs Jquery

Answer Angularjs Vs Jquery On Quora Angularjs Vs Jquery jQuery will be used for things like higher level APIs, updating DOM elements, adding classes and wrapping XHR calls up nicely. Angular 1.x actually uses jQuery lite (jQLite) inside itself, or can use the full jQuery...

Difference between on and bind in jQuery

The .bind() method registers the event and event handler directly to the DOM element.This method is still very handy when wiring-up event handlers, but there are various performance concerns as are listed below. Internally .bind() maps to .on() as per current version of Jquery .bind may be removed from future versions at any time. There is no reason to keep using .bind and every...

Thursday, 12 May 2016

Create News Feed In PHP

Code To Create A Simple News Feed In PHP Use Ajax & Jquery To Fetch & Populate News Feed . Make Ajax Call From Page Control Will go to specified PHP page through ajax call then fetch data in that PHP page and send data to callback to Ajax Call See A simple Example below :- HTML PAGE CODE <html> <head> //Required CSS / JSS Files </head> <body> <div...

Saturday, 30 April 2016

Parse Json file In Jquery Ajax

See Running Demo Here -Demo For Parsing Json File In Jquery Json File Data  [     {         "alignment1": "TM"     },     {         "alignment2": "TLBR"     },     {         "alignment3": "BL"     },     {         "ruleTimer":...

Parse Json file In Jquery Ajax With Object Under Object

See Running Demo Here -Demo For Parsing Json File In Jquery Json File Data  [     {         "alignment1": "TM"     },     {         "alignment2": "TLBR"     },     {         "alignment3": "BL"     },     {         "ruleTimer":...

Tuesday, 26 April 2016

How To Use Progress Bar With Ajax Request Jquery

Use The Code Below To Have Progress Bar with %age Complete For Fetching Data Preview Of Jquery Ajax Loader HTML CODE  <div id="progressbar">     <div class="progress-label">Loading...</div> </div> CSS CODE .progress-label {     float: left;     margin-left: 50%;     margin-top: 5px;    ...

Thursday, 14 April 2016

Wednesday, 7 January 2015

Uncaught TypeError-undefined is not a function

Uncaught TypeError: undefined is not a functionUncaught TypeError: undefined is not a function in datepicker This error takes my 2 hours today I was developing an asp.net application and I never gone through this error before First time i got this error and it shuffles...

Monday, 1 September 2014

How To Create Re-sizable Popup Windows using Jquery

CODE FOR HOW TO CREATE RE-SIZABLE POPUPS USING JQUERY Try the code written below to create resizable popups for your websites you must have internet connection to use jquery files in the code below other wise you can download these files and give them static paths according to...