Hands Down...The Best Spritz Cookie Recipe - Hugs and Cookies XOXO (2024)


function extend(destination, source) { for (var prop in source) { destination[prop] = source[prop]; } }

if (!Mimi) var Mimi = {}; if (!Mimi.Signups) Mimi.Signups = {};

Mimi.Signups.EmbedValidation = function() { this.initialize();

var _this = this; if (document.addEventListener) { this.form.addEventListener('submit', function(e){ _this.onFormSubmit(e); }); } else { this.form.attachEvent('onsubmit', function(e){ _this.onFormSubmit(e); }); } };

extend(Mimi.Signups.EmbedValidation.prototype, { initialize: function() { this.form = document.getElementById('ema_signup_form'); this.submit = document.getElementById('webform_submit_button'); this.callbackName = 'jsonp_callback_' + Math.round(100000 * Math.random()); this.validEmail = /.+@.+\..+/ },

onFormSubmit: function(e) { e.preventDefault();

this.validate(); if (this.isValid) { this.submitForm(); } else { this.revalidateOnChange(); } },

validate: function() { this.isValid = true; this.emailValidation(); this.fieldAndListValidation(); this.updateFormAfterValidation(); },

emailValidation: function() { var email = document.getElementById('signup_email');

if (this.validEmail.test(email.value)) { this.removeTextFieldError(email); } else { this.textFieldError(email); this.isValid = false; } },

fieldAndListValidation: function() { var fields = this.form.querySelectorAll('.mimi_field.required');

for (var i = 0; i < fields.length; ++i) { var field = fields[i], type = this.fieldType(field); if (type === 'checkboxes' || type === 'radio_buttons' || type === 'age_check') { this.checkboxAndRadioValidation(field); } else { this.textAndDropdownValidation(field, type); } } }, fieldType: function(field) { var type = field.querySelectorAll('.field_type'); if (type.length) { return type[0].getAttribute('data-field-type'); } else if (field.className.indexOf('checkgroup') >= 0) { return 'checkboxes'; } else { return 'text_field'; } },

checkboxAndRadioValidation: function(field) { var inputs = field.getElementsByTagName('input'), selected = false;

for (var i = 0; i < inputs.length; ++i) { var input = inputs[i]; if((input.type === 'checkbox' || input.type === 'radio') && input.checked) { selected = true; } } if (selected) { field.className = field.className.replace(/ invalid/g, ''); } else { if (field.className.indexOf('invalid') === -1) { field.className += ' invalid'; } this.isValid = false; } }, textAndDropdownValidation: function(field, type) { var inputs = field.getElementsByTagName('input'); for (var i = 0; i < inputs.length; ++i) { var input = inputs[i]; if (input.name.indexOf('signup') >= 0) { if (type === 'text_field') { this.textValidation(input); } else { this.dropdownValidation(field, input); } } } this.htmlEmbedDropdownValidation(field); },

textValidation: function(input) { if (input.id === 'signup_email') return;

if (input.value) { this.removeTextFieldError(input); } else { this.textFieldError(input); this.isValid = false; } },

dropdownValidation: function(field, input) { if (input.value) { field.className = field.className.replace(/ invalid/g, ''); } else { if (field.className.indexOf('invalid') === -1) field.className += ' invalid'; this.onSelectCallback(input); this.isValid = false; } },

htmlEmbedDropdownValidation: function(field) { var dropdowns = field.querySelectorAll('.mimi_html_dropdown'); var _this = this;

for (var i = 0; i < dropdowns.length; ++i) { var dropdown = dropdowns[i]; if (dropdown.value) { field.className = field.className.replace(/ invalid/g, ''); } else { if (field.className.indexOf('invalid') === -1) field.className += ' invalid'; this.isValid = false; dropdown.onchange = (function(){ _this.validate(); }); } } }, textFieldError: function(input) { input.className = 'required invalid'; input.placeholder = input.getAttribute('data-required-field'); }, removeTextFieldError: function(input) { input.className = 'required'; input.placeholder = ''; }, onSelectCallback: function(input) { if (typeof Widget === 'undefined' || !Widget.BasicDropdown) return; var dropdownEl = input.parentNode, instances = Widget.BasicDropdown.instances, _this = this; for (var i = 0; i < instances.length; ++i) { var instance = instances[i]; if (instance.wrapperEl === dropdownEl) { instance.onSelect = function(){ _this.validate() }; } } }, updateFormAfterValidation: function() { this.form.className = this.setFormClassName(); this.submit.value = this.submitButtonText(); this.submit.disabled = !this.isValid; this.submit.className = this.isValid ? 'submit' : 'disabled'; }, setFormClassName: function() { var name = this.form.className; if (this.isValid) { return name.replace(/\s?mimi_invalid/, ''); } else { if (name.indexOf('mimi_invalid') === -1) { return name += ' mimi_invalid'; } else { return name; } } }, submitButtonText: function() { var invalidFields = document.querySelectorAll('.invalid'), text; if (this.isValid || !invalidFields) { text = this.submit.getAttribute('data-default-text'); } else { if (invalidFields.length || invalidFields[0].className.indexOf('checkgroup') === -1) { text = this.submit.getAttribute('data-invalid-text'); } else { text = this.submit.getAttribute('data-choose-list'); } } return text; }, submitForm: function() { this.formSubmitting(); var _this = this; window[this.callbackName] = function(response) { delete window[this.callbackName]; document.body.removeChild(script); _this.onSubmitCallback(response); }; var script = document.createElement('script'); script.src = this.formUrl('json'); document.body.appendChild(script); }, formUrl: function(format) { var action = this.form.action; if (format === 'json') action += '.json'; return action + '?callback=' + this.callbackName + '&' + serialize(this.form); }, formSubmitting: function() { this.form.className += ' mimi_submitting'; this.submit.value = this.submit.getAttribute('data-submitting-text'); this.submit.disabled = true; this.submit.className = 'disabled'; }, onSubmitCallback: function(response) { if (response.success) { this.onSubmitSuccess(response.result); } else { top.location.href = this.formUrl('html'); } }, onSubmitSuccess: function(result) { if (result.has_redirect) { top.location.href = result.redirect; } else if(result.single_opt_in || !result.confirmation_html) { this.disableForm(); this.updateSubmitButtonText(this.submit.getAttribute('data-thanks')); } else { this.showConfirmationText(result.confirmation_html); } }, showConfirmationText: function(html) { var fields = this.form.querySelectorAll('.mimi_field'); for (var i = 0; i < fields.length; ++i) { fields[i].style['display'] = 'none'; } (this.form.querySelectorAll('fieldset')[0] || this.form).innerHTML = html; }, disableForm: function() { var elements = this.form.elements; for (var i = 0; i < elements.length; ++i) { elements[i].disabled = true; } }, updateSubmitButtonText: function(text) { this.submit.value = text; }, revalidateOnChange: function() { var fields = this.form.querySelectorAll(".mimi_field.required"), _this = this; var onTextFieldChange = function() { if (this.getAttribute('name') === 'signup[email]') { if (_this.validEmail.test(this.value)) _this.validate(); } else { if (this.value.length === 1) _this.validate(); } } for (var i = 0; i < fields.length; ++i) { var inputs = fields[i].getElementsByTagName('input'); for (var j = 0; j < inputs.length; ++j) { if (this.fieldType(fields[i]) === 'text_field') { inputs[j].onkeyup = onTextFieldChange; inputs[j].onchange = onTextFieldChange; } else { inputs[j].onchange = function(){ _this.validate() }; } } } } }); if (document.addEventListener) { document.addEventListener("DOMContentLoaded", function() { new Mimi.Signups.EmbedValidation(); }); } else { window.attachEvent('onload', function() { new Mimi.Signups.EmbedValidation(); }); }})(this);

Hands Down...The Best Spritz Cookie Recipe - Hugs and Cookies XOXO (2024)

FAQs

What is the best cookie sheet for spritz cookies? ›

Insulated Cookie Sheets

Pros: Cookie sheets are insulated to prevent the bottoms of the cookies from browning too much or too quickly and are ideal for when you're baking thin or delicate cookies, or treats should be lightly colored, such as spritz cookies and shortbread.

Why won t my Spritz cookies come out of the press? ›

If the dough is sticking to the bottom of the press instead of adhering to the pan, it might be too soft. Place it in the refrigerator for 3 to 4 minutes and try again. Butter is highly recommended when making Spritz cookie dough.

Should you use parchment paper when baking Spritz cookies? ›

Begin with cool, ungreased cookie sheets. You can even skip parchment paper or a silicone mat, which may encourage spreading. Keep it simple.

Should Spritz cookies be baked on parchment paper? ›

Don't use parchment paper or non-stick cookie sheets for spritz cookies. This dough needs something it can stick to a little in order to come off the press. The cookies have so much butter in them, I've never had a problem with them sticking to a regular cookie sheet when they bake.

How do you get Spritz cookies to work? ›

My #1 tip on spritz dough

By creaming the butter and sugar you begin to dissolve the sugar in the butter, and you bring air into the dough which gives spritz their characteristic melt-in-your-mouth, light, airy texture. I (almost hilariously!) repeat it in every recipe: CREAM YOUR BUTTER!

Can you use store bought cookie dough in a cookie press? ›

Loading the Cookie Press

To save time, buy premade cookie dough that comes in a log shape. Avoid using cookie dough that has big pieces like chocolate chips or nuts in it.

Can you use any dough in a cookie press? ›

It's best to use a recipe that's been well-tested for cookie presses. The dough, which is quite buttery, needs to be soft and just the right consistency to easily press through the design plates. Avoid adding ingredients like nuts or dried fruits.

Why do my spritz cookies taste like flour? ›

Generally that floury taste can be attributed to several things. Too much flour, bad recipe, improper mixing or underbaking, but the most common culprit is too much flour. Too much flour is most usually caused by scooping with the measuring cup and is probably the most common kitchen mistake made today.

Why are my spritz cookies tough? ›

Simply adding the flour to the stand mixer and beating it in runs the risk of overdeveloping gluten and giving you a tough or dense cookie (not what you want after all that work with the creaming). Instead, the best method is to add the flour and mix it in by hand, stopping as soon as no dry flour remains.

Why are my spritz cookies going flat? ›

Kitchens tend to heat up during any baking extravaganza, meaning the butter you leave on the counter to soften might get too soft. If this happens, the butter will melt faster in the oven and your cookies will flatten before they can set. Thirty minutes is usually enough counter time to soften butter.

Why are my spritz cookies spreading? ›

Warm Cookie Sheets

If you're batch baking your cookies, make sure you're placing cookie dough on cooled cookie sheets. If the cookie sheets are too warm, they can cause the cookies to spread.

How do you keep a spritz from spreading? ›

Helpful Hints and Tips for Perfect Spritz Cookies:

Do not chill the dough before using. The dough should be at room temperature so it can be piped through the press. If your cookies start to spread or your kitchen is warm, try chilling the pans in the refrigerator for a few minutes before piping the cookies on the pan.

How do you make Spritz cookies not stick to the pan? ›

So check your disc if your Spritz dough is not sticking to your pan. You must use cooled off cookie sheets so the cookies will stick to pan and come out of the press with no problem. Cookie sheets can not be warm. That is the answer.

What is a spritz cookie made of? ›

Beat butter and sugar in large bowl with electric mixer on medium speed, or mix with spoon. Stir in flour, salt, egg, almond extract and a few drops of food color. Place dough in cookie press. Form desired shapes on ungreased cookie sheet.

Why is my Spritz cookie dough crumbly? ›

There are a few things you can do if your cookie dough is too dry and crumbly. First, try adding more liquid to the dough. This could be milk, water, or even just additional eggs. If that doesn't work, you could also try melting some butter and adding it to the dough.

Top Articles
Latest Posts
Article information

Author: Reed Wilderman

Last Updated:

Views: 5623

Rating: 4.1 / 5 (72 voted)

Reviews: 87% of readers found this page helpful

Author information

Name: Reed Wilderman

Birthday: 1992-06-14

Address: 998 Estell Village, Lake Oscarberg, SD 48713-6877

Phone: +21813267449721

Job: Technology Engineer

Hobby: Swimming, Do it yourself, Beekeeping, Lapidary, Cosplaying, Hiking, Graffiti

Introduction: My name is Reed Wilderman, I am a faithful, bright, lucky, adventurous, lively, rich, vast person who loves writing and wants to share my knowledge and understanding with you.