Created
April 3, 2009 00:11
-
-
Save jraines/89576 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
:javascript | |
// wait for the DOM to be loaded | |
$(document).ready(function() { | |
var options = { | |
target: '#output' | |
}; | |
// bind 'myForm' and provide a simple callback function | |
$('#myForm').ajaxForm(options); | |
}); | |
.main | |
%form{:id => 'myForm', :action => 'handle', :method => 'post'} | |
="Link" | |
%br | |
%input{:type => 'text', :name => 'link'} | |
%br | |
%br | |
="Affiliate Link" | |
%br | |
%input{:type => 'text', :name => 'afflink'} | |
%br | |
%br | |
="Affiliate Link Anchor Text" | |
%br | |
%input{:type => 'text', :name => 'afflink_anchor'} | |
%br | |
%br | |
%input{:type => 'submit', :name => 'submit'} | |
%br | |
%br | |
#output |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment