Category "html"

Easiest way to calculate area of drawn polygon with google map

Javascript/google maps beginner here. I am looking for a simple way to calculate the area of a polygon the user draws on the map. Code Snippet: function

To set the value to a (textbox) server control using jquery ajax

In the below mentioned code, I am able to set the value attained from ajax call only if I am using the HTML controls(button and text). If I am using asp server

How to set lang attribute on html element with Nuxt?

Using the file nuxt.config.js file, head contents can be customized to add some meta, or other things: module.exports = { /* ** Headers of the page */

HTML TextArea resize automatically

I would like to have a text area which is always as big as the text in it. So the page can be scrolled and in the text area cannot be scrolled. Here's what I di

How to download a file from http using C?

I spent the last days trying to figure out how to download a file from an URL. This is my first challenge with socket and I'm using it to have an understanding

Toggle between a textbox and a select using PHP

I have a basic customer information form that I would like to make a little more interactive. The idea being if the user selects a country that is not USA or C

How do I refresh a DIV content?

<div id='here'></div> I am trying to refresh a certain div within a bunch of divs. The div content is basically generated by PHP along with data f

How to keep user's scrolling place when resizing div

I wanted to do a cool menu effect for a website I'm working on. I'm having a div act as the the section for the main content. When the user opens the menu, the

Ascii/HTML character code doesn't work within React variable

I have the ascii/html code of a checkmark: ✔ &#10004; In react if I go: <div>&#10004;</div> then it works. but if I go var str

Can I call a JavaScript function inside a <link> tag href?

I have a CSS file I need to load with an included version: <link rel="stylesheet" href="../assets/css/jquery-ui.css?="+getVersion()/> where getVersion

How would I implement image track settings

At https://developer.mozilla.org/en-US/docs/Web/API/MediaTrackConstraints there is a section called “Properties of image tracks.” How would I adjust

Link text color not changing after being visited

I'm working with HTML and CSS, and am trying to write a link that directs the user to a new tab. I want the link color change to a specific color I want after b

HTML table with 100% width, with vertical scroll inside tbody

How can I set for <table> 100% width and put only inside <tbody> vertical scroll for some height? table { width: 100%; display:bloc

Slick slider issue: displaying thumbnails in vertical columns

I'm using Slick slider and am trying to display the thumbnails as shown in the image below (2 images a row). I used the 'rows: 10' and 'slidesPerRow:2' function

How to animate CSS ::backdrop behind HTML <dialog>?

The <dialog> element is now cross-browser compatible (since March 2022). I tried my hand at it today and familiarised myself with: HTML <dialog> Ja

HTML + JavaScript custom player for multiple videos on a website page

EDIT: I have found the solution, posted and marked as the best answer below. I'm coding a portfolio website for myself using HTML, CSS and JS and I need to add

How can I get the values of data attributes in JavaScript code?

I have next html: <span data-typeId="123" data-type="topic" data-points="-1" data-important="true" id="the-span"></span> Is it possible to get the

Which Captcha or related is easy to is install on form?

I am a newbie to programming and I already struggled a lot for a week to have a fully functional form that validates, stores data, and then redirects. Please le

Valign not working in Outlook HTML Emails

So I've been wrangling all week with a newsletter redesign for my company, tweaking the html to make it display semi-consistently across email clients. I've mad

Micro frontend architecture advice [closed]

We have several web applications that we wish to present under one single page application. We are looking for a micro-frontend architecture/f