Most voted "modal" questions
Modal is a feature where an element (usually windows or dialog boxes) interrupts all other executions of the application/site, until a certain action is performed in this element.
Learn more…324 questions
Sort by count of
-
16
votes3
answers246
viewsWhat is a modal?
I started to maintain a project that is not mine, in ASP.NET and C#. but I believe that it serves other languages as well. In some actions of buttons appears this term "modal" and I am in doubt of…
-
14
votes1
answer697
viewsHow does the <dialog> tag work? Does it have a future?
Some time ago, reading some articles on HTML5, I learned about the existence of the tag <dialog>. I was curious to know how it works, because currently when it comes to dialogues (also known…
-
11
votes3
answers5016
viewsForm validation in modal using Bootstrap
I have the following question. I have a simple record and I want you to tell me when registering a new record: If the field is empty it shows me the message "Fill in the fields"; If the form field…
-
9
votes2
answers568
views"Alert", "confirm" and "prompt" are considered bad practices?
Where I work some professionals do not like to use these features and said they are considered bad practice and were warned by other more experienced programmed not to use and end up replacing these…
-
8
votes3
answers923
viewswindow.showModalDialog does not work on Google Chrome, is there anything equivalent?
Good morning, I’m trying to open a modal on google Chrome... The current application already uses window.showModalDialog for years, it works in IE... I can not make the changes using the html 5…
-
7
votes1
answer1358
viewsHow to activate the modal through the option in a select?
Example: When I select the "Volvo" option, the modal appears... <label>Recinto</label> <select class="form-control" data-toggle="modal" data-target="#cria-recinto"> <option…
-
6
votes1
answer312
viewsPage Printing
Good morning, I wonder if there is any way to count how many times a given page (html) has been printed. I know we can count the times a modal was opened with the click of the button, in this same…
-
6
votes7
answers19300
viewsIncreasing modal size using bootstrap and html
I have a certain modal responsible for displaying some content of the site, however the content can not be adjusted to the modal screen, it always gets the same width regardless of the content ...…
-
5
votes2
answers868
viewsIs there a way to open an HTML page within a modal? How?
I have the following code that opens a modal: <div class="uk-modal" id="new_task"> <div class="uk-modal-dialog"> <div class="uk-modal-header"> <h3 class="uk-modal-title">{{…
-
5
votes1
answer7627
viewsDynamically Open Image in Modal Bootstrap
My intention is the following, after generating the list of images by PHP, I wanted that when I clicked on some of the images it opened in a modal dynamically, where I would pass the address of the…
-
5
votes1
answer695
viewsProblems with modal/boostrap
Hello, I have a problem on my site, I would like when I click on the modal button, it closes and opens the modal again(the following code is a summary code of what I need), in this code, when I open…
-
4
votes1
answer8275
viewsModal + form + values (bootstrap and javascript)
From the following link http://getbootstrap.com/javascript/#live-demo I created the following modal https://github.com/rg3915/front_end/blob/master/javascript/modal_form.html In the modal I fill a…
-
4
votes1
answer2601
viewsWhat is the difference between Show(), Showdialog() and Application.Run()?
I read something about modal but did not understand, someone could explain?
-
4
votes1
answer514
viewsPassing an object to a Bootstrap modal
I need to pass a database object to a modal when I open it to display the object information. Is it possible to do that? follows the cshtml of the view in which the modal button is called, it opens…
-
4
votes2
answers1979
viewsPass information to a Bootstrap Modal
I need to pass the id from a modal to my controller.php. In modal, when clicking the "delete" button I’m trying to pass via POST the id client, but controller receives nothing. Here I get the data…
-
4
votes2
answers1118
viewsWhat are the differences between Lightbox and Modal box?
I’m developing a system of login for a project and came to me the idea of putting the form in a "window to the center of the screen" superimposing the contents of the current screen. Researching…
-
4
votes1
answer1855
viewsSubmit form to a php script and open a modal as soon as it is submitted
I have a form that already validates the fields, but I wanted when clicking the send button to send the data to the file recebe.php and already opened a modal that I created. Follow the code on my…
-
4
votes3
answers20580
viewsClose modal bootstrap automatically when send form
I have a bootstrap modal whose same has a contact form: HTML: Thank you! Your form has been sent successfully and as soon as possible will be answered. <div class="modal fade" id="contactModal"…
-
4
votes2
answers890
viewsModal bootstrap does not appear when clicking button
<!DOCTYPE html> <html lang="pt-pt"> <head> <link rel="stylesheet" type="text/css" href="./DataTables/DataTables-1.10.16/css/bootstrap.min.css"/> <link rel="stylesheet"…
-
4
votes1
answer2577
viewsOpen html page in modal
I have the following html pages: client record, cadastral and contact record. In my client record I have two Buttons: id="btnCadastroEndereco" and id="btnCadastroContato". When I click on these…
-
3
votes1
answer78
viewsHow to put a "page" opening on a piece of the page?
In the example of Datepicker, when someone clicks on input date, open the calendar down correct. How can I do this ? In my case I have a page that only has a calendar made by me, is a specific…
-
3
votes2
answers1309
viewsEditable table in PHP
I have a table with a list of companies. I want from a click on the table row to load a modal with the information of this company. Any suggestions on how to do ?…
-
3
votes1
answer126
viewsRedeem date-id from a menu
How do I pass the data-id of a menu link to a modal? For example, I have a menu with the link1 - Link2 - link3. For example, clicking on Link2 opens a modal displaying the values of Link2. These…
-
3
votes1
answer4581
viewsHow to open external URL in modal bootstrap?
I already use the modal bootstrap and it worked very well for the content I tested. But I can’t find anything that explains how to open an external page in a modal on the site. Does anyone know how…
-
3
votes1
answer1690
viewsDatepicker is shown behind the modal bootstrap
I have a modal in bootstrap: <!-- Modal content--> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close"…
-
3
votes1
answer1031
viewshow to pick up a value and post it on a modal?
my html is like this: <a href="#modal" data-toggle="modal" data-id="login">logar</a> i need a php or javascript that does a post or onclick that sends the value "data-id='login'" to a…
-
3
votes2
answers1863
viewsDisable form Submit button inside a modal bootstrap window
I have tried several ways to disable the Submit button of a form that is inside a modal bootstrap window, but I was unsuccessful. I have already researched the documentation but I have not found it.…
-
3
votes2
answers1785
viewsOpen second modal only after closing the first
It seems simple but I’m struggling, I have two modal that has to appear in the home after login of the user, I need to appear one and only after the user closes that first appears the second modal.…
-
3
votes1
answer4709
viewsModal is not giving scroll
CSS: .modalDialog { position: fixed; font-family: Arial, Helvetica, sans-serif; top: 0; right: 0; bottom: 0; left: 0; background: rgba(0, 0, 0, 0.8); z-index: 99999; opacity:0; -webkit-transition:…
-
3
votes1
answer26954
viewsOpen modal bootstrap automatically when loading page
People need that as soon as the page load the modal of the bootstrap open on the screen without having to click the button, the way I am doing ta being necessary to click the button for the modal…
-
3
votes2
answers785
viewsConfirmation Modal with codeigniter
I need to do an exclusion confirmation modal. In html <a class="btn btn-primary" onclick="Confirmar(<?=$dados->id;?>)">Excluir</a> Function <script> var base_url =…
-
3
votes1
answer123
viewsRun modal only if there is a call
I want to run the modal only if there is the call. Because it is taking too long to open the page. Below follows the modal used: <div class="modal fade" id="m_modal<?php echo $count ?>"…
-
3
votes2
answers997
viewsDjango + Python, show modal using {% if %} in template
I’m making a check if there are active classes, if there is should present a modal and not the registration form, but it is not working: py views.: from django.shortcuts import render, redirect from…
-
3
votes1
answer228
viewsModal does not work (synchronous AJAX)
When using this JS code, using Jquery: $(document).ready(function(){ $('.visualizar').click(function(){ $('#container').fadeIn(300); }); }); function visualizarDados(codContato){ //↓ função do ajax…
-
3
votes2
answers333
viewsOpen page in modal form
I’m doing a crud and would like to open another page in modal form, but do not know how to do this, I even found on a site explaining how to do with javascript but when clicking the button nothing…
-
2
votes1
answer133
viewsTAB key navigate only in MODAL
Good morning Galera, I need to make the TAB key navigate only in modal, an example is Twitter that when the Modal message is open or any other, we can not navigate the screen behind through the TAB,…
-
2
votes2
answers525
viewsHow to pass value to label in modal
I fill in the inputs of my modal as follows: <input type="text" id="txtDescricao" name="txtDescricao" minlenght="4" required> Script: modal.find('.modal-body…
-
2
votes2
answers1455
viewsLoad remote content into a Twitter Bootstrap modal
I’m trying to load the contents of a modal from a remote page. This is the code I’m using to run the tests. $('[data-load-remote]').on('click', function (e) { e.preventDefault(); var $this =…
-
2
votes2
answers691
viewsProblems capturing input when opening modal
I am trying to capture the value of a modal input as soon as it is opened. I did it as follows, but it did not work: $('#modal').on('show.bs.modal', function (e) { var var_tipo =…
-
2
votes1
answer432
viewsHow to make paging inside a modal in bootstrap?
I have a modal in bootstrap that opens at the click of a button, inside this modal I want to display 2 contents: 1 form and 1 paragraph. However, I would like to paginate that within the modal, 1…
-
2
votes1
answer1637
viewsUser and password validation in Pop Up Modal using MVC 5
My problem is this. I have a modal login pop, as shown below. That when the user enters his login and password and clicks on the login button, he calls mine controller Authenticate. Follow the code…
-
2
votes1
answer1760
viewsHow to load the information inside the modal (bootstrap 3.3.6)?
I’m hoping that in the modal, after clicking on the display option, it will load the information. However, it only loads the ID 1 of the table, regardless of which table item I want to view. It…
-
2
votes1
answer223
viewsIs there an R function that helps me locate the fashions of a multimodal dataset?
Something like Encontramoda(Dataset, N_maiores_modas)? I am working with the following integers: c(1,2,3,4,5,6,7,7,7,8,8,8,9,9,9,9) That is, the example is trimodal and has a bigger fashion than the…
-
2
votes2
answers1048
viewsChanging Width of a Modal
Hello, while trying to increase the width of a modal in bootstrap 4, I tried to change the width of the modal-lg through css as I saw in the English stack overflow. However, I’ve tried the same code…
-
2
votes1
answer685
viewsLoad datepicker into modal
Good morning. I’m not able to load the datepicker inside a modal called via ajax, someone would have an example of code? MODAL: <div class="modal fade" id="modalaltera" tabindex="-1"…
-
2
votes2
answers2246
viewsDelete record from Modal Bootstrap window
I’m trying to delete a record from the Bootstrap modal window, but it’s not working. Look how I did: By clicking the delete button of a particular record <a class="btn btn-primary delete"…
-
2
votes1
answer2945
viewsHow to take the value of a select and fill in an input?
<?php $con=mysql_connect("localhost","root","") or die("Failed to connect with database!!!!"); mysql_select_db("bancoteste", $con); $sth = mysql_query("SELECT * FROM pessoa"); ?> <!DOCTYPE…
-
2
votes1
answer3982
viewsHow to check the modal closure
Via Ajax I register items in the database and return a certain value to the user through a modal using the innerHTML. Done that the "html" of modal is filled with the amounts I pulled from the bank.…
-
2
votes5
answers3628
viewsmodal boostrap opens and closes alone
I’m having a problem with my modal bootstrap. It is as simple as possible, I took the example of the bootstrap site itself to test it but when I click the button, it opens and closes immediately…
-
2
votes1
answer6305
viewsCentralizing modal bootstrap
I have a modal bootstrap on my page HTML. When I open the modal in the computer browser, the modal appears as follows: But when simulating the screen of a smartphone, the modal behind my menu nav:…