-
-
Recent Posts
Categories
Archives
-
Meta
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
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 AJAX, calculate, Chrome, code, final sum, Google Chrome, HTML, HTML code, innerHTML, isNaN, JavaScript, JavaScript function, jQuery, js, js function, NaN, parseFloat, string, sum
Leave a comment
