QUESTIONS

Tagged: javascript

answers  2  
views  3.3K
votes  2

[Question] In Angular what is the difference between ngRoute and ui-router  

I am not clear about the difference between ngRoute in angular-route.js and ui-route in angular-ui-router.js. One thing I noticed is that the routeconfiguration is different. Which one is the best an ...
Apr 02, 2016
Julian Gallardo
{ 34.4K - 4762 - 4 }
answers  0
views  2.1K
votes  2

[Snippet] How to return multiple values from a function in ES6  

The following function returns two variables: a credentials object and a transport string. function getEmailConfig() { let credentials = { userName: 'anthony', password: 'pass' ...
Apr 02, 2016
Anthony Perez
{ 10.1K - 2014 - 3 }
answers  2
views  1.7K
votes  0

[Question] How to create pretty URLs in Angular  

The routing in Angular makes use of the hash character in the URI path, for example http://localhost/#currencies/10 Is it possible to remove the # sign? If yes, how? I want that the URL should appea ...
Apr 05, 2016
Angel Crump
{ 5,490 - 1089 - 1 }
answers  4
views  995
votes  1

[Question] Substring in JavaScript  

In JavaScript, how can I check if the string str1 contains another substring str2?
Sep 06, 2016
Ezio Mayur
{ 54 - 1 - 0 }
answers  2
views  992
votes  0

[Question] Let text field only accept numerical values using jQuery  

I have a following input text field: <p>Age: <input type="text" id="age"></p> I need that the user should be able to type only numeric characters 0-9 in this field. How is it possible using jQuery?
Oct 12, 2016
Klement Koranteng
{ 50 - 1 - 0 }
answers  2
views  939
votes  0

[Question] How do I refresh a page with JavaScript or jQuery?  

How can I refresh / reload a page with JavaScript?
Sep 03, 2016
Giacobbe Baldassare
{ 50 - 1 - 0 }
answers  0
views  713
votes  0

[Article] JavaScript runtime: Call Stack and Event Queue - Part 4  

This is in continuation to JavaScript runtime: Call Stack and Event Queue - Part 3 The setTimeout() is the JavaScript's asynchronous function. It accepts two arguments: a callback function and a time ...
Sep 12, 2016
Raman Dhingra
{ 80 - 2 - 0 }
answers  0
views  697
votes  0

[Article] JavaScript runtime: Call Stack and Event Queue - Part 5  

This is in continuation to JavaScript runtime: Call Stack and Event Queue - Part 4 <!DOCTYPE html> <html> <head> <title>Stack-Queue</title> <link href="assets/css/bootstrap.css" rel="stylesh ...
Sep 12, 2016
Raman Dhingra
{ 80 - 2 - 0 }
answers  0
views  652
votes  0

[Article] JavaScript runtime: Call Stack and Event Queue - Part 3  

Registering callbacks in the Event Table This is in continuation to JavaScript runtime: Call Stack and Event Queue - Part 2 When the following code is executed, btn.addEventListener('click', functio ...
Sep 12, 2016
Raman Dhingra
{ 80 - 2 - 0 }
answers  1
views  603
votes  0

[Question] Getting and Setting the value from an input text field with jQuery  

I have an input text field <input type="text" id="empName"/> I need to write a value to this field and retrieve the existing value using jQuery? How can I do that?
Sep 23, 2016
Vanja Paterno
{ 50 - 1 - 0 }
answers  2
views  596
votes  0

[Question] Scroll to Top using JavaScript/jQuery  

I have infinite scrolling implemented in a page. I need to provide a button or a simple link which when clicked lets the user scroll to the top of the page. How can I implement it using jQuery or plai ...
Sep 30, 2016
Marijo Jordan
{ 50 - 1 - 0 }
answers  3
views  590
votes  0

[Question] Redirecting to another page with JavaScript  

How to redirect a user from one page to another using JavaScript?
Sep 06, 2016
Nicholas Lake
{ 50 - 1 - 0 }
answers  0
views  569
votes  0

[Article] JavaScript runtime: Call Stack and Event Queue - Part 2  

Call Stack: Administering function calls This is in continuation to JavaScript runtime: Call Stack and Event Queue - Part 1 var first = function() { console.log("Hello One"); }; var second = funct ...
Sep 12, 2016
Raman Dhingra
{ 80 - 2 - 0 }
answers  0
views  537
votes  0

[Article] JavaScript runtime: Call Stack and Event Queue - Part 1  

Browser and JavaScript interaction Things like waiting for an event to occur or rendering an HTML page execute in the browser's native context. Initially, the browser waits for an event to occur, for ...
Sep 12, 2016
Raman Dhingra
{ 80 - 2 - 0 }
answers  0
views  405
votes  0

[Article] Prototypal Inheritance in JavaScript  

JavaScript is a prototype based language. In JavaScript, you cannot define classes explicitly. It makes use of prototypes instead of classes to achieve inheritance. It derives its prototype-based inh ...
Sep 07, 2016
Ramadan Ahmed
{ 50 - 1 - 0 }
20  posts
You may also like
When to use 'ref' and 'out' keywords - specifically with strings?
Visual Studio 2015 F10 Debugger key not working
Horizontally centering a <div> inside another <div>
How to Encrypt and Decrypt a string in C#
Server Side Rendering in JavaScript?
Curlybrackets Software
The source code for Curlybrackets (C#/.NET/SQL Server) is available for purchase here. Start your own Q+A site now!

Easily create custom post types: messages, ideas, questions, tickets, whatever.

The Software Pack is a great place to start your corporate Q+A customer support site.