Created
August 28, 2009 12:55
-
-
Save jakearchibald/176975 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
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