Category "html"

How to execute sql code based on fetch array

I have a search engine that I found on google and I would like to search in the 'barcode' database that I have and if it finds the person it executes the code t

How to fix " Uncaught TypeError: Argument 1 passed to JpGraphException::defaultHandler() " problem in php 7.1.3 and jpgraph 4.2.6?

I'm working on a graph with a Satisfaction form with a database with jpgraph and I've encountered some issues with an handler error. This is my program: <?

Open Graph data does not display on Discord

I was browsing my websites and i have noticed that the Open Graph data on one of my sites was no longer displaying on discord. I have tried to change <meta p

Autoplay embedded a YouTube Video

I'm trying to embed a Youtube video to my site that plays automatically once the page is loaded. I'm currently using: <iframe width="560" height="315" src="h

CSS won't load in hbs file for some reason

so I have a very basic file structure going but for whatever reason I cannot get the css to show up in the project when I run it on the localhost. everything el

Is there a way to prevent basic auth from popping inside iframe other than white list?

I'm looking for a way to forbid basic auth from popping inside an iframe and the only option I see is the creation of a white list inside the CSP but it doesn't

why is live-server injecting these javascript codes

I'm trying to create grid layout but live-server is injecting these codes in webpage... // <![CDATA[ <-- For SVG support if ('WebSocket' in window) { (

Is possible to hide scrollbar on mobile for webpage?

I'm trying hide scrollbar on mobile. Everything looks well on desktop (no srollbar), but when I check on some android device (ipad) - I can still see grey, thin

UI changes not persisting in ASP.Net application

I have a table that's hidden by default. When clicking the search button, I'm using jQuery to remove the d-none class and show the table. <input type="submi

I'm using pure JavaScript but I continue to get errors that end with "is not a function". How do make it so I can detect words and reply accordingly?

I want to detect a specific word or multiple words within the user's entered text and reply accordingly. I plan to add more words to detect but for now I've bee

window.addEventListener('load',... not firing on Safari?

I need redirect page after it load and get param from URL. I can do by button click. But I want redirect page automatic (without user input). I am use window.ad

Create Dynamically table and save data in database on django

if i'm Create Dynamically table using jquery this is working This is my .html file code. <!DOCTYPE html> <html> <head> <title>test

Repeat a python function on its own output

I made a function that scrapes the last 64 characters of text from a website and adds it to url1, resulting in new_url. I want to repeat the process by scraping

Adding JS function to onClick event

I am currently trying to make three buttons that will call the same function, but will result with three different outcomes. This is what I have so far: html &l

Props are not passing from parent to child components in React Functional component

Hi developers I'm just a beginner in React.js. I tried to print props by passing from parent to child. This is app.js file import React from "react"; im

Play audio on image hover in HTML (multiple images)

This is my first attempt at audio in HTML. So I have a grid of images that have an overlay of text on them, and I want the audio to play a different sound on ho

Error Uncaught TypeError: e.target.className.indexOf is not a function at HTMLDocument.mouseup (translator.js:433) in angular

I have one modal bootstrap, when i click in one svg to edit my data i receive: Uncaught TypeError: e.target.className.indexOf is not a function at HTMLDoc

How to identify whether website is accessed from same hosted server or different client machine

We have a website hosted in local intranet environment using Python webserver. In that website particular button should only be visible if user is accessing thi

Move input field on top of span

I've a span as a label for my inputfield. The label goes above the input field when selected. My problem is that when you try to click on the input field, the l

Can I send a database in a zip folder with mantaining the connection between the database and the php file

I want to send a folder that contains my HTML code, CSS, js and PHP. how can I include the database and keep the connection between my files and the database?