Java Script

JavaScript (not to be confused with Java) is a high-level, dynamic, multi-paradigm, weakly-typed language used for both client-side and server-side scripting. Its primary use is in rendering and allowing manipulation of web pages. Use this tag for questions regarding ECMAScript and its various dialects/implementations (excluding ActionScript and Google-Apps-Script).

64 votes
10 answers
3K views
What is the difference between Polymer elements and AngularJS directives?

On the Polymer Getting Started page, we see an example of Polymer in action: <html> <head>

avatar
Roger
0 1 0 9
asked 07 September, 2021
58 votes
27 answers
430 views
How do I set the value property in AngularJS&apos; ng-options?

Here is what seems to be bothering a lot of people (including me). When using the ng-options directive in Ang

avatar
Gigi
0 1 0 9
asked 07 September, 2021
59 votes
14 answers
3K views
Can one AngularJS controller call another?

Is it possible to have one controller use another? For example: This HTML document simply prints a message d

avatar
Hallie
0 1 0 9
asked 07 September, 2021
61 votes
7 answers
1.7K views
AngularJS passing data to $http.get request

I have a function which does a http POST request. The code is specified below. This works fine. $http({ u

avatar
Robt
0 1 0 9
asked 07 September, 2021
53 votes
29 answers
433 views
How do I bind to list of checkbox values with AngularJS?

I have a few checkboxes: <input type='checkbox' value="apple" checked> <input type='c

avatar
Dwain
0 1 0 9
asked 07 September, 2021
56 votes
17 answers
706 views
Insert HTML into view from AngularJS controller

Is it possible to create an HTML fragment in an AngularJS controller and have this HTML shown in the view? Th

avatar
Keith
0 1 0 9
asked 07 September, 2021
57 votes
12 answers
2.6K views
Working with $scope.$emit and $scope.$on

How can I send my $scope object from one controller to another using .$emit and .$on methods? function firstC

avatar
Don
0 1 0 9
asked 07 September, 2021
48 votes
3 answers
1K views
What are the nuances of scope prototypal / prototypical inheritance in AngularJS?

The API Reference Scope page says: A scope can inherit from a parent scope. The Developer Guide Scope pa

avatar
Benton
0 1 0 9
asked 07 September, 2021
60 votes
15 answers
1.4K views
What is the difference between angular-route and angular-ui-router?

I'm planning to use AngularJS in my big applications. So I'm in the process to find out the right mo

avatar
Cortez
0 1 0 9
asked 07 September, 2021
57 votes
14 answers
1.5K views
How does data binding work in AngularJS?

How does data binding work in the AngularJS framework? I haven't found technical details on their site.

avatar
Clarice
0 1 0 9
asked 07 September, 2021
62 votes
10 answers
310 views
How To Include CSS and jQuery in my WordPress plugin?

How To Include CSS and jQuery in my WordPress plugin ?

avatar
Robyn
0 1 0 9
asked 07 September, 2021
51 votes
3 answers
2.5K views
JointsWP4 (SASS): Changing Properties in Sticky

TL;DR: Is Sticky actually able to react to changes I give through JavaScript? If so, how? (The project is usi

avatar
Fabian
0 1 0 9
asked 07 September, 2021
57 votes
4 answers
825 views
Best place to insert the Google Analytics code

Where’s the best place to insert the Google Analytics code in WordPress, header or footer? I prefer

avatar
Arline
0 1 0 9
asked 07 September, 2021
48 votes
30 answers
434 views
Render basic HTML view?

I have a basic node.js app that I am trying to get off the ground using Express framework. I have a views fol

avatar
Clarice
0 1 0 9
asked 07 September, 2021
56 votes
23 answers
2.1K views
How do I remove documents using Node.js Mongoose?

FBFriendModel.find({ id: 333 }, function (err, docs) { docs.remove(); //Remove all the documents that

avatar
Majorie
0 1 0 9
asked 07 September, 2021
56 votes
7 answers
2.3K views
"continue" in cursor.forEach()

I'm building an app using meteor.js and MongoDB and I have a question about cursor.forEach(). I want to c

avatar
Suzan
0 1 0 9
asked 07 September, 2021
62 votes
23 answers
2.8K views
How do I update/upsert a document in Mongoose?

Perhaps it's the time, perhaps it's me drowning in sparse documentation and not being able to wrap m

avatar
Rufus
0 1 0 9
asked 07 September, 2021
54 votes
9 answers
790 views
How can I add a custom HTTP header to ajax request with js or jQuery?

Does anyone know how to add or create a custom HTTP header using JavaScript or jQuery?

avatar
Rudy
0 1 0 9
asked 07 September, 2021
62 votes
18 answers
1.2K views
Origin is not allowed by Access-Control-Allow-Origin

I'm making an Ajax.request to a remote PHP server in a Sencha Touch 2 application (wrapped in PhoneGap).

avatar
Patsy
0 1 0 9
asked 07 September, 2021
47 votes
8 answers
1.4K views
Access Control Request Headers, is added to header in AJAX request with jQuery

I would like to add a custom header to an AJAX POST request from jQuery. I have tried this: $.ajax({ ty

avatar
Sena
0 1 0 9
asked 07 September, 2021