Tag Archives: js

Quick JavaScript fix for a jQuery problem

My site is a WP site. I use the popular Accordion Shortcodes plugin to handle my product’s pages. Also I use the even more popular Share Buttons by AddThis plugin to allow social sharing. But they don’t want to work … Continue reading →

Posted in Blog, Hacks | Tagged , , , , | Leave a comment

Unexpected parseFloat behavior with this.innerHTML in Chrome

This was an unusual case. In one project, I used the JavaScript parseFloat() function to calculate a final total, but the value came from HTML previously generated by a jQuery AJAX request: $(‘#’+id).html(rezult+’ ‘+currency); … $(‘#total’).html(‘TOTAL: ‘+totalcalc()); The value therefore … Continue reading →

Posted in Blog, Hacks | Tagged , , , , , , , , , , , , , , , , , , | Leave a comment