1644 2
Closure in Javascript and its use
This article explains about, what is closures in javascript and it's use cases with example
Type
Article
javascript closure in javascript what is closure in javascript closure uses
1615 0
How to get user location using Javascript / HTML5 Geolocation?
In this article, I am going to provide you few solutions using which you can get user location using JavaScript or HTML5 Geolocation with example.
Type
Article
JavaScript HTML5 Geolocation get user location javascript find ip geolocation get geolocation javascript
1588 2
How to check if string contains substring using jQuery-Javascript?

I am trying to send data to front end, using Ajax call, now I am getting string like

...
Type
Question
jQuery Javascript substring-from-string contains
1575 2
how to modify url without reloading page?

How can I modify URL of a web page without reloading the complete page? Is it even possible using javascript or jquery?

I don't want to change the complete URL, just want to change URL after domain, i.e after https://www.test.com/change-from-here

thank you

...
Type
Question
javascript jQuery url-rewriting change-url-without-loading
1547 1
How to check if url contains a sub-string using jQuery or javascript?

How do i check if the current URL contains the sub-string using jQuery or javascript?

I need to select a anchor tag using class if a condition is met, suppose i need to check if URL has "/CRM" then select

...
Type
Question
javascript check if url contains string jquery check if url has parameters javascript

1461 2
how to format text as a dollar currency using javascript or jquery?

I would like to format the input string in my textbox to dollar currency formatted text, so if I enter 100.00000 in it, output should be

...
Type
Question
javascript jquery formatting-text-as-currency
1332 2
How to get query string values in JavaScript or jQuery?

I am working on a web-application and would like to know, how can I get query string value in javascript (possible using jquery, or with plain javascript), I don't want to increase page load time by adding an extra plugin, a demo code example would work.

thanks

...
Type
Question
javascript query-string-in-javascript query-string-using-javascript
1175 1
DataTables breaks on last “Next” or any “Previous” paginate button

I have the following DataTable which calls status_icons() function for replacing 0 & 1 values with icons.

At first results page (on initComplete) I call status_icons() for the replacement and then I make a trigger out of DataTables scope in order to have my function re-executed for next paginated results due to DataTable DOM reconstruction behavior for each pagination.

The error I get is that re-adds the status icons over the current ones when you click on the "Previous" button on any pagination or the numbered pagination boxes.

My function for replacing values with icons

...
Type
Question
jquery datatable javascript
1169 2
Difference equals operator (== vs ===) in JavaScript and which to use when?

I came up with two javascript comparison operators ==(two equals) and ===(three equals) sign, I would like to know when I should use which of these comparison operators and when?

Is there any performance improvement when using ===? 

Thanks

 

...
Type
Question
javascript operatos identity-operator equality-operator
1117 1
calculate distance between two locations in google maps
How do you calculate the distance between two locations(points or lat/lang) in Google Maps using javascript or jquery?
thank you
...
Type
Question
javascript jquery google-maps

Page 2 of 6