Have a Question?

If you have any question you can ask below or enter what you are looking for!

All Questions

Microsoft CDN for jQuery or Google CDN? [closed]

3:13pm 14th December 2011 1816 Views

Does it actually matter which CDN you use to link to your jquery file or any javascript file for that matter. Is one potentially faster…...

What does the plus sign do in '+new Date'

12:18pm 23rd May 2017 3087 Views

I've seen this in a few places function fn() { return +new Date; } And I can see that it is returning a timestamp rather…...

load and execute order of scripts

12:10pm 23rd May 2017 8692 Views

There are so many different ways to include JavaScript in a html page. I know about the following options: inline code or loaded from external…...

Where should ajax request be made in Flux app?

2:04pm 29th October 2014 6150 Views

I'm creating a react.js application with flux architecture and I am trying figure out where and when a request for data from the server should…...

Why bring symbols to JavaScript?

9:08pm 10th August 2017 6920 Views

As you may know they are planning to include new Symbol primitive type in ECMAScript 6 (not to mention some other crazy stuff). I always…...

Get protocol, domain, and port from URL

5:57am 16th February 2017 2532 Views

I need to extract the full protocol, domain, and port from a given URL. For example: https://localhost:8181/ContactUs-1.0/contact?lang=it&report_type=consumer >>> https://localhost:8181...

XML parsing of a variable string in JavaScript

10:23am 17th June 2012 5034 Views

I have a variable string that contains well-formed and valid XML. I need to use JavaScript code to parse this feed. How can I accomplish…...

Calculate last day of month in javascript

7:23am 5th September 2011 4272 Views

if you provide 0 as the dayValue in Date.setFullYear you get the last day of the previous month: d = new Date(); d.setFullYear(2008, 11, 0);…...

What is the difference between these headers? Content-Type: application/javascript Content-Type: application/x-javascript Content-Type: text/javascript Which one is best and why? Please do not say they are…...

In knockout js I see View Models declared as either: var viewModel = { firstname: ko.observable("Bob") }; ko.applyBindings(viewModel ); or: var viewModel = function() {…...