Skip to content

Instantly share code, notes, and snippets.

@nbibler
Created March 17, 2009 12:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nbibler/80524 to your computer and use it in GitHub Desktop.
Save nbibler/80524 to your computer and use it in GitHub Desktop.
// 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