modal-dialog

Pass data from an Angular modal's controller back to the main controller

空扰寡人 提交于 2019-12-05 01:30:24
问题 Here is the thing. I am not able to pass data from angular modal back to the controller where i need it. the codes given below. Controller side 'use strict' var DataMod = angular.module('Data', ["angularGrid", 'ui.bootstrap.contextMenu', 'ui.bootstrap']); DataMod.controller('DataController', ['$scope', '$compile', '$uibModal', '$log','$rootScope', '$http', function ($scope, $compile, $uibModal,$log, $rootScope, $http, ngUtilityService) { //user first clicks on Add button. A modal opens up.

ReactJs: Wrap Semantic UI Modal using Portal “pattern”

不羁的心 提交于 2019-12-05 01:19:28
问题 I'm trying to wrap Semantic UI Modal component using portal approach described here Here is my take at it http://jsfiddle.net/mike_123/2wvfjpy9/ I'm running into issue though, when obtaining a DOM reference and Rendering new markup into it there seem to be old reference still maintained. render: function() { return <div className="ui modal"/>; <-- the idea at first was to only return <div/> }, ... React.render(<div > <----------- originally this element had className="ui modal", but this.node

Completely Modal WPF Window?

会有一股神秘感。 提交于 2019-12-05 00:48:41
问题 I have a requirement that specifies that a notification tray application that uses WPF must (based on some conditions) pop-up a window that is globally modal. This should prevent the user from doing anything (even outside of the Tray application) until they have satisfied some other conditions at which time it will enable the close button and allow the user to close it. How does one make such a window? I have the window displaying and it evaluates the conditions and whatnot, but it is only

Multiple CSS Modal boxes

╄→尐↘猪︶ㄣ 提交于 2019-12-05 00:20:33
问题 So I was reading the following article: Create Modal window with CSS3 However, I'm wanting to modify it by adding more than one modal box to my site. Here is the code to the original modal: <a href="#openModal">Open Modal</a> <div id="openModal" class="modalDialog"> <div> <a href="#close" title="Close" class="close">X</a> <h2>Modal Box</h2> <p>This is a sample modal box that can be created using the powers of CSS3.</p> <p>etc..etc..</p> </div> There is no CSS call for the <div id=openModal"

Twitter Bootstrap - why is my modal as faded as the background?

北战南征 提交于 2019-12-04 23:59:04
So I'm using Twitter Bootstrap and I have a modal that slides down when the user clicks the "Register" button. The only problem is that the not only does the background page fade, which is a nice effect, but the modal is also faded. How can I get it so that the modal is normal brightness while the background is faded? I created a JSFiddle to demonstrate my problem here: http://jsfiddle.net/jononomo/7z8RZ/7/ The following code creates a faded modal: <div class="navbar navbar-fixed-top"> <a href="#registration_modal" data-toggle="modal"> Register </a> <div id="registration_modal" class="modal

Open URL on Bootstrap Modal close

纵饮孤独 提交于 2019-12-04 23:13:45
问题 Maybe I'm brain dead here, but I'm trying to do what seems should be an easy thing. I am using Bootstrap to open a modal on page load depending on the value of specific variables. This all works great. However, when the modal opens and the user clicks ok (presumably after reading the info text), I want to page to redirect to a new page. I can't seem to figure out how to do this. Any info on how to do 回答1: Along the lines of @Knagis additional option, you can use onclick to change the window

Prevent JQuery Mobile from closing a popup when user taps outside of it

佐手、 提交于 2019-12-04 23:03:33
I'm using JQuery Mobile 1.2.0 alpha 1. Currently, when I open a popup and tap outside of it anywhere on the screen the popup is being closed. I was wondering if there's any JQuery Mobile attribute I have missed which can be set and prevent closing the popup upon outside-tap? (modal popup) (The documentation for popups can be found here ) EDIT: I had an idea of solving this but still can't implement it to work: When a JQM popup show up theres a div which covers all of the screen with class of ui-popup-screen. I thought somehow to give it a large z-index and unbind all click/tap function from it

Are modal dialogs a good practice for the web? [closed]

荒凉一梦 提交于 2019-12-04 22:48:19
Are modal windows/dialogs considered a good practice for websites? One of the things that concerns me about using a modal window is that it is so much like a pop-up window and it could cause user frustration or cause users to simply close it because it's intrusive. Do you know of any studies that talk about user preferences and use rates? Are there any accessibility issues beyond having the a modal window link load the content in a new page when JavaScript is turned off? Do you like sites or web apps that use modal windows? Why or why not? What are good and bad practices for implementing modal

Rails App with Bootstrap Modal View containing form, submit and disappear modal view without reloading page

爱⌒轻易说出口 提交于 2019-12-04 21:36:48
I have a rails app which presents a form for visitors in a modal view. When the submit button is clicked, I want the form to submit and the modal view to disappear without reloading the page behind it. I've tried binding the modal view's dismissal to the form's submit function in javascript, but it's not working correctly. I'm a javascript newbie, so I might not have scripted this correctly. Here's what I have: <script type="text/javascript"> $("document").on("submit", ".new_user", function() { $('.signup').modal("close"); }); </script> <fieldset> <!-- The sign up modal view --> <div id=

Help With Setting Cookie for a JQuery UI Modal Dialog

匆匆过客 提交于 2019-12-04 21:24:00
We host an internet banking site and upon logging in, I created a modal dialog box to display. We now want to take a cookie based approach so it's only seen once. I'm completely lost on how to do this. I have the code included and if someone could help, I'd really appreciate it. I'd need exactly how to code this. I'm not very skilled in html/javascript - I was able to implement this quite luckily honestly. But now I'm unable to get the cookie portion working! Thanks to anyone who is able to help me out. <body onLoad="loadPage();" onUnload="unloadPage();"> <script> $(function() { // a