Questions tagged as 'modal'

1
answer

Execute modal only if there is a call

I want to execute the modal only if the call exists. Because it's taking too long to open the page. Below is the modal used: <div class="modal fade" id="m_modal<?php echo $count ?>" tabindex="-1" role="dialog" aria-labelledby="...
asked by 03.06.2018 / 21:00
1
answer

how to get a value and post it in a modal?

My html looks like this: <a href="#modal" data-toggle="modal" data-id="login">logar</a> I need a php or javascript that makes a post or an onclick that sends the value "data-id = 'login'" to a get inside the modal ..... in the m...
asked by 26.04.2016 / 20:12
1
answer

Problems with modal / boostrap

Hello, I have a problem with my site, I would like it when I click 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 I open the page the modal opens automatically, a...
asked by 08.11.2018 / 20:58
2
answers

Django + Python, modal display using {% if%} in the template

I'm doing a check if there are active classes, if there is not a modal and not the registration form, but it is not working: views.py: from django.shortcuts import render, redirect from django.core.mail import send_mail from django.temp...
asked by 17.09.2018 / 15:03
1
answer

Open modal bootstrap automatically when loading page

I need people as soon as the page load the modal bootstrap open on the screen without having to click the button, the way I am doing it and it is necessary to click the button for the modal open, follow the code: <button type="button" class...
asked by 06.04.2017 / 14:21
2
answers

Open a modal with a button in another modal?

I have a modal of bootstrap where it has a button that closes modal but I wanted it to barely close the modal, open another. I already tried to put a id on the button to when clicking to open the modal again but it is not wo...
asked by 06.10.2017 / 16:25
2
answers

Delete log from the Modal Bootstrap window

I'm trying to delete a record from the Bootstrap modal window, but it's not working. Look how I did it: When you click the delete button for a particular record <a class="btn btn-primary delete" href="#" data-href="#" data-target="#co...
asked by 29.06.2016 / 18:46
2
answers

Load remote content in a modal Twitter Bootstrap

I'm trying to load the contents of a modal from a remote page. This is the code that I am using to run the tests. $('[data-load-remote]').on('click', function (e) { e.preventDefault(); var $this = $(this);...
asked by 16.09.2015 / 17:46
2
answers

How 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 input[name="txtDescricao"]').val(descricao) And when I have a label...
asked by 15.12.2015 / 11:26
1
answer

How to close a modal only by the buttons?

The title is already high explanatory. But I'd like to know how I close a modal by just the close button and the "x" of the window, not allowing the user to click on the black background around the pop up window to close. HTML:<!--Buttontr...
asked by 10.02.2017 / 20:05