Created
March 17, 2009 12:57
-
-
Save nbibler/80524 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Be sure to first include the Google AJAX libraries script in your HTML. | |
// <script src="http://www.google.com/jsapi" type="text/javascript"></script> | |
// Wrap your plugin in a function to execute after jQuery has downloaded and | |
// loaded to your client. | |
function load_jquery_form_plugin() { | |
/* | |
* jQuery Form Plugin | |
* version: 2.24 (10-MAR-2009) | |
* @requires jQuery v1.2.2 or later | |
*/ | |
;(function($) { | |
// This is the supplied file from the plugin. I've truncated about 600 | |
// lines of code here. :) | |
} | |
} | |
// Load the jQuery framework. | |
google.load("jquery", "1.3"); | |
// Declare a callback to run after the jQuery has loaded, but before HTML | |
// images and things have completed (at DOM ready, instead of at the BODY | |
// onload event). | |
google.setOnLoadCallback(function() { | |
load_jquery_form_plugin(); | |
}, true); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment