2,525,863 questions
-1
votes
1
answer
24
views
Use contents of text field to call Google maps API
I am using a Google Map API and simply want to display how many miles it is from one city to the next using one textfield. The following code works, but the origin and destination are hard coded into ...
-2
votes
0
answers
37
views
Delete Button Non-Functional
I'm making a basic stat tracker with HTML, CSS, and JS for a fighting game. Most of it is functional, I can track which characters I used and whether I won or lost but now I'm trying to add a delete ...
-2
votes
0
answers
29
views
How can i run my code in c in html with apache2 server [closed]
i have raspbianOS with a raspberry pi 4 model B and i install apache2 server on it, and i would like execute commande and run code (in c) by clicking on button
Advice
3
votes
1
replies
26
views
JSX Backend Framework: a Joke or a Problem Solver?
I’ve been experimenting with a way to make backend architecture as visual and readable as a React frontend.
A Joke : This was a Joke against the huge mess that the misusage of server actions in React ...
-3
votes
1
answer
100
views
Change the text on the button depending on whether the content is shown or hidden
I'm using code that hides content and reveals a button when the page is scrolled down 50px. Clicking the button reveals the same content, and clicking it again hides it.
Here's an exact demo of my ...
-2
votes
0
answers
36
views
Best practice for enqueueing CSS and JavaScript files in a custom WordPress theme [closed]
I am working on a custom WordPress theme and want to follow recommended best practices for including CSS and JavaScript files.
Currently, stylesheets and scripts are added directly in header.php using ...
-1
votes
0
answers
31
views
The server was successfully reached, but it cannot find any data or endpoint at the specific URL path provided (/api/auth/check) [closed]
AxiosError {message: 'Request failed with status code 404', name: 'AxiosError', code: 'ERR_BAD_REQUEST', config: {…}, request: XMLHttpRequest, …}
code: "ERR_BAD_REQUEST"
config: {...
-3
votes
0
answers
46
views
Openlayers Static image [closed]
Client wants to use static image of the world without connecting to the tilserver.
We prepared the image (8192*5461)
And during point mapping we noticed that mapped points are way off
(Example: Japan ...
1
vote
0
answers
34
views
Intermittent JavaScript event delegation stops working after DOM mutations
I’m facing a difficult and inconsistent JavaScript issue related to event delegation that appears only after certain DOM mutations, and I’m trying to understand the root cause rather than applying a ...
-1
votes
0
answers
26
views
container and container-fluid not spanning full width [closed]
I used className="container" in React to wrap my elements, and I expected it to take the full width of the page with just a small padding on the sides. However, I noticed that the content is ...
0
votes
0
answers
42
views
Odoo computed field not updating when dependent field changes
I created a computed field in my custom module:
from odoo import models, fields, api
class SaleOrder(models.Model):
_inherit = 'sale.order'
total_discount = fields.Float(compute='...
-4
votes
1
answer
51
views
What is the meaning of "Error [ERR_REQUIRE_ESM]: require() of ES Module [...] not supported."?
I am using NodeJs to try and import the following package into my sheet:
const { GoogleSpreadsheet } = require('google-spreadsheet');
I get the error:
"Error \[ERR_REQUIRE_ESM\]: require() of ES ...
-3
votes
0
answers
33
views
Uncaught TypeError: Cannot read properties of undefined (reading 'trim') for jquery.min.js [closed]
What could this error be related to?
Uncaught TypeError: Cannot read properties of undefined (reading 'trim') for jquery.min.js
On my site it's not displaying map (Mapbox) and there is issue with ...
Best practices
1
vote
1
replies
19
views
What Programming Pattern to use for a generic HTML table data extractor
Problem Summary: I am trying to create an easily-readable and -usable function to allow for a custom filtering of the columns of data extracted from an HTML table using vanilla JavaScript (maybe ...
1
vote
1
answer
109
views
How do I dynamically get the number of characters in an HTML heading or paragraph element in CSS?
I'm trying to create a dynamic 'word processor/typewriter' effect on my webpages for specfic sections (code explanations).
I have created the following:
<!DOCTYPE html>
<html lang="en&...