Tag: java

57 votes
29 answers
1.2K views
What does "use strict" do in JavaScript, and what is the reasoning behind it?

Recently, I ran some of my JavaScript code through Crockford's JSLint, and it gave the following error:

avatar
Ali
0 1 0 9
asked 07 September, 2021
56 votes
30 answers
2.5K views
How do I check if an element is hidden in jQuery?

Is it possible to toggle the visibility of an element, using the functions .hide(), .show() or .toggle()? How

avatar
Vi
0 1 0 9
asked 07 September, 2021
54 votes
30 answers
2.5K views
How can I remove a specific item from an array?

I have an array of numbers and I'm using the .push() method to add elements to it. Is there a simple way

avatar
Luis
0 1 0 9
asked 07 September, 2021
59 votes
8 answers
1.8K views
How to make ng-bind-html compile angularjs code

I am working with angularjs 1.2.0-rc.3. I'd like to include html code into a template dynamically. For th

avatar
Benton
0 1 0 9
asked 07 September, 2021
61 votes
6 answers
2.7K views
How to delete/remove nodes on Firebase

I'm using Firebase for a web app. It's written in plain Javascript using no external libraries. I c

avatar
Margo
0 1 0 9
asked 07 September, 2021
62 votes
9 answers
2.2K views
Cannot read property 'push' of undefined when combining arrays

When pushing an array's contents to another array I get "Uncaught TypeError: Cannot read property &a

avatar
Mikki
0 1 0 9
asked 07 September, 2021
51 votes
16 answers
2K views
How can I make the browser wait to display the page until it's fully loaded?

I hate how you can actually see webpages load. I think it'd be much more appealing to wait until the pag

avatar
Tuan
0 1 0 9
asked 07 September, 2021
60 votes
10 answers
712 views
How do I detect if a user is already logged in Firebase?

I'm using the firebase node api in my javascript files for Google login. firebase.initializeApp(config)

avatar
Nereida
0 1 0 9
asked 07 September, 2021
55 votes
16 answers
2.9K views
Cannot open local file - Chrome: Not allowed to load local resource

Test browser: Version of Chrome: 52.0.2743.116 It is a simple javascript that is to open an image file from

avatar
Wilber
0 1 0 9
asked 07 September, 2021