1,185,882 questions
-3
votes
2
answers
74
views
JavaScript variables sent to PHP via fetch API and XHR POST synchronous methods do not appear in POST variables on server side
My goal is to have the user be able to submit data in a form, which can then be processed and modified in PHP and the output could be displayed without refreshing the page. I have found two ...
0
votes
0
answers
44
views
HTML Validation Extension in Visual Studio Code reports invalid figure but it should be fine?
I use Visual Studio Code and the site is still not online, but almost finished.
I'm a great fan of accessibility, so I use for example figure elements like this, i.e. with role="group":
<...
Advice
0
votes
3
replies
66
views
'Recipe Book' in javascript
I know little to no javascript - only how to make functions and variables - so I'm hoping someone will help me script this. Pretty much, i want a control panel with previous and next page arrows ...
Advice
0
votes
3
replies
49
views
Do `setCustomValidity()` and `checkValidity()` supersede the need for external libraries?
I was recently drafting up a webpage and was thinking about supplying some custom error messages. I discovered setCustomValidity() which allows you to supply a custom error message. I subsequently ...
1
vote
2
answers
110
views
Need to disable the submit button if both fields are invalid
I am trying to disable the submit button on a boostrap modal form until both addhostname and addipaddress fields are valid. I have tried multiple ways to detect the validity state of the addipaddress ...
Advice
0
votes
6
replies
90
views
How l could retrieve or see unsaved edits in local browser html file that were gone due the html file not being auto saving
I wanted to create an interactive artifact with Claude, and I asked it, since I do not have any knowledge of code, to create an HTML document that I could fully edit and save directly in the file by ...
-5
votes
0
answers
109
views
JS issues. Is my response handling logic flawed here? [closed]
I am building a simple CRUD reference project using HTML, Bootstrap, and the Fetch API.
I currently have separate pages for GET and DELETE operations. The GET request loads data correctly into a table,...
-9
votes
1
answer
145
views
Calling a JS function in HTML twice [closed]
I'm trying to call this JavaScript function twice in HTML (Hyper Text Markup Language)
My JavaScript code below
function test() {
const scoreDiv = document.getElementById('score')
let score = ...
Advice
0
votes
1
replies
128
views
Displaying a JS variable
How can I display a JavaScript variable for example x = 20 in HTML
the goal is to make a variable in JavaScript for example score = 1 and then show that on a webpage using HTML and be able to update ...
-1
votes
1
answer
75
views
HTML Footers And Page Numbers For unknown count of pages (dynamically generated data)
I am converting crystal reports to html, but I am facing an issue with the footers.
I cannot set the footer to the bottom of every page that is generated or printed. The layouts (e.g. tables) will be ...
Advice
0
votes
7
replies
141
views
Coding scripts for Cuberealm.io
I am very new to coding, and I am just now learning HTML, CSS, and JavaScript.
Right now I am trying to make a script/hack for a Minecraft-based browser game called "Cuberealm.io" https://...
-1
votes
0
answers
114
views
VSC Format on save only works on PHP files [closed]
I have set Editor Format on Save to true. My PHP files reformat when I save them but my HTML, Javascript files do not. Do I have to use some other setting to get them to format on save?
The ...
-2
votes
0
answers
47
views
Why is "flex" property not sizing the children elements proportionally? [duplicate]
My expectation: The .lower-card height should be 70px and .upper-card height to be 140px (because flex is set to 1 and 2 respectively and total height is 210px).
Reality: Problem is that my padding is ...
-1
votes
0
answers
117
views
CSS step-animation frames start stacking on top of each other on nearby hover in Chrome/Edge [closed]
I am facing an issue with a pure HTML/CSS text-typing animation sequence built using stacked, absolutely positioned layers. The effect works perfectly on Firefox and Safari, but breaks consistently on ...
-3
votes
0
answers
91
views
Vite app returns index page content from fetch request when dynamic import fails
I am trying to work with dynamic HTML imports in my Vite application.
I am using this pattern:
<html-include src="widgets/component-name.html"></html-include>
And then a ...