modal-dialog

Capture hide event in $modal of angular strap

本小妞迷上赌 提交于 2019-12-11 03:18:22
问题 I am using angular Strap to create a modal like : $modal({ template : "/templ/alert-with-title.html", content : content, title : title, show : true, backdrop : true, placement : 'center' }); I have the written the following : $scope.$on("modal.hide.before",function() { console.log("Closing1"); }); $scope.$on("modal.hide",function() { console.log("Closin2"); }); My /templ/alert-with-title.html is like this : <div aria-hidden="true" aria-labelledby="windowTitleLabel" role="dialog" tabindex="-1"

angularjs - Accessing ui-bootstrap modal dismiss and close function from another controller

断了今生、忘了曾经 提交于 2019-12-11 03:17:18
问题 i have service for modal invoking as shown. .service('modalService', ['$modal', function ($modal) { var modalDefaults = { backdrop: 'static', keyboard: true, modalFade: true }; this.showModal = function (template) { modalDefaults.template = template; modalDefaults.controller = 'modalController'; return $modal.open(modalDefaults).result; }; }]) .controller('modalController', function ($scope, $modalInstance) { console.log('modalController'); $scope.ok = function () { $modalInstance.close(

Birt report design validating report parameters while running the report

你。 提交于 2019-12-11 02:42:12
问题 How to validate the report parameters while running the report in WebViewer. I am using the eclipse to design the reports. I am using the date fields and some select boxes as parameters. But my requirement is - user should not type the date, he should select the date from date picker(jquery UI) and at select boxes I want some kind of validation at server side that is From Category select box should not be greater than To Category select box. I need to do this validation at server side with

Is there a rule for Web accessibility as to when an overlay / modal dialog is open, whether any element should be the focus?

天大地大妈咪最大 提交于 2019-12-11 02:31:14
问题 I have seen several behaviors: No element is focused. The close icon (usually at top right of overlay) is focused. Some other element inside of the overlay is focused. If conforming to ADA / ARIA standards, should any element be in focus? 回答1: The current recommend behavior is to focus the first focusable element in the dialog. However, there has been some debate on that implementation recently as it poses problems for users who use screen magnification software and screen readers. in cases

IE8 not working with jQuery Dialog

核能气质少年 提交于 2019-12-11 02:11:53
问题 I have an HTML form: <div id="dialog" class="event-dialog" title="Create Event"> <div id="dialog-inner"> <table> <tr><td align="left">Event Name:</td><td align="left"><input type="text" name="name" id="name" class="text ui-widget-content ui-corner-all title"></td></tr> <tr><td align="left" valign="top">Event Description:</td><td><textarea name="description" id="description" class="text ui-widget-content ui-corner-all" rows="3" cols="40"></textarea></td></tr> <tr><td align="left">All Day Event

Twitter Bootstrap - form in Modal formatting - ASP.NET

最后都变了- 提交于 2019-12-11 01:44:01
问题 I have a form in a modal that formats perfectly if the main window is not too wide (with the labels above the fields). However, if the browser is maximised or large enough it alters the layout of the contents inside the modal so that the labels are now to the left of the fields (which means one word per line and looks very messy). Any idea how I have overcome this behavior so that the class form-horizontal is working to the width of the modal, not the browser window? Update with code: Here is

Compatibility issue with Expression.Blend.Sdk 1.0.2 System.Windows.Interactivity.dll

随声附和 提交于 2019-12-11 01:10:03
问题 I'm developing a WPF with Visual Studio 2015 Community, C#, .NET Framework 4.6.1 and Prism.Wpf 6.1.0, Prism.Core 6.1.0 and Expression.Blend.Sdk 1.0.2. I'm following: Implement a confirmation dialog in WPF using MVVM and Prism tutorial. I have added Interaction triggers to a Windows.xaml: <Window x:Class="MyProject.Views.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com

Opening modal on page load

感情迁移 提交于 2019-12-11 00:24:28
问题 I am using a animatedModal.js to display full screen modal on my page. It works properly and is triggered by clicking on a button. But, instead of that, i would need it to open automatically once the user enters the site, aka, it needs to be opened before the main page content. This is the markup: <!-- MODAL STARTS --> <a id="demo01" href="#animatedModal">DEMO01</a> <div id="animatedModal"> <div class="close-animatedModal"> CLOSE MODAL </div> <div class="modal-content"> </div> </div> <!--

Twitter-bootstrap Modal not showing on page-load (grey screen)

元气小坏坏 提交于 2019-12-10 23:03:57
问题 I am trying to have a twitter-bootstrap modal dialog box appear on page load for a certain view. I am doing this using the code: <script> $(window).load(function(){ $('#shareModal').modal('show'); }); </script> <div class="modal hide fade" id="shareModal"> <div class="modal-header"> <a class="close" data-dismiss="modal">×</a> <h3>Modal header</h3> </div> <div class="modal-body"> <p>One fine body…</p> </div> <div class="modal-footer"> <a href="#" class="btn">Close</a> <a href="#" class="btn

Java Fullscreen Modal Dialogs

匆匆过客 提交于 2019-12-10 22:14:07
问题 How does one create a custom modal JDialog that can be used as an internal dialog? For use in FullscreenExclusiveMode. I have a JScrollPane (with a huge scrollbar) full of huge buttons like so: +----------------------+------+ | FOO | /\ | |______________________+------+ | |______| | BAR | | |______________________| == | | |______| | BIZ | | +______________________+------+ | | \/ | |----------------------+------+ I need the user to use the giant scrollbar to scroll through and tap a particular