All Questions
9,326 questions
-2
votes
0
answers
21
views
problem with SQLite problem in Electron application [closed]
how are you? I'm a junior and I'm facing a problem in an offline desktop application developed with Electron.js, SQLite, HTML, CSS, JavaScript and Node.js. The application was made by third parties ...
0
votes
0
answers
39
views
I made a website for my conlang, and am having issues with multiple translations being displayed on pages [closed]
I created a conlang with my friend and we decided to make an online dictionary for it. All of the pages are dynamically generated using node.js, express, and handlebars. The data for the pages are ...
0
votes
1
answer
80
views
How to get filepath after dropping file?
I'm trying to build a React + Electron app that supports file drag and drop. The goal is for users to be able to drag files into a box, and for the app to retrieve the full file path from the user's ...
-1
votes
1
answer
65
views
HTML not rendering when returned by AWS Lambda function
I'm currently attempting to serve a very basic static webpage when a lambda function is invoked through it's function URL (not through API Gateway). However, when I return the response for the request,...
0
votes
1
answer
45
views
How can know new token(smart contract) except https://www.defined.fi/new? [closed]
I want to get name lists of new token more faster than Defined.fi/new
I am knowing just Defined.fi/new.
but more than faster, which web site or scrape tool do I have to use ?
For new token listing, I'...
0
votes
1
answer
131
views
Deployment, and vercel issue cannot login or register
I just want to know your thoughts about my problem, because I hosted my web app on vercel, then the deployment or hosting is ok as long as it opens on other devices. but my problem is, on my localhost ...
1
vote
0
answers
95
views
CSS Anchor Positioning Polyfill not handling position fallbacks
I added the Oddbird Css Anchor Positioning Polyfill Oddbird Css Anchor Positioning Polyfill for use in Firefox and it seems to be working nicely.
index.html
<!DOCTYPE html>
<html lang="...
1
vote
1
answer
73
views
Error: Error: Node is either not visible or not an HTMLElement
I need help locating the freeriderhd.com HTML login element because in my code it says: Error: Error: Node is either not visible or not an HTMLElement
Basically I need help inspecting the page and ...
0
votes
0
answers
15
views
ExpressJS readdir not allowing for update of variables [duplicate]
I have been trying to use a for loop and readdir to automatically list all files from a specific directory, but whenever I try to, the variables CollectionsHtml and mdFiles are seemingly out of scope ...
-4
votes
1
answer
59
views
When fetched, date is shows as one day behind. The DB has correct data stored [closed]
I have a Node.js and MySQL project. The user inputs the date from a dropdown and submits the form. In the backend, I see proper date but when I fetch it, its 1 day behind. I've read that it might be a ...
2
votes
1
answer
63
views
Error fetching repositories: HTTP error! status: 401
So, I developed a portfolio website that fetches repositories and details from GitHub and send it to my website. While using localhost everything was working fine but as i deployed the code in Vercel ...
0
votes
1
answer
37
views
Multer in node.js not returning a readable upload into backend folders/files
I am currently using multer to submit a profile picture to the folder "pfps" for a school assignment, which should create a file that is the same as the front-end. However, it creates a file ...
0
votes
1
answer
43
views
EJS Syntax issue Could not find matching close tag for "<%-" in node js
I am creating dashboard where I have created a layout for sidebar and different pages of sidebar have different content.
here is the layout.ejs:
<!DOCTYPE html>
<html lang="en">
&...
0
votes
1
answer
25
views
After using taskkill, Node.js server isn't working anymore
I'm facing an issue with my Node.js server after using the taskkill command to terminate a process running on port 3000. Here's the problem and what I've tried so far:
Problem:
I was developing a Node....
0
votes
1
answer
53
views
NavLink in React JS not working as expected?
So, I am working with ReactJS. In the Sidebar I used react-router NavLink component, but when I am working with nested routes it is not working as expected.
<li>
<NavLink
...
-1
votes
1
answer
42
views
How to generate a pdf using the print view using js [closed]
Okay so i have a webpage that is different when i click print. I can save the page to pdf using the print function. This looks good.
The problem is, i need to do this using js. I have a button (...
1
vote
1
answer
54
views
NodeJS Graphviz - trying to add image as label throws Error code 1
I am attempting to use an image as a node in Graphviz. I am using the npm grapghviz project to do this. However, despite numerous tutorials stating that you can do it via the menthods I have outlined ...
-1
votes
1
answer
32
views
Calculating page document size for a URL in bytes
I wanted to create an function/API in node which will help me calculate the desktop and mobile page sizes for a given URL and also provide the compression/encoding strategy which was used by the ...
0
votes
1
answer
41
views
How to extract the directory (e.g., es/ or pt/) from the pathname to dynamically update the heading in a custom web component?
I am working on a custom web component and want to dynamically manipulate the heading in my Carousel component based on the directory in the URL pathname (e.g., es/ for Spanish or pt/ for Portuguese).
...
0
votes
0
answers
37
views
How to broadcast a video stream without reloading the page?
I created a Node.js server to:
Receive images in udp and transform them into video and
Display it on a website
I tried but I don't understand how to broadcast the video live without having to reload ...
0
votes
1
answer
33
views
I want the modal window to display an error message before closing
router.post("/login", async (req, res) => {
const { username, password } = req.body; // Formdan gelen veriyi al
try {
const request = new sql.Request();
const result = await request
....
1
vote
1
answer
49
views
video using MediaSource API showing unending loading screen
I am trying to build a small streaming project using the MediaSource API.
I have a segmented video called earth into 6 segments of around 6 seconds each.
With the current project structure
vids/
...
0
votes
1
answer
65
views
When I click on the login text, I am not directed to the "/login" page
When you click on "Login" on the home page, a login window opens in the middle of the screen, but there is no redirection to /login. Why?
I want the login window to open and be directed to /...
0
votes
1
answer
48
views
How to better append html response content to a Node.JS pug template?
My Node.JS app makes an external API call which returns markdown response. I then use https://github.com/showdownjs/showdown toconvert it to HTML and append it to a scrollable list in the following ...
0
votes
0
answers
41
views
How to call a handlebar partial from href html
I have a partial template and when I call it from ****<a class="navbar-brand" href="{{> Golfers }}”>Golfers</a>**** it is displayed automatically in the page, should I ...
0
votes
0
answers
28
views
How to click to list items through Puppeteer node js
I am trying to log in to my university's LMS through Puppeteer to scrape data. When I enter the dashboard, I try to click on the list item button, but it does not work. Here are the 12 list items' ...
0
votes
1
answer
92
views
how to construct an array on server that is passed to client as part of a script.JS file
I'm trying to build a small single page web application. the application has the basic index.html script.JS and style.CSS files. The body element (in index.html) sets up a button and an empty ...
0
votes
0
answers
53
views
Generating an Image URL using html-to-image, canvas, and jsdom not working
I'm trying to generate an image of simple HTML document using SVG's but even this simple example errors out with "Unsupported image type."
I do not want to use puppeteer or any headless ...
1
vote
1
answer
52
views
Paragraph textContent disappear after flashing its value momentarily
I am learning how to handle files with multer, to do this i wrote a simple code that takes the uploaded file, parse it to an api that retrieves the the data from the text file and returns the said ...
0
votes
1
answer
67
views
API call in js to return image
I am working on js web app and it is my first time working on any js app. After calling an API web app is not showing any image on overlay screen but the API is returning an image.
Html code
<input ...
1
vote
4
answers
94
views
Unable to use require() or import from Node.js in html website
I've tried to figure out how to do it and I give up. I'm trying to code something that allows users to visit my github website and type into a textbox, then the website stores their output into a text ...
0
votes
0
answers
31
views
quilljs formatting doesn't work after loaded on page
I'm having an issue where after quilljs html code has been loaded from database works as regular paragraph.
This is how example in database looks:
This is how it looks on page where I'm creating that ...
0
votes
0
answers
34
views
Correct way to Middleware with NodeJS, ExpressJS, Tokens (Login & Dashboard)?
Hope your'll fine. We'll I have a problem using NodeJS, especifically with a Middleware, in my case it supposed to have a Dashboard with two cases:
If user try to go /dashboard without login -> ...
0
votes
1
answer
72
views
Node.js Express app not rendering HTML file; only shows a blank page
Body: I am developing a simple Node.js application using Express. My goal is to serve an HTML file located in the views folder, but when I access the page, it shows a blank screen without any content.
...
0
votes
0
answers
53
views
How to fix the "preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header" warning on my express app?
I'm making a second hand bookstore website that uses Aiven as the database and Vercel to deploy. It's rather simple because it's a school project, and it uses vanilla JS. I am trying to fetch some ...
-2
votes
2
answers
153
views
How do I write a currency symbol other than $ in html document using the vs code editor [duplicate]
I was writing an html codes for online shopping and i needed to include a currency symbol other than the default $ option because it's going to be in another form of currency and not dollar. currency ...
0
votes
1
answer
119
views
React Audio Player Change current time of Audio
I'm working on a custom audio player in React with Bootstrap, and I want to make it possible to fast forward or rewind the playback by 5 seconds.
I also want to be able to change the time using a ...
1
vote
0
answers
28
views
Trying to setup HTML, Javascript, D3 work environment
I am currently trying to teach myself D3 so that I can create some cool data visualizations, however, I am having difficulty getting past the beginning setup. I would be incredibly grateful for any ...
0
votes
2
answers
74
views
"Images not loading on Vercel deployment but work on localhost"
I have my Node application deployed on Vercel: node-demo-ashen.vercel.app. The problem I am encountering is that on localhost:3000 the images are loading fine, but my images are not loading on Vercel. ...
-3
votes
1
answer
59
views
Application generates HTML error "Unexpected token '<'" when setting the src attribute to a js file
I'm trying to use a .js file that is set using the src attribute in a script tag in an index.html file. The application is using Node JS to launch the server and serve up this index.html file. The ...
0
votes
0
answers
38
views
Old Iteration of index.html Loading Over New
Every time I try to redeploy to my site and make changes to my index.html it shows the new version for a split second and then loads the old version. Here is a list of things I have done to fix it but ...
0
votes
0
answers
20
views
Express Js code showing 404 error. Building a website so that it takes a correcct password and displays another page. but i click submit and get 404
I am trying to learn Express Js. I had been trying to build a website in which upon typing the correct password, another webpage called 'secrets' containing some info would be displayed. If the ...
0
votes
2
answers
128
views
How to display API response in HTML
While I fetched the data successfully, I cannot manage to display the data to an HTML efficiently.
The only way that that it works(how far I've gotten) is with two endpoints. Where one endpoint is to ...
0
votes
0
answers
31
views
Mongoose findByIdAndUpdate() Casting Error When Updating Posts with HTML Content
I'm currently learning Mongoose and ran into an issue with the findByIdAndUpdate() method. I have a form where I enter data, and this data is stored in a MongoDB database using Mongoose. Everything ...
0
votes
1
answer
66
views
How to open folder in explorer onclick of button in Electron?
How do I open a folder in explorer onclick of a button in my electronjs application? I got it to work by making it where it is executed at program start in the main. But id i make it a function and ...
0
votes
2
answers
76
views
UIncaught ReferenceError: db is not defined at HTMLButtonElement.<anonymous> (VM586 editor.js:66:9)
I'm building a blog website using Firebase Firestore and JavaScript. I'm trying to save blog posts to Firestore, but I'm encountering an issue where db is not defined when I attempt to use it in my ...
0
votes
0
answers
36
views
-webkit and -moz missing after compiling bootstrap5
I am trying to customize bootstrap5. as a start I created scss file
@import "../node_modules/bootstrap/scss/bootstrap";
when compiled using live sass compiler and compared with original ...
0
votes
1
answer
323
views
How to use require() in React
I'm new to React.
I was wondering how to read and write to JSON file and most people use require(fs) etc...
I know that require is not standard browser function (or Reacts) but I'm confused how to ...
1
vote
1
answer
106
views
How to resolve Cannot find name 'NgxMatDatetimePickerModule'. Did you mean 'MatDatepickerModule'?
I am migrating my project to Angular 18.1 from Angular 9.1 but I'm facing the Cannot find name 'NgxMatDatetimePickerModule'. Did you mean 'MatDatepickerModule'?ts(2552) error in AppModule
I think the ...
0
votes
1
answer
296
views
How do I get a Vimeo video thumbnail from the Vimeo API?
If I have a Vimeo video URL, is there any way to get the associated thumbnail from the Vimeo API? Like in Youtube, I use "https://img.youtube.com/vi//default.jpg"
I tried to find a way to ...