Skip to content

Instantly share code, notes, and snippets.

@MarkPochert
Created March 26, 2012 12:19
Show Gist options
  • Save MarkPochert/2204732 to your computer and use it in GitHub Desktop.
Save MarkPochert/2204732 to your computer and use it in GitHub Desktop.
$ ->
$("#pxs_container").parallaxSlider()
$("#contactform").submit (e) ->
e.preventDefault()
$.get @action + "?callback=?", $(this).serialize(), (data) ->
if data.Status is 400
alert "Error: " + data.Message
else
alert "Success: " + data.Message
$("#send_message").click (e) ->
e.preventDefault()
$("#contactform").submit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment