http://www.pdapi.com/cs/JSI/v1/prime/?pub=3&email=[email]&ExitURL=http://www.favecrafts.com/index.php/hct/Latest-Free-eBooks&ca=1'; ebook_obj.user_feedback = false; ebook_obj.ebID = '224'; $(document).ready( function() { //alert('ebookPopup_getJavascript ready'); $("#ebookPopupDiv table").animate( { left:'0px' }, 3000 ); $('#ebookSignUpForm').ajaxForm( { beforeSubmit: ajaxFormPreSubmit_ebookSignUpForm, dataType: 'json', timeout: 20000, error: function(XMLHttpRequest, textStatus, errorThrown){ //alert(errorThrown); }, complete: function(){ $('#ebookSignUpForm').fadeTo("slow", 1.0); $('#ebookPopupDiv .loader').hide(); $('#ebookPopupDiv .privacyText').hide(); $('#ebookPopupDiv .userFeedback').html(ebook_obj.user_feedback).show(); }, success: function(json) { var isNewSignup = 0; if (json.is_new_signup == true) { isNewSignup = 1; } var response_code = json.response_code; var alert_str = 'ebookPopup_getJavascript success' + "\n"; alert_str += 'json.result: ' + json.result + "\n"; alert_str += 'json.fname: ' + json.fname + "\n"; alert_str += 'json.lname: ' + json.lname + "\n"; alert_str += 'json.phone: ' + json.phone + "\n"; alert_str += 'json.email: ' + json.email + "\n"; alert_str += 'json.is_new_signup: ' + json.is_new_signup + "\n"; alert_str += 'isNewSignup: ' + isNewSignup + "\n"; alert_str += 'json.response_code: ' + json.response_code + "\n"; alert_str += 'response_code: ' + response_code + "\n"; //alert(alert_str); ebook_obj.logEbookSubmit(isNewSignup,response_code); //return; if (json.result > 0) { // show some feedback ebook_obj.user_feedback = 'Thanks for signing up! If the page does not reload, click here to get your book.'; // create a cookie to track the ebook signup createCookie('ebksignup', 1, 1); //console.log('ebksignup made'); // create a cookie to track the nlsignup createCookie('nlsignup', 1825, 1825); //console.log('nlsignup made'); // delay the redirect for a little bit to allow the call to logEbookSubmit to be made and return setTimeout('window.location = ebook_obj.landing_page;', 2500); //console.log('redirect stopped ' + ebook_obj.landing_page); } else { var alert_str = 'We could not sign you up.' + "\n"; alert_str += 'Please review the information you entered and make sure your email address is correct.' + "\n"; //alert(alert_str); ebook_obj.user_feedback = alert_str; } } } ); } // end main func ); // end ready; ebook_obj.logEbookSubmit = function(isNewSignup_param,response_code_param){ //alert('isNewSignup_param: ' + isNewSignup_param + '\n\n' + 'ebook_obj.ebID: ' + ebook_obj.ebID); if(ebook_obj.ebID > 0){ //console.log('logEbookSubmit ebook_obj.ebID: ' + ebook_obj.ebID); $.ajax({ url: "/ajax_process.php", type: 'GET', cache: false, dataType: "json", timeout: 2000, // we do not need / expect data returned data:{ task: 'log_ebook_submit', ebID: ebook_obj.ebID, isNewSignup: isNewSignup_param, response_code: response_code_param }, complete: function(){ }, success: function(json){ } }); } } function ajaxFormPreSubmit_ebookSignUpForm() { var alert_str = 'ajaxFormPreSubmit_ebookSignUpForm' + "\n"; //alert(alert_str); var result = true; if ($('#ebookSignUpForm input[name=email]').val() == '') { result = false; alert('You must enter a valid email address.'); } if (result == true) { $('#ebookSignUpForm').fadeTo("slow", .3); $('#ebookPopupDiv .privacyText').hide(); $('#ebookPopupDiv .userFeedback').hide(); $('#ebookPopupDiv .loader').show(); } return result; }

Follow Us on Facebook

Get updates from FaveCrafts.com posted directly to your News Feed.

Free Offer
Project Ideas for All Occasions From Paper to Fabric Volume 1 eCraft Creations

Make your own paper creations with 21 free projects from Craftwell and FaveCrafts. Find one-of-a-kind projects for home, gift-giving, and more - all in this free eBook.

Bonus: Get our newsletter & special offers for free. We will not share or sell your email address. View our Privacy Policy

Articles 41 - 50 of 52 1 | 2 | 3 | 4 | 5 | 6

Recent Grad Card Box

Recent Grad Card Box Save and treasure your special graduation day cards. Put them in this keepsake box so you can keep them through the years. This paper craft idea is a great gift idea.

 

Recycled Yogurt Cup Bud Vase

Recycled Yogurt Cup Bud Vase Turn an empty kids yogurt drink container into a bud vase, perfect for those teeny tiny wild flowers you and your child collect on long (or short) afternoon walks!

 

Refreshing Wrapped Peace Letters

Refreshing Wrapped Peace Letters Learn how to make decorative letters that express the spirit of peace on earth this holiday season. These Refreshing Wrapped Peace Letters are a simple decorative craft that will fill your home with cheer and goodwill. This is a wonderful technique to learn if you want to add a bit of decor that will transform your home with elegance. No matter what time of season, this craft with letters is the perfect addition to a small table or mantel. Enjoy the holidays and remember the peace that Christmas can bring.

 

Summer Shirt Door Hanger

Summer Shirt Door Hanger A papier-mache t-shirt form becomes a cute door hanger for summer with this quick and easy painting project.

 

Tea Party Ornament

Host a tea party with the girls and use these cute little ornaments as place settings or gift tags. Use your favorite scrapbook paper and check out the recipe for homemade mint tea.

 

Textured Pumpkin Centerpiece

Textured Pumpkin Centerpiece Add color and texture to your fall table with this pumpkin and pot centerpiece. This simple foam centerpiece is easy to create for Thanksgiving.

 

Thanksgiving Indian and Pilgrim Table Toppers

Thanksgiving Indian and Pilgrim Table Toppers Invite these cute early Americans to your Thanksgiving table. This is a great project to do with kids.

 

Thanksgiving Turkey Pinata

Thanksgiving Turkey Craft Need a use for leftover Halloween candy? Make a papier-mache Turkey pinata to entertain the kids on Thanksgiving.

 

Trees in Silver and Gold

Elegant Holiday Trees Add these shining, painted papier mache trees to your festive holiday decor.

 

Uncle Sam Fireworks Tube

4th of July Fireworks Tube Paint a beautiful, patriotic container for your Fourth of July fireworks. With an Uncle Sam pattern, this project will be done in no time.

 

Articles 41 - 50 of 52 1 | 2 | 3 | 4 | 5 | 6

Newsletter Signup

Free Newsletter!

Discover crafting projects, free patterns, tips and special offers. Get free craft projects, how-to crafting tutorials & product reviews.

Please Wait

Thanks for signing up

Sorry, we could not sign you up.

Something worth saving?

Register now for FREE to:

  • SAVE all your favorite crafts
  • ADD personal notes
  • QUICKLY reference your crafts

 

Connect with Us

Find us online

  • Facebook
  • Google Plus
  • Instagram
  • Twitter
  • Pinterest
  • Twitter
  • Blog
  • Email
  • RSS

1

© Copyright 2014 Prime Publishing, LLC. All rights reserved.

www.favecrafts.com