Plugin allowing for artists, events and venues

I’m working on a music festival website and up until now have used WordTour. I really like WordTour’s artists > events > venues content hierarchy, but am having difficulties transitioning from last year’s festival to this year’s. Ultimately, I’m finding I may need to move on to something else. I need to ultimately do two … Read more

event.preventDefault() function not working in IE

Following is my JavaScript (mootools) code: $(‘orderNowForm’).addEvent(‘submit’, function (event) { event.preventDefault(); allFilled = false; $$(“.required”).each(function (inp) { if (inp.getValue() != ”) { allFilled = true; } }); if (!allFilled) { $$(“.errormsg”).setStyle(‘display’, ”); return; } else { $$(‘.defaultText’).each(function (input) { if (input.getValue() == input.getAttribute(‘title’)) { input.setAttribute(‘value’, ”); } }); } this.send({ onSuccess: function () { $(‘page_1_table’).setStyle(‘display’, … Read more

Remove All Event Listeners of Specific Type

I want to remove all event listeners of a specific type that were added using addEventListener(). All the resources I’m seeing are saying you need to do this: elem.addEventListener(‘mousedown’,specific_function); elem.removeEventListener(‘mousedown’,specific_function); But I want to be able to clear it without knowing what it is currently, like this: elem.addEventListener(‘mousedown’,specific_function); elem.removeEventListener(‘mousedown’); 12 Answers 12

What is the Javascript event for an item being added to the cart in Woocommerce?

I can’t seem to find this in the docs or through google. So basically I’m just looking for the Javascript event that fires when an item is added to the cart. For some reason my default added to cart notification isn’t working. EDIT: So I’m thinking because I’m including the woocommerce.php file in my themes … Read more

jQuery – Trigger event when an element is removed from the DOM

I’m trying to figure out how to execute some js code when an element is removed from the page: jQuery(‘#some-element’).remove(); // remove some element from the page /* need to figure out how to independently detect the above happened */ is there an event tailored for that, something like: jQuery(‘#some-element’).onremoval( function() { // do post-mortem … Read more