modal-dialog

Apply jquery propieties on new element created after the page is loaded

自作多情 提交于 2019-12-25 05:35:10
问题 I have a problem with jquery and bootstraps modal. There's a page with a dynamic table and a modal that load remote content everytime is opened. When I load the page for the first time everything works fine, but when I edit the table, to be more precise when I add or edit a row, the modal function stop working. In this cases the browser open directly the remote page, read_properties.php This is how I call the modal, every row has a different id: <a data-target="#id_target" href="read

How to identify screen size

限于喜欢 提交于 2019-12-25 05:18:08
问题 I am working on some mobile web application ( it my firs time ) and I faced such problem: despite the use of special mobile frameworks some sizes of modal windows are not correct on small screens. For example i have an ipod and ipad: On iPod the size of buttons is already changed for a bit. So, may be there is any way to identify screen size like category (small, normal, large or may be just get list of sizes to the array) using js may be and then based on it i would do some basic changes in

Trying to make a form in a jQuery dialog modal-form work. What am I missing?

馋奶兔 提交于 2019-12-25 05:17:05
问题 I want my views/blogs/new to open in a dialog. Tried to make it work per this SO answer: https://stackoverflow.com/a/5318155/732200 Here is my code (the blogs are called "fables"): This is my partial - views/fables/fablemaker.html.erb <div id="fableMaker" title="Fable Maker" style="display:none"> <div id="countdownTimer"> <span id="countdown_timer" class="timer">4:20</span><br /> <button id="play_btn">Play Timer</button> <button id="pause_btn">Pause Timer</button> <button id="reset_btn">Reset

What's wrong with this code? dialog is not a function

寵の児 提交于 2019-12-25 05:06:28
问题 I'm trying to solve another issue I'm having with autotab. For this site it's just not working, I keep getting autotab is undefined, when everything's being called correctly. I also notice in the console I'm receiving "TypeError: $(...).dialog is not a function" The block it's referencing is this: $('#dialog-modal').dialog( { position: ['center'], autoOpen: false, modal: true, buttons: [{ text : "Close", "class" : 'closeButtonClass', click : function(e) { document.getElementById("modalPopup")

How do I time a modal pop up?

血红的双手。 提交于 2019-12-25 04:38:06
问题 I have a function that does some database update in asp.net. I'd like a modal popup to show a "success" message for just 5 seconds after my function has been called. In this case, the modal popup would not be triggered by any "TargetControl" but would show up for just 5 seconds once the function is done. Thanks 回答1: You can't close standard javascript modal dialogs (alert, confirm,..) after a timeout. Only manual close works with them. But, you can use jquery/UI dialog: // timeOut in ms

I created a service to handle modals, however when clicking content in a nested modal they only respond to their parent

好久不见. 提交于 2019-12-25 04:33:31
问题 Let me prefix by saying this a very similar to my other question seen here where I could not close any nested modals. The issue was from my service creating the same instance of a modal where 'The second instance "overwrites" the first one', so my solution was to create separate instances using $scope.modalA = modal; and $scope.modalB = modal; and I could still use my service to handle modals, seen here: .service('ModalService', function ($ionicModal, $ionicLoading, $rootScope) { var init =

Howto Size the Modal View programmatically (SWIFT)

梦想与她 提交于 2019-12-25 04:27:37
问题 I simply want to present a small option dialog over an existing main UIViewController/UIView , so that on an IPad I would see a small Dialog and in the Background I will see the Main View. I managed to show a UIViewController/UIView in a modal view style as follow: func showoptions(){ let storyboard = UIStoryboard(name: "Main", bundle: nil) let controller = storyboard.instantiateViewControllerWithIdentifier("Options") as! UIViewController controller.modalPresentationStyle =

javascript / jquery - how to create a proper modal page overlay

泄露秘密 提交于 2019-12-25 03:56:44
问题 I've been struggling for a couple weeks creating a modal dialog in javascript / jquery. On ios and android devices I get pretty consistent, working results - but in windows mobile / opera mobile / etc, the size of the modal never seems to be quite right - either i get excessive scrolling or the dialog is too short and so the background of the page beneath shows through at the bottom. I need to figure out the best way to size the modal (and resize on device orientation change). This is what I

workaround of Chrome 37+ modal dialog returnValue

匆匆过客 提交于 2019-12-25 03:37:22
问题 I have a parent caller page and a modal page, when the modal page is closed, the caller page gets a returnValue from the popup modal page. Even older version Chrome's showModalDialog() always returns undefined, there are many workarounds [javascript - showModalDialog not returning value in Chrome. But now window.showModalDialog() in Chrome37+ is deprecated by design [http://blog.chromium.org/2014/07/disabling-showmodaldialog.html], those workarounds to get returnValue of a popup window do not

Prevent CSS Modal from scrolling to top

只谈情不闲聊 提交于 2019-12-25 02:53:28
问题 I am using a CSS Modal (no jQuery and I didn't write the code - person that did hasn't responded to source in years, assuming I won't get a response there. I wish to know if there is a way to prevent it from going to the top of the page. <style type="text/css"> .modalDialog<?php echo $photoID; ?> { 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: opacity 400ms ease-in;