Created
          December 10, 2015 03:13 
        
      - 
      
 - 
        
Save rickydazla/45a3c719cfb498997d7b to your computer and use it in GitHub Desktop.  
Revisions
- 
        
rickydazla created this gist
Dec 10, 2015 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,23 @@ /* Build the Shopify Parameters //---------------------------------------*/ var action = '/contact?'; action += encodeURIComponent('form_type') +'='+ encodeURIComponent('contact'); action += '&'+ encodeURIComponent('utf8') +'='+ encodeURIComponent('✓'); action += '&'+ encodeURIComponent('contact[email]') +'='+ encodeURIComponent(contact_email); action += '&'+ encodeURIComponent('contact[body]') +'='+ encodeURIComponent(contact_body); /* Submit the form //---------------------------------------*/ $.ajax({ type: "POST", async: true, url: action, error: function(jqXHR, textStatus, errorThrown) { // Request Failed. }, success: function(response) { // Assume Success. 'response' is the complete HTML page of the // contact success form, so likely won't be helpful self.submit_thankyou(); } });