1391 3
Open and Close bootstrap modal using jquery?

I have a requirement to open and close bootstrap modal using jquery or javascript , as I have to kept it open until some background task is complete and after that close bootstrap modal pop-up as soon as task is completed succesffuly, how can iI achieve it using jquery-javascript?

...
Type
Question
jQuery bootstrap modal-pop-up modal-dialog
1329 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
1255 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
1034 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
978 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

965 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
950 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
921 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
915 2
How to make Ajax request synchronous in jQuery?

Is there any way to make Ajax request Synchronous in jQuery/javascript?

I am trying to fetch a data from the server while loading the <div> data and depending on that data, i will fetch another query, which can be asynchronous but the first one should be synchronous as data will be parsed after the success of the call.

Code:

...
Type
Question
jQuery javascript ajax-synchronous
906 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