modal-dialog

check if jquery reveal modal is active, do something

╄→尐↘猪︶ㄣ 提交于 2019-12-11 08:38:16
问题 I am trying to run some javascript ONLY on the condition that the reveal modal is active. The problem is that the methods I have tried have been True whether the modal is active or not. Below is an example of what I am trying to accomplish. I have tried :is visible method, also :active. I am using zurb reveal modal. The html: <div id="myModal" class="reveal-modal"> <ul> <li>some list item</li> <li>some list item</li> </ul> </div> <!--/myModal--> The JS: <script> if ($('#myModal:active')

Can't get the filtered items from my filtered list inside a modal

与世无争的帅哥 提交于 2019-12-11 08:17:44
问题 I have a page where I can open a modal window when selecting a certain "instruction" When that modal window is loaded, I have inside of it a text input for searching, an ordered list to list all of the "instructions" (except the one I selected), a dropdown list to select the amount of instructions I want to see per page, 2 buttons for next and previous page as well as text showing the current page and how many page there is. This is what it looks like (the Manual dropdown list does nothing

Excel VSTO Add-In: Cannot reactivate Excel after MessageBox.Show(“Test”);

不问归期 提交于 2019-12-11 08:07:00
问题 I am implementing a VSTO Excel Add-In which displays some modal dialogs. These dialogs are not shown as own windows in the windows taskbar. But under certain circumstances these dialogs are not are vanishing from the top of Excel and cannot got back by using the task bar! The whole story (reproducable with Windows XP - 7, Excel 2007 - 2010): I do open Excel and create two or more new workbooks I do show a modal dialog, let's say via "MessageBox.Show" I open "notepad" and maximize its window I

focus moving out of modal in scan mode

别等时光非礼了梦想. 提交于 2019-12-11 07:49:41
问题 I am trying to fix an accessibility bug for screen reader in an Angular2 web application(SAP). The problem is in SCAN MODE with Edge, when the modal is open and using up and down arrows to travel through focusable elements, the focus moving out to the area outside the modal. However, in normal mode, if tabbing through elements in the modal, the focus never goes out of the modal. The goal is to achieve the same experience as normal mode in scan mode. Here is the structure of modal with other

Call method from Modal View Controller

戏子无情 提交于 2019-12-11 06:54:59
问题 I have a view controller which presents a modal view when a certain button is tapped. Upon closing the modal view and re-revealing the original view underneath, I want a refresh method to be called. How do I call this refresh: method in OriginalViewController from ModalViewController ? I know this works if I do it in -viewDidAppear , but I only want it to happen when the modal view closes, not every single time. 回答1: As you can see in the View Controller Programming Guide, the recommended way

getting the height and width of a div after loading info into it from an external source with jquery

寵の児 提交于 2019-12-11 06:47:11
问题 I've seen questions similar to this but haven't found an answer for my situation. I've created a simple modal popup plugin using jQuery that runs like this: $('#popup').popupElement("http://www.example.com #somediv"); It loads divs from another website when the selector #popup is clicked. The click function looks like this: $(thisObj).click(function(e){ e.preventDefault(); $("#popupDiv").load(div); centerPopup(); loadPopup(); }); The problem is when it loads the external div into the popupDiv

How to prevent stacking the URL of chained dialogs in jQuery Mobile

若如初见. 提交于 2019-12-11 06:38:34
问题 When you chain dialog boxes in jQuery Mobile there are these "&ui-state=dialog&ui-state=dialog..." strings stacked on the URL. Is there a way to prevent this? Thnx! 回答1: What you can try is to add rel=external to the links which open the dialogs. This attribute will disable the Ajax navigation and should prevent stacking the URL. You could also try the pushState plugin : There is an optional feature that converts the longer, hash-based URLs mentioned in the previous section into the full

Is there any Prototype Javascript function similar to Jquery Live to trace dynamic dom elements?

可紊 提交于 2019-12-11 06:35:55
问题 Event.observe(window,"load",function() { $$(".elem_classs").findAll(function(node){ return node.getAttribute('title'); }).each(function(node){ new Tooltip(node,node.title); node.removeAttribute("title"); }); }); Using above method, I can retrieve all elements having ".elem_class" and apply some javascript functions on them. But I have a modal/popup box which has some elements also having ".elem_class" and these dont get in the scope of findAll/each as they are loaded into the dom thru ajax.

Getting focus on buttons p-toast primeng modal

半城伤御伤魂 提交于 2019-12-11 06:33:37
问题 Here is the modal that gets displayed when a user selects something to delete. How can the focus be set on the buttons and not stay at the underlying content below the modal? <p-toast position="center" key="modal" (onClose)="onDeleteReject()" [modal]="true" [baseZIndex]="5000"> <ng-template let-message pTemplate="message"> <div style="text-align: center"> <i class="pi pi-exclamation-triangle" style="font-size: 3em"></i> <h3>{{message.summary}}</h3> <p>{{message.detail}}</p> </div> <div class=

CKEditor Link input not working in modal

ⅰ亾dé卋堺 提交于 2019-12-11 06:17:39
问题 I've got a project in which I use a modal with a form and a ckeditor and the Link input doesn't work. Here's a fiddle that recreates this problem: http://jsfiddle.net/8t882a2s/3/ And the code of this example. HTML: <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×<