Questions tagged [javascript]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). This tag is rarely used alone but is most often associated with the tags [node.js], [json], and [html].

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

Missing required request header. Must specify one of: origin,x-requested-with code=H10

I can't figure out why I get "Missing required request header. Must specify one of: origin,x-requested-with nodeJS" in Heroku (link: https://cors-anywhere.herokuapp.com/http://lab5-webtech-brovnie....
0
votes
0answers
4 views

Reverse rubik's cube algorithm

I have been all day strugglingh through this simple function, but i can't get it working as I would like to. It may seem simple at first, and there is indeed another entry in Stack Overflow which ...
0
votes
0answers
18 views

Is there anyway to define objects in an array to numbers

Im making a discord.js trivia command. but i dont get it. For so far everything is working, I want to make a converter for the Answers. Like: Answers is going to be a number instead a full answer. I'...
0
votes
0answers
5 views

Evit back to preview page Javascript

Good afternoon, I have a project with vue, and in one part I have a preview page (http://127.0.0.1:8000/billing-financial/statements/preview/1/), on this page I click on a button that generates a ...
0
votes
0answers
3 views

Not receiving messages through Spring websocket connection

Been struggling with getting this to work for a while. I think I'm close now, as I'm able to connect and subscribe, but I'm not receiving any messages in my frontend. Here's the config: @...
0
votes
1answer
18 views

Using 'this' in objects methods in JavaScript

I am learning JavaScript and to improve my knowledge of the language I have been trying to understand how this todo-list application works. The source code is available here. Overall, I have the ...
0
votes
1answer
15 views

override function delete js

i try to override function delete in inheritance object, but it didn't work. what i do not correct function Card(name, balans) { this.name = name; this.balans = balans; } Card.prototype....
0
votes
0answers
6 views

unable to push to remote repository - Could not resolve host: github.com

Up to this point I haven't had any issues pushing to or pulling from repositories in GitHub. Last week the error message fatal: unable to access 'https://github.com/brentahrens1/run-till-death.git/': ...
0
votes
1answer
13 views

Any ideas with what sort of project I could do with this JSON data? [closed]

I have a project coming up requiring me to write some code that analyzes some JSON data related to COVID 19. I'm not quite sure what I could do with it and ideas would be helpful(recoveries versus new ...
1
vote
2answers
14 views

function gives me TypeError: Cannot read property 'resize' of undefined

I'm using a javascript function inside reactjs. I import like this: import { ImageTools } from './resize_javascript'; and I use like this: upload = (image) => { ImageTools.resize(image, { ...
0
votes
0answers
16 views

Filter Nested array based on some property

I have an array: var data = [{ "name": "Main Hobbies", "checked": false, "children": [{ "name": "Dance", "checked": false, "children": [{ "name": "Salsa", "...
0
votes
0answers
8 views

colorbox throwing an error even after library is loaded

Trying to call colorbox even after the library is loaded... $.ajax({ cache: false, url: 'results.cfm?tab=updates', data: dataString, method: 'POST', ...
-2
votes
0answers
22 views

How do I prepend a string to the displayed/selected option from a <select> html tag?

Say I have the following HTML... <select> <option>1</option> <option>2</option> <option>3</option> </select> I want to display the selected ...
0
votes
1answer
24 views

Hello! I have a problem in Reactjs about props and state

Hello everyone i hope you are very well.I'm working with codeSandbox ide. I have a problem this component: This component name is ProductList and i tried to add functions in App.js But my ...
0
votes
0answers
2 views

Changing rendertable() to datatable row.add() method for empty html tables row cells

I have a table with id cartTable that generates the table rows dynamically. There is a new use case where i have tables with empty cells and would like to change the way data is put in those empty ...

15 30 50 per page
1
2 3 4 5
132726