Skip to content

Instantly share code, notes, and snippets.

@jakearchibald
Created August 28, 2009 12:55
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 jakearchibald/176975 to your computer and use it in GitHub Desktop.
Save jakearchibald/176975 to your computer and use it in GitHub Desktop.
glow.ready(function() {
// create your panel, this will take it off the page
// the form must have id="form" for the below to work
var myPanel = new glow.widgets.Panel("#form");
// listen for clicks on the "Enquire Now!" button
// The "Enquire Now!" button must have id="enquireNow"
glow.events.addListener('#enquireNow', 'click', function() {
// show the panel
myPanel.show();
// prevent the browser following the link
return false;
});
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment