Skip to content

Instantly share code, notes, and snippets.

@gorosz
Created December 12, 2013 06:30
Show Gist options
  • Save gorosz/7923994 to your computer and use it in GitHub Desktop.
Save gorosz/7923994 to your computer and use it in GitHub Desktop.
[web2py] - ajax form submission
<script>
jQuery('#forcast_month_selector').submit(function() {
jQuery('#generateresult').fadeIn();
ajax('{{=URL("ces", "populate", vars=dict(type="forecast"))}}',
['forecast_month'], 'generateresult');
return false;
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment