Questions tagged [javascript]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], etc.

Filter by
Sorted by
Tagged with
0
votes
0answers
9 views

JS dont add value to map on condition

I have an object that I need to convert into an array. This is the object: const dogCounts: { maltese: 4, poodle: 2, labrador: 10, corso: 0 } And I send it to a component thru ...
-2
votes
0answers
13 views

set text of input element with javascript

hi I have a element like below: <input id="txt_search" class="search-box tp-co-1 tp-pa-rl-5 tp-re tp-bo-bo" type="text" placeholder="جستجوی سهم" onmouseup=&...
0
votes
0answers
4 views

String Injection in Twitter's inputfield with Chrome extension

I am trying to build a Chrome extension that generates texts on Twitter. I am struggling with injecting the text in the inputfield. Here is how I do it: If the user has already input some content, it ...
0
votes
0answers
20 views

comparing elements in two arrays javascript

I've just started learning javascript and I'm trying to understand loops. I have this simple function that is supposed to compare elements in between a word and an array of vowels. I'm trying to loop ...
0
votes
0answers
8 views

How to get the name of the computer running Cypress

Is there some way to get out the value of the computer running the node project containing cypress? I looked at Cypress.platform but that only gives me the operating system. Are there other options?
0
votes
0answers
6 views

Display Server console output on client browser

I am developing a nodejs express application that- allows users to select the postman collection and environment on an html form runs the collection using nemwan's nodejs package. Returns the ...
1
vote
1answer
9 views

JS executing out of order when dispatching redux actions

I have a more complex version of the following pseudo-code. It's a React component that, in the render method, tries to get a piece of data it needs to render from a client-side read-through cache ...
0
votes
0answers
5 views

Google Maps Javascript API Select marker icon from toolbox

I am developing a google maps application where I need the user to be able to select the type of marker they want to place on the map. I want a type of toolbox where they select the icon and then ...
0
votes
0answers
7 views

How to display pdf from an HttpResponse in Django after jquery post request?

I am using xhtml2pdf to introduce pdf report downloads on my platform. The intention is to send a dictionary with some data via ajax to the view so that it triggers the render_to_pdf function in utils....
0
votes
0answers
6 views

Formik setFieldValue bugs in onChange method in react.js

I am using react and formik to create a form. I have been facing a bit weird bug and dont know why I am getting these bugs. I pasted the code below for the reference. So when I add subject and grades ...
1
vote
0answers
13 views

Creative way to use backup image if returned image is 1x1

I'm building a reactJS app and I'm trying to retrieve the user's profile picture from their outlook account. Reading Outlook's documentation I can use the below URL to get that photo (replacing ...
-1
votes
0answers
30 views

How do i work as a programmer whiteout educational related degree? [closed]

I have faced a important question and have not found the complete right answer for it. Actually, I have been graduated from master course of medical engineering, but I'm working as a web developer in ...
0
votes
0answers
6 views

how to use saved asyncstorage data as a variable in class component in react native

I want to use UID in overall layout but by not pressing the button but use as a variable. I already saved the data through other layout and test it by using alert, below is the proof. Image of layout ...
-2
votes
0answers
16 views

Why does typescript ')' expected happen? [closed]

function maintnence() { let debug = config.debugMode; if (config.debugMode = true); app .get("/", (_r, res) => res.sendFile(__dirname + "/maint.html")); else .get("/&...
0
votes
0answers
12 views

update one of the url params without rewriting entire url

I am having an issue with how to update one of multiple params that are part of url data. Lets say we have a view that has 4 parameters stored in the url page, perPage, sortKey, sortType. With my ...

15 30 50 per page
1
2 3 4 5
144449