Skip to content

Instantly share code, notes, and snippets.

@greatseth
Created November 21, 2008 23:07
Show Gist options
  • Select an option

  • Save greatseth/27685 to your computer and use it in GitHub Desktop.

Select an option

Save greatseth/27685 to your computer and use it in GitHub Desktop.
<form onsubmit="new Ajax.Request(&#39;/subscriptions/800&#39;, {asynchronous:true, evalScripts:true, onComplete:function(request){replace_all_duplicate_buttons(&quot;subscribeForm-Show52&quot;,
&quot;SubscribeForm-Show52&quot;);}, onLoading:function(request){subscription_loading_subscribed(&#39;SubscribeForm1-Show52&#39;)}, onSuccess:function(request){unsubscribe(&#39;SubscribeForm1-Show52&#39;, request.responseText.evalJSON());}, parameters:Form.serialize(this)}); return false;" method="post" id="new_subscription" class="subscriptionForm" action="/subscriptions/800">
<input type="submit" value="Unsubscribe from Show" title="Unsubscribe from Show" name="commit" class="submitButton input_submit unsubscribe"/>
<label><span>New Saturday Night Live videos will be posted to your subscriptions feed in your profile.</span></label>
<input type="hidden" name="_method" value="delete"/><input type="hidden" name="format" value="js"/></form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment