Category "html"

Very strange behaviour of a post request using CLI vs Browser

I am creating a very silly login system for a LAN. I was so far just testing with CLI requests before writing the frontend. Now I have both. I am logging the pa

MIME type ('text/html') not a supported stylesheet MIME type, and strict MIME checking is enabled in Django Web Application

I am hosting a Django web application on a cPanel web hosting server. I have the application up and running however it is not applying the CSS stylesheets to my

How do i center this columns with the content floating to the left?

I would like the two col's to be centered if I have a window larger than 1024pix width and be responsive. I've tried a few things, but unfortunately I'm no long

Javascript adding a new event listener on local object

I have a script below, where I dynamically create an Element Node of type 'li'. This addMovieHandler() is called whenever the user clicks on a button. Additiona

Can not add background image

I am trying to provide the background image to a div. Image is in my directory <div style="background-image: url('H9Vi61CWym0.jpg');"></div> but i

Django Quill Editor Display Saved Field

It's probably really simple, but can't figure out how to do that... I have one really simple model: from django.db import models from django_quill.fields import

Can not add background image

I am trying to provide the background image to a div. Image is in my directory <div style="background-image: url('H9Vi61CWym0.jpg');"></div> but i

Live Server extension is not auto-reloading with WSL2

I'm having an issue with the Live Server extension for VS Code (https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer). I'm using WSL 2 for

Count to numbers above a billion in a few seconds without browser freezing

I am trying to make a counter that counts to big numbers such as 6 billion (like google's random number generator) but the browser freezes. var counter = docume

How can I update time by condition?

Hi everyone please i need you're help. What i want is when the input field is updated with this value: Résolu --> update column date with date now. I

How to create registered html5 custom element with javascript with IS property and have it run connectedCallback() successfully

Let's say we have an html5 custom element that extends the HTMLAnchorElement and goes by the name 'custom-a', then we insert it directly in the html like this &

How do I prevent Edge from showing the visual search icon when users hover over an image?

Microsoft Edge (v100.0.1185.29) seems to have recently added a new hover icon(visual search) to all images over a certain size on a webpage. This option is also

I cannot create a auto generated date time in mysql workbench

I'm trying to create an auto-generated date-time using MySQL workbench, timestamp seems not working This is the error Operation failed: There was an error whil

How to render user profile (actual image) instead of filename in a Django form which basically update user-account

I am following a Django course on youtube, and I need a small change in my Django form. The form looks like: Rendering the form fields in 'edit-user.html' temp

Why doesn't load data into my collection? mongodb

This is what appears on my mongo database: This is my app.post to insert the data, when I Submit it console.log the object with the dates but with create It ju

How to fix setTimeout() when appending to document

So I have a thing to show when a user is typing in my website but I want the typing... to show the dots slower rather than instantly right now I have my current

Fill PayPal order script using onOpen() function

I'm trying to implement the PayPal SDK on my site, and thought this should work: <body onload="writeOrderCode()"> The JS file with this function was load

Button onclick not Working Till Page Reload

I have A Very Small Application That add tasks to the page and save it to local storage so if i reload the page or close it everything will be at its place, the

Problems with the attribute "placeholder" of an <p:inputText tag when the value of the inputText is empty

I am using JSF Mojarra 2.3.9.SP02 with PrimeFaces 7.0 running on Wildfly 17 with the PrimeFaces's own Sapphire template. I have a severe problem with one <p

How to limit the the input values for HTML to just values in a predefined list?

I need to deploy one of ML models as a web application. I am working to use HTML to get the input data and pass it to ML model for a live prediction. One of the