Does your system get all whim-wham when your users get all clicky? Have you inherited a system that gets all whim-wham when your users get all clicky? Hold those extra clicks at bay with this dirt-simple overlay (just add JQuery).
If you are ever in the peculiar position of having to convert a canvas tag into an image, post it via AJAX to a CFC and then generate a PDF then I have your solution.
UPDATE: Scroll down to the bottom of the code for a bonus SVG-to-Canvas-to-PNG conversion.
Bonus Code: SVG-to-Canvas-to-PNG!
After screwing around with Zurb Foundation 4 for a time I have to say that it is not without it’s quirks. One of them is not being able to consistently write to a checkbox. Here is my hacky work-around. Pardon the ‘this’ scope…this method is part of a utility object that I created in an effort to handle all of Foundation 4’s quirks in one place. The benefit of delegating responsibility in this manner is that when/if I upgrade the code base to Foundation 5 (or perhaps Twitter Bootstrap) I will only have to change one object.
Supposedly this is fixed in Foundation 5.
As it turns out these lines of code were the offenders
These ‘copies’ of the aDeveloper object weren’t making copies at all…they were making a ‘shallow copy’ or a ‘copy by reference’ each time. This means that when I modified this.chris to say ‘I like monster movies’ I was also modifying the aDeveloper object.
In order to make a true copy (or ‘deep copy’), I struck down the offending code and wielded the power of jQuery.
jQuery to the rescue! Here’s the entire solution.
OK codeslingers, that’s it for now. Go make something great!