Quantcast
Channel: Active questions tagged html - Stack Overflow
Browsing all 67527 articles
Browse latest View live
↧

Printing out $GLOBALS using foreach

So I need to print out bunch of pre-defined globals on my page. I try using:<?php foreach ( $GLOBALS as $key => $value ) { ?> <dt><label for="<?php echo $key...

View Article


Div click event when div is inside a form

I have troubles to show an alert when a button (actually an input type=image object) is disabled because user should first to click on a terms checkbox. This is my jQuery...

View Article


Bootsrap 4 display utility correct usage

According to the bootstrap documentation, to use the visibility utility provided from the framework it's necessary to use the d-none to not display an element or the d-* with the relative breakpoint to...

View Article

Image may be NSFW.
Clik here to view.

iframe in Firefox showing white border around page slides

iframe now renders the pages of a pdf with a small white border. White border around page slides exampleThis only seems to be happening in Firefox, but not Chrome. On the deployed website, this problem...

View Article

How to loop a specific file in HTML?

I would like to know if it's possible to loop only a specific files like video/mp4? In the folder I have also multiple files and sub-foldes and the html load every elements.{% for file in video_files...

View Article


what to write in data parameter of JS ajax call

The goal of my project is a website that can show a list of addresses that updates without refreshing which means I have to use AJAX. I hope to include Javascript. the current code I have is the...

View Article

CS0012 The type 'MvcHtmlString' is defined in an assembly that is not referenced

@Html.PagedListPager(Model, page => Url.Action("Index", new { page, sortOrder = ViewBag.CurrentSort, currentFilter = ViewBag.CurrentFilter })) This throws an error:CS0012 The type 'MvcHtmlString' is...

View Article

Problem with pagination and sorting a table

I made a Javascript table with pagination. The pagination calls a LoadFunction in js file that, of the collection of items that I have, I take the results and show it.So, If I load the page and click a...

View Article


print calendar vertically using jquery

I was trying to print calendar vertically like this1 8 15 22 29 2 9 16 23 30 3 10 17 24 31 4 11 18 25 5 12 19 26 6 13 20 27 7 14 21 28 I tried below code var x = 1; var $tbodyTr =...

View Article


Show box-shadow through transparent object (div)

I'm working on a css3 3D page and i want to show the shadow through a transparent div but i can't get this to work... I can't use a span or anything because it needs to be the same object because of...

View Article

How to make event.target refer to a div and all its children?

How can I make event.target work for not just the div given but also all it's children? The best I can come up with is to either:1) list all children in the event.target function ie:...

View Article

Datatable undefined error obtaining row data

I'm having an error getting the data of a row in Datatables and I can't figure it out why it's happening.Reading the Docs, getting the row data it's as simple as:var table = $('#example').DataTable();...

View Article

JS: slideDown and slideUp flex elements without using jquery

I try to implement a slideDown and slideUp function without using jquery.Here is a simplifyed fiddle of my HTML. https://codepen.io/michaelkonstreu/pen/eYmOmMXYou can use hideElement() and...

View Article


Detecting that the browser has no mouse and is touch-only

I'm developing a webapp (not a website with pages of interesting text) with a very different interface for touch (your finger hides the screen when you click) and mouse (relies heavily on hover...

View Article

Stopping form from submitting until all dropdown boxes are completed

I have created an HTML form that is generated from a PHP script. The PHP script outputs an HTML dropdown based on data held in a database. The number of dropdowns being displayed on the page varies as...

View Article


Prevent Javascript (jquery) function from applying to all items with the same...

I have an image upload drag/drop box that that accepts and previews uploaded content (no auto upload until form is submitted). this upload box appears more than once in a page and it works fine but...

View Article

DataTables Invalid JSON response v2

json data comingdata coming from database javascript functionfunction fetch_data() { var dataTable = $('#Acc_data').DataTable({ "bPaginate": false, "info": false, "processing": true, "serverSide":...

View Article


Image may be NSFW.
Clik here to view.

datepickertime jquery/bootstrap not displaying properly

I'm trying to get a datetimepicker, this is my refs:<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.13.0/moment.min.js"></script> <link...

View Article

Using Javascript with HTA

I would like to know if I am able to use plain JavaScript with HTML applications. I have tried making a simple application, but I get an error when opening the HTA document. The error states "Object...

View Article

Opening one accordion pattern closes the other one, how can I disable it?

I'm writing a code with accordion patters and I've run into issue where closing and opening one of them automatically closes the other one. I need all of them to stay opened until user clicks to close...

View Article
Browsing all 67527 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>