QUESTIONS

Tagged: javascript

answers  2  
views  3.2K
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
{ 30.8K - 4280 - 4 }
answers  0
views  2K
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
{ 8,936 - 1773 - 2 }
answers  2
views  1.5K
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
{ 4,285 - 848 - 1 }
answers  2
views  865
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  805
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  4
views  775
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  0
views  614
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  585
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  543
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  514
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  481
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  0
views  450
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  435
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  3
views  396
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  336
votes  0

[Question] What exactly does import and export do in JavaScript?  

What exactly does import and export do in the new ECMAScript standard for JavaScript? And how does this relate to modules? Actually I am not confident with modules either.
Apr 02, 2016
Tanika Kannan
{ 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.