Archive (8)

Javascript wait object exists (defer) Feb 3, 2017

Wait for an object to exist to execute some code, like jquery or googlemaps

Load jQuery be­fore Re­quireJS and still use it as de­pend­ency Aug 7, 2015

The usual way jQuery plugins are written assumes that the jQuery object is in the global scope. However, one of the benefits that comes with using RequireJS is that everything you load with it is privately scoped within the callback function.

jQuery tips Jul 31, 2015

Multiple ready to use jquery scripts

jquery plugin explained Feb 5, 2015

// --------------------------------- // ---------- Plugin Name ---------- // --------------------------------- // Brief plugin description // ------------------------ /* The semi-colon before the function ...

jquery / javascript simple plugin examples Feb 5, 2015

; (function ($) { function MyPlugin(elem, options) { // remember this object as self var self = this; // remember the ...

jquery intercept form submit Dec 9, 2014

$("#methodForm").submit(function(e){ e.preventDefault(); var form = this; form.submit(); });

jquery get dimensions height vs width Sep 27, 2014

http://stackoverflow.com/questions/9592575/get-height-of-div-with-no-height-set-in-css jQuery .height will return you the height of the element. ...

Add spinner / loading jquery May 8, 2014

there's a couple of ways. My preferred way is to attach a function to the ...