Category Archives: javascript

Angular Js: ng serve doesn’t listen remote machine

If you are working on Angular Js and trying to run it form remote machine, you will face this issue of site not opening. ng serve above command binds to with port 4200 by default. In order to open … Continue reading

Posted in angularjs | Leave a comment

uncaught exception: [Exception… “Not enough arguments” (NS_ERROR_XPC_NOT_ENOUGH_ARGS)

I was testing my web application on FireFox5 , I faced “not enough arguments” issue. During investigation what I found is while opening the page we are hitting actual issues inside ‘addEventListener’ function. I searched web around behavior of ‘addEventListener’ … Continue reading

Posted in Articles, javascript | Tagged | Leave a comment

Javascript: Make independent copy of array using slice() method

Sometime it happens that we need to make copy of an array but in javascript when we assign an array to new it assign it with reference means if you delete anything from new array it will delete it from … Continue reading

Posted in javascript | Leave a comment

Remove element from Array

What if you want to delete an element from Array ?? Mostly people use delete command  but it leaves undefined behind it >>> var list = [1,2,3]; >>> delete list[1]; >>> list [1, undefined, 3] Now try splice instead of … Continue reading

Posted in javascript | Leave a comment

IE – Expected identifier, string or number

If you're getting this error, chances are you have an extra comma after a curly brace:   a = { b: function() { }, c: function() { }, }   Get rid of the trailing comma and your JS error … Continue reading

Posted in ExtJs, javascript, Troubleshoot | Leave a comment

Javascript – Add Float numbers upto 2 Decimal

Hi, Today I was creating a page that is basically a calculator page have many text fields. All of them can accept number upto 2 decimal and onBlur() I have to total that numbers and display on the page  <script … Continue reading

Posted in javascript | Leave a comment

“Learning jQuery” Book review

Book review by | Publisher: Packt. Author(s): Jonathan Chaffer and Karl Swedberg | Reviewed on: April 8th, 2008' jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid … Continue reading

Posted in javascript, review | Leave a comment