popup

how to make window.open pop up Modal?

北城余情 提交于 2019-11-27 16:31:09
问题 I am currently using window.showModalDilog to open a modal pop up window which is not allowing the parent window to do any action. But in the google search, I found that it is not the standard method and various browsers has stopped supporting this function. In fact I am facing this problem in Opera. Opera gives me the javascript error and stops execution at that point. Nothing can happen after that error. So, I have only one option left and that is window.open. But I want to disable parent

Add Modal Popup to Map Annotation - Swift 3.0

和自甴很熟 提交于 2019-11-27 16:28:07
I have a number of custom pins on a map and when a user taps a pin and then the button on the Callout View I would would to add a function that launches a Modal Popup using Scene Dock Here is my code: func mapView(_ mapView: MKMapView, annotationView view: MKAnnotationView, calloutAccessoryControlTapped control: UIControl) { // here I would like to launch a Modal Popup using Scene Dock popInfo.center = view.center popInfo.transform = CGAffineTransform(scaleX: 0.8, y: 1.2) self.view.addSubview(popInfo) UIView.animate(withDuration: 0.3, delay: 0, usingSpringWithDamping: 0.5,

Android: Error popup on EditText doesn't move down when keyboard goes away

醉酒当歌 提交于 2019-11-27 16:14:45
问题 I have an activity that displays a few EditTexts on screen for user input. To be sure the soft keyboard doesn't cover my fields when it displays I have set the property android:windowSoftInputMode="adjustPan" for my Activity in the manifest. I am validating the EditText's content when 1. The view loses focus 2. When the user performs the 'Enter' action. Upon validation, if the value is not valid I am calling setError(CharSequence error) on the EditText, which causes a popup to display

Popup blocked when created in jQuery ajax success callback

心已入冬 提交于 2019-11-27 16:11:26
问题 Google Chrome seems to be blocking a popup I am creating via jQuery. After some investigation, it appears to be an issue with calling window.open in the success event of an ajax call. Is there a way around this? My jQuery ajax call returns the URL to be opened. So I am bit stuck. It works if I place the window.open outside the ajax call; but, inside (i.e. in the success event) it is blocked. I think it is something to do with CONTEXT but I am unsure. Here is what I have: window.open("https:/

chrome Pop-up blocker when to re-check after allowing page

谁都会走 提交于 2019-11-27 15:39:48
I've having app which sometimes open the popup blocker, when the user run the application chrome have some flag in the url box (right side) which tell to the user that the pop-up is blocked ,in this case I give to the user in addition new warning message like "please pay attention the page was blocked please enable it..." My question is when and in which term I need to do this check again ,assume the user allow the new App page if user close and open the browser does he need to enable this pop-up again ? I know that if the user will run it in diffrent chrome versions (like canary or beta) he

PortletURL to open another portlet in pop-up

拟墨画扇 提交于 2019-11-27 15:14:31
I have a hook for create_account.jsp . In this jsp I have a javascript code where I try to open a portlet in an iframe pop-up or some pop-up from Liferay. The question is: How to give the portlet URL? How can I access it? In that portlet I only want to ask a question with YES or NO, and based on the user answer, redirect to some other page. To create a URL, you can either use <portlet:renderURL> or <liferay-portlet:renderURL> <liferay-portlet:renderURL var="testPopupURL" portletName="testPopup_WAR_testPopupportlet" windowState="<%=LiferayWindowState.POP_UP.toString() %>"> <liferay-portlet

jqGrid - Change filter/search pop up form - to be flat on page - not a dialog

回眸只為那壹抹淺笑 提交于 2019-11-27 14:33:25
I am using jqgrid. I really need help with this, and have no clue how to do it, but i am sure its possible... can any one give me even a partial answer? were to start from? I now have a requirement saying that for searching and filtering the grid I dont want the regular model form pop op thing opening, instead the filter should be open when entering the page but not as a pop up form , but should be on the top of the page but still have all the functions to it. Needs to look like this: And again having the select tag filled with the correct information (like they do in the popup form) and when

Javascript,calling child window function from opener doesn't work

感情迁移 提交于 2019-11-27 14:24:30
I'm developing a web application that opens a popup using windows.open(..). I need to call a function on the opened window using the handle returned by "window.open", but I'm always getting the error message "addWindow.getMaskElements is not a function", as if it couldn't access the function declared on child window. This is the behavior in both IE and FF. My code looks like this: function AddEmail(target,category) { if(addWindow == null) { currentCategory = category; var left = getDialogPos(400,220)[0]; var top = getDialogPos(400,220)[1]; addWindow = window.open("adicionar_email.htm",null,

How to show fullscreen popup window in javascript?

此生再无相见时 提交于 2019-11-27 14:22:43
问题 Is there a way to make a popup window maximised as soon as it is opened? If not that, at least make it screen-sized? This: window.open(src, 'newWin', 'fullscreen="yes"') apparently only worked for old version of IE. 回答1: Use screen.availWidth and screen.availHeight to calculate a suitable size for the height and width parameters in window.open() Although this is likely to be close, it will not be maximised, nor accurate for everyone, especially if all the toolbars are shown. 回答2: More than

jQuery beforeunload custom pop up window for leaving a page

雨燕双飞 提交于 2019-11-27 14:17:22
Hi I would like to customize my pop up for leaving a page, is there any simple way to do that? I am using simple jQuery $(document).ready(function() { var myPopUp = $('#pop-up').css('display', 'block'); $(window).bind('beforeunload', function(){ return 'load my pop up here instead of the default browser message'; }); }); my html for the pop up is which is hidden by default <div id="pop-up"> <h2>Are you sure wanna leave</h2> <a href="#">Leave</a> <a href="#" class="close">Stay</a> </div> Thanks Short answer: You can't . Longer answer: For rather obvious "security" reasons it is very limited