Skip to content

Author: admin@master

.sort not working with Firefox

I wrote a Javascript app that I didn’t think any modern browser would have any issue with, but when I tested it, it worked fine with Chrome, Safari, Opera, even IE… but not Firefox. This is the sort in question: Here’s a JSfiddle I made to demonstrate – http://jsfiddle.net/Aq6sc/1/ What that…

Embedded YouTube videos won’t replay

Strange one: embedded YouTube videos, once played (either by clicking ‘play’ or autoplaying on page load) will not play again. I’m using the standard iFrame embed copied straight from YouTube. This happens with several different short videos and across all browser/OS combinations I’ve …

TinyMCE : Toolbar icons not appearing

I was exploring tiny mce editor for one of my project and what I found out was the Icons in the tool bar are not appearing. It is showing some unicode which the browser is unable to display. Here is the html code for the page: On the other hand if I replace the script with I am able to

How to add text inside the doughnut chart using Chart.js?

How to render Text inside the doughnut chart, I am using ChartJs. Answer You have to modify the code like: in chart.Doughnut.defaults and then in function drawPieSegments ctx.fillText(data[0].value + “%”, width/2 – 20, width/2, 200); See this pull: https://github.com/nnnick/Chart.js/pull/35 …

Get ‘Nan’ when auto calculate

I am creating a form using Gridview in ASP.NET. When the user fills in Qty and Price it needs to automatically calculate the Total. However, my Total always returns Nan (Not a number). What am I doing wrong? The ASP page looks like this: The JavaScript: Answer why are you using isNan and parseInt at the same …

AngularJS input event trigger

I searched in internet, how to implement jQuery UI autocomplete into angularJS. I have found a very good sample and it is working. Here Sourcecode HTML JS What I really get confused is, about trigger input event on the select event. What is input for an event, I have never hear about it. I searched in Interne…