Questions tagged [javascript]
JavaScript (not to be confused with Java) is a high-level, dynamic, multi-paradigm, object-oriented, prototype-based, weakly-typed language used for both client-side and server-side scripting. Its primary use is in rendering and manipulating of web pages. Use this tag for questions regarding ECMAScript and its various dialects/implementations (excluding ActionScript and Google-Apps-Script).
1,786,834 questions
0
votes
0answers
6 views
Javascript closure not doing what expected. (Atmoic value not being maintained inside closure)
I am running into a problem when I am attempting to use a closure to maintain a value that I use upon a callback from an asynchronous function.
The basic order of operations for the functions is:
I ...
0
votes
1answer
9 views
JS get value with onClick on div element (dropdown)
In my div i have list of items:
<div id="itemList" class="dropdown-content">
<a value="1">item1</a>
<a value="2">item2</a>
<a value="3">item3</a>
<a value=...
0
votes
0answers
3 views
Duplicate form inputs into new bootstrap tab
I'm currently dealing with a form submission page, where a user can submit expenses for each trip they make during client hours. I've got the form all setup, pulling info from the database for the ...
0
votes
0answers
6 views
How to convert display view of Date column from Psql database
I have a psql database set up with a date column that is the DATE type. When I receive the data from the database and try to display it in a table on my website the date appears with the timezone ...
0
votes
0answers
9 views
Calling an external Javascript function in html using flask, showing function not defined
I am using flask to {% extends "base.html" %} and insert {% block js_file %}, then I call functions defined in .js file but receive uncaught referenceerror is not defined.
I have a base.html ...
0
votes
0answers
11 views
When using the Flickr API, how do you display a gallery of Flickr photos while using the Lightbox plugin?
I'm trying to allow the user to click on each photo and get a full screen view, using the lightbox plugin. However, I am getting the error 'This photo is no longer available' when making href equal to ...
0
votes
0answers
18 views
how to search google with speach reconition from your website
i have a "jarvis" or personal assistate in a web vrowser. it runs on some speach recontion code i will put at the bottom. i want to tell it to google something, then say what i want it to google, and ...
0
votes
1answer
10 views
passing returned data from an exported function to a React component
I have a function defined in file 'utils.js' like this:
export function get_data() {
return "some_data";
}
I also have my react component defined as follows in file 'myComponent.js':
import * ...
1
vote
0answers
7 views
Issue when scrolling down the ion-option list, on scrolling up and down it selects the checkbox
I m using ion-select and ion-option to display some content in the alert controller.
It has a type multiple so that multiple options can be selected using a checkbox.But the problem is in case of ...
1
vote
0answers
12 views
Parent prop updating too late in React/Redux
I have a parent component (parent.js) that calls two children components (child1.js, child2.js). This is all on one tab - child1 is basically an input form to add an event on a calendar and child2 is ...
0
votes
0answers
17 views
Javascript - Favorite button that saves a cookie and remains saved when user refreshes the page?
I'm trying to create a favorite button for my sample site for class. When I click the button it works and takes the user to the detail page as needed but when I go back to the main page it doesn't ...
0
votes
0answers
18 views
Script returning 'TypeError: cannot read property length from NULL' even though its not
I'm trying to read in a CSV file with email IDs which will be used as a search filter to get customer records and remove their email ID on their records.
Here is my code
var context = ...
0
votes
1answer
9 views
React & MobX - How to use Prompt as a confirmation dialog when a person navigates away from the URL?
I'd like to use Prompt for this. However, I'm not seeing too many use cases of it being put to use in action.
<Prompt
when={shouldBlockNavigation}
message="Are you sure?"
/>
What's ...
0
votes
1answer
10 views
Mongoose create document in wrong key:value order according to schema
So I have a problem with understanding of how Mongo .create and .findAndUpdate operation works. I have mongoose 5.4.2X and a model with schema which has lot of key:value pairs (without any nested ...
0
votes
0answers
7 views
How to dynamically expand bootstrap a tree view node with jquery/javascript
I have a tree view element with some radio input elements in each node, i am able to dynamically check a radio input but unable to expand a node that contains the checked radio input. Is there a way ...