Questions tagged [html]

276681 questions
1

votes
2

answer
2.1k

Views

Yii2: How add a symbol before and after an input field

How can I add a symbol before and after of an input text? Just like the image attach. My code: SOLUTION I modify my code following ActiveForm documentation and it works! Code modified:
Alexandra
0

votes
1

answer
35

Views

Calling JavaScript function from another page

I am having an issue calling form() from my dropdown. When I check the source, it shows the assist/form.js is being seen from the web-page. I have copied and paste the form() the from page to the main page. Here is an example of my Code. main page: assist/form page: function form(type) {...} Error I...
user8776656
0

votes
1

answer
28

Views

Moving Button to the right

I have a HTML Page with a CSS. I used the form with the to make some buttons and want to align them to the right. Even though in the normal HTML pages without this CSS template, the button would move to the right, it does not work anymore. Same is the case for similar buttons on the page. Align to t...
Arun Sharma
0

votes
0

answer
27

Views

Pull data from database using AJAX on html form multi select

I have 3 columns in my database table, viz. name, category, city. Here is the link where the form is located : http://sms.thetelityellowpages.com/sms/send.php There in category and city are multi select fields which are being pulled by database. Now the actual issue is that when I select 2 categori...
0

votes
1

answer
18

Views

how do i display website comments above the last posted comment

hi on my website i've a comment box, everytime i post a comment it get posted below the last comment my question is: how do i place new comments on top of the old ones. website: kru.run This is my full code right now, var titles = []; var titleInput = document.getElementById('title'); var titleInput...
kru
0

votes
0

answer
17

Views

Why is iOS not showing keyboard for input after js has unset a readonly tag?

I have a text field in HTML form set to readonly. Upon entry javascript should test if the field is currently being edited by someone else, if not the readonly will be set to false and editing of that field is allowed. For this I have used the onFocus() event. This works fine in Chrome and Firefox b...
2x2p
0

votes
1

answer
16

Views

setCustomValidity() not working in Chrome browser

I've got a problem when I'm trying to set custom message in my input: It's working on Firefox browser but on Chrome oninvalid is ignored and it still displays custom message. I've found one topic about version of Chrome HERE, but I have version 74. It's possible they still have not fixed it?
Marshall
0

votes
0

answer
18

Views

Dynamic Header works just on index.html

I'm building a website that's having a header with a function(if I scroll down it makes the header smaller). Problem is that on index.html it works properly but on my second-page in,t working. And to create the second page I just copied the first page and added some extra content. Does anyone know w...
DConstantin
-2

votes
0

answer
15

Views

: Undefined variable: FILES of image, PHP [duplicate]

This question already has an answer here: “Notice: Undefined variable”, “Notice: Undefined index”, and “Notice: Undefined offset” using PHP 28 answers HTML & PHP - Undefined variable: FILES to upload file [duplicate] 4 answers I'm trying to make an admin page for a website, when in thi...
roudy rahme
-3

votes
0

answer
15

Views

How can I extract all the results which a form gives on a web page? (In this case I know that there are a total of 60 results)

http://www.shikharclasses.in/ This is the website I wanted to do this from. There is a form on the right hand side of the web page. Titled-(Shikhar Entrance Exam - April 2019 Result). If you put the roll no as '1532' and the name as 'Shreshth Goyal' and the mobile no as '(any 10 digit no)' It will g...
Shreshth Goyal
0

votes
1

answer
14

Views

Make (Dynamically Generate) Textarea Attribute Autofocus & Required

I was trying to make the textarea generated dynamically autofocus when clicked it's parent Div. But it is not working. The same happens with required and maxlenght. I appreciate any help :) I try writing in the tag autofocus, required and required='required'. And therefore in JQuery I used focus() a...
0

votes
0

answer
4

Views

Getting DOMException with playing video onload

I want to play a video when the website is loaded. For that I am using the following code: window.onload = function webisteLoaded() { var main_bg_video = document.getElementById('main_bg_video'); main_bg_video.play(); } Your browser does not support HTML5 video. Additional info: I import the s...
Filip Degenhart
0

votes
0

answer
4

Views

saving csv file to server - seems to have (squares) limitation on saving

I'm saving data to my server using a CSV format (writing in javascript and html). and it seems that the server stops to write into the file after 1000 squares, while the number of rows\chars is not relevant (the file size is not the issue). the exact same code works for me just fine on a different s...
vill
0

votes
0

answer
3

Views

How do I increase the target size of a custom-checkbox in bootstrap 4?

I'm using forms inside list items in bootstrap 4 and have been using and a small event handler inside my form controls to make the entire clickable, instead of just the small label and checkbox. stretched-link increases the target to the nearest relatively positioned item. Unfortunately compared t...
joeforker
2

votes
0

answer
18

Views

BigCommerce CSS files does not load

I am using BigCommerce default theme Cornerstone, and created a CSS folder inside the assets, to load my custom CSS files. I have also added two CSS files there, and call it in template/layout/base.html file. Here is my code: {{{stylesheet '/assets/css/custom.css'}}} I also tried with CDN URL: It wa...
Jaydip Nimavat
1

votes
2

answer
442

Views

Parse text from HTML form inside table cell with Cheerio

I have a HTML table that looks like this: Text1 I want to get the value of the hidden input type named id_num. (In this example the value I want is 'ABCD123'). I tried to parse the code with cheerio like this: var $ = cheerio.load(body); $('tr').each(function(i, tr){ var children = $(this).children(...
Ford1892
1

votes
2

answer
860

Views

How to show something only on a certain screen size in bootstrap 4?

So i wanted to be able to show a image on a html on only md screens. I was thinking to hide the image from sm and down, and hide from lg and up. Anyway i can do this?
Leed
1

votes
3

answer
629

Views

How would I fix indentation on an font awesome icon? [duplicate]

This question already has an answer here: Text indent after the first line in a paragraph 4 answers How do I fix the indentation whilst using this font awesome icon as list to display advantages? This is my HTML: No upfront payment is required to access the solution. A Nominee and Supervisory fee...
Adam
1

votes
2

answer
456

Views

HTML Datalist shows extra options separated by horizontal line

I am passing 10 options to datalist which are displayed fine in dropdown. But sometime I am getting couple of more options separated by horizontal line at the bottom of option list(Chrome might be cacheing or displaying some option repeated). I am not able to get why chrome is showing these extra op...
Vivek Sanjay Tikar
1

votes
1

answer
334

Views

Javascript - How to change src of iframe when video ends

I would like to know how can I change the source of iframe automatically when video ends. I am using this script to generate iframe and the function onPlayerStateChange to detect when the video ends. I basically need to change the videoID after the video finishes playing. My JS: // create youtube pl...
Adam Šulc
1

votes
1

answer
737

Views

How to set a specific flexbox gap in CSS

I'm trying to achieve a flexbox layout with just one flex-grow element and a variable number of smaller elements around it. I need a gap between the elements that's a fixed width - exactly one pixel. Here's a diagram of what I want: The blue element grows to fill the space, but has a 1px gap in betw...
Jae Kwak
1

votes
1

answer
192

Views

how to extract href from <a> element using lxml cssselctor?

def extract_page_data(html): tree = lxml.html.fromstring(html) item_sel = CSSSelector('.my-item') text_sel = CSSSelector('.my-text-content') time_sel = CSSSelector('.time') author_sel = CSSSelector('.author-text') a_tag = CSSSelector('.a') for item in item_sel(tree): yield {'href': a_tag(item)[0].te...
elrich bachman
1

votes
2

answer
43

Views

Tiny space only on mobile versus desktop (stacking divs with pos absolute / css)

My goal was to stack two forms over each other so the outside borders aligned perfectly. I got it to work and look exactly how I want it to on the desktop site but viewing it on my mobile phone I noticed the 'red box' isn't exactly on top of the other one and is slightly higher. (Like no more than 1...
SCodeSK71
1

votes
2

answer
384

Views

What is the default ARIA role for an SVG?

I have been trying to determine what the default role of an SVG tag should be if the role attribute is not present and the document contains visible graphics. Using Chrome's accessibility tools it tells me that the role is SVGRoot: However this is not a valid ARIA role, it's one of Chrome's own role...
Godwin
1

votes
4

answer
87

Views

How to ouput desired data from a key in JSON if there are multiple keys

I want to output data of the lyrics_body key from the following URL.API Link But the JSON text on that URL is like that following. { 'message': { 'header': { 'status_code': 200, 'execute_time': 0.0047609806060791 }, 'body': { 'lyrics': { 'lyrics_id': 16894378, 'can_edit': 0, 'locked': 0, 'published_...
Nirzak
1

votes
1

answer
198

Views

Inverting colors with CSS Variables

I want to create a local inverted theme (modern browsers). Color shades are set using CSS Vars (CSS custom properties). Some elements have more contrast, others are low contrast. Now the inverted container has a black background. Everything within there, should be reversed. Dark grey should be light...
Frank Lämmer
1

votes
2

answer
2.6k

Views

How to change only the background image opacity? [duplicate]

This question already has an answer here: How do I give text or an image a transparent background using CSS? 28 answers Can I set an opacity only to the background image of a div? 8 answers Set opacity of background image without affecting child elements 14 answers I am trying to change the opaci...
MA19112001
1

votes
1

answer
248

Views

How to toggle audio play/pause with one button

I never really worked with javascript before, but I tried googling for a solution to how to make a play/pause button for audio - and I found what appears to be a good and simple solution on this site: How to toggle audio play() pause() with one button or link? (PS. I don't have reputation poins enou...
Erica Wyrdling
1

votes
2

answer
558

Views

Proper use of ARIA role for Google Maps [duplicate]

This question already has an answer here: What is a suitable WAI-ARIA role attribute for a map element 2 answers Which proper ARIA role should I use for Google Maps application?
Rainbowski
1

votes
1

answer
3.5k

Views

fixed header and scrollable body in table in html angular

In Angular i have a table and it should be scrollable. But header should be fixed. but while scrolling header is not fixed. please help
ruby
0

votes
2

answer
31

Views

How to pass multiple parameters as an object in url using react

I am trying to pass multiple parameters to my api (Koa) via URL (from ReactJS using Axios) to post data to my db. This code is working, but I am wondering if there is an easier way to pass data instead of typing out each value to insert into the database? I am adding an advising time to my db as suc...
gad74
0

votes
3

answer
21

Views

How can i push notification on my web app

i wanted to add a push notification system on my web app. Example : - one user is clicking on button of one website. - a second user is notified about the click like a push notification I tried a lot of things : Notification push with services workers but I am stuck when it is necessary to use his o...
Be Weria
0

votes
0

answer
22

Views

How to fix the Add function?

I'm doing a php based project and I did it using php, PDO. And I created the code with OOC. But There's a if else part in main HTML page. In that part the else part is running. But I didn't even click the insert button. When the page is loading the else part is running. Here's the code.. Insert.php...
Gagani Senarathne
0

votes
2

answer
31

Views

Fail to load resource error : the server responded with a status of 404(not found)

I'm creating a website to present a project, and I have to do a slideshow with several objects that can be seen at the same time. In order to do that I've planned to use this: https://kenwheeler.github.io/slick/ I've followed the tutorial and just tried to do a simple example to see how it works, th...
Léonard FONTAINE
0

votes
1

answer
15

Views

How to update a page with an external weblink, keeping the navbar fixed

We are trying to show some popular websites in custom page of ours. We added some buttons with relevant links, and when clicked on them it should redirect to that website, while being shown on the same page of ours. Is there any work around about it? Our approach was, to put a click event for each...
Sandeep Roy
0

votes
0

answer
13

Views

Is there an way to get responsive background image on my html div

I have an issue and can't solve it properly. There is a header with registration form, but I can't do background image responsive. I've read a lot of manulas but it doesn't work. Header phrase Register  SMS is here some text SMS will come after 60 sec. My css look like this: .background-img { backg...
NashGC
0

votes
0

answer
13

Views

shiny html full page bootstrap carousel

I am begining in styling shiny apps. I want to create a create a full screen slider into a tabpanel of my application for my landing page. According to this snippet https://codepen.io/nikhil/pen/RPOXya , here's my application. The carousel is empty. How can I solve this issues (perhaps the in...
Wilcar
1

votes
1

answer
2.5k

Views

Create a dockerfile that runs a python http server to display an html file

I have a directory with one simple HTML file (name: index.html) which displays some basic text. I run the python command: python -m SimpleHTTPServer 7000 to run a server, at port 7000, in the same directory to display the page in a browser. Now I want to be able to dockerize this process and need...
El Tikki
1

votes
1

answer
286

Views

Google Maps autocomplete suggestions not appearing

I'm trying to create an autocomplete for Google Maps in HTML and JavaScript, and I'm using a Bootstrap modal. But it doesn't show the suggestions. This is my code: Hello, world! Abrir mapa Modal title × Close Save changes function init() { var map = new google.maps.Map(document.getElementByI...
Diego Avila
1

votes
1

answer
277

Views

<script type=text/javaScript> vs <script type=module>

What is the difference between loading JavaScript files in HTML using and ?
Henok Tesfaye

View additional questions