popup

iPhone: Adding a Done button within a pop up DatePicker frame

给你一囗甜甜゛ 提交于 2019-12-18 04:23:30
问题 I pop up a DatePicker with the following. Now I'm trying to add a Done button at the top of the pop up frame. -(IBAction) contactBDayDatePicker{ NSLog(@"contactBDayDatePicker"); pickerView = [[UIDatePicker alloc] init]; pickerView.datePickerMode = UIDatePickerModeDate; if (self.pickerView.superview == nil){ [self.view.window addSubview: self.pickerView]; // size up the picker view to our screen and compute the start/end frame origin for our slide up animation // // compute the start frame

Close popup window

戏子无情 提交于 2019-12-18 03:59:14
问题 I have a popup window which is opened using this code: function _openpageview(fieldid,objectid,opennew) { var url='/s_viewpagefield.jsp?fieldid='+fieldid+'&codedid='+objectid; web_window = window.open(url,'_blank', 'menubar=yes,location=no,scrollbars=yes,width=800,height=600,status=no,resizable=yes,top=0,left=0,dependent=yes,alwaysRaised=yes'); web_window.opener = window; web_window.focus(); } How can I close that popup from within the popup? window.close(); self.close(); web_window.close();

window.open() returns undefined or null on 2nd call

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-18 03:48:32
问题 I have the follow scenario: I click a link which: opens a popup window called 'popup' which loads a pdf inside of it (in IE6). without closing the popup, i click the link again, which should reopen the pdf inside the popup, but instead a javascript error in thrown: member not found the javascript function used to open the popup is: function openWindow(url, name, props) { var windowRef = window.open(url, name, props); if (!windowRef.opener) { windowRef.opener = self; } windowRef.focus(); /

js open popup window and acces its element in another page

断了今生、忘了曾经 提交于 2019-12-18 03:39:29
问题 I have a problem with js popup window. I open a popup and try to access its elements in another page page, no success, and I don't want to reload the popup source, I simply want access a element of the opened popup Ex - 1st page - opened popup with html5 music player 2nd page - need to pause the music when user click on button on main page 1st page var popup = window.open("test.html","mypopup","width=500,height=300"); 2nd page I want to access mypopup windows elements without reloading the

How to personalize alert buttons - window.confirm() and window.alert() [duplicate]

孤人 提交于 2019-12-18 03:34:19
问题 This question already has answers here : Custom “confirm” dialog in JavaScript? (6 answers) Closed 6 years ago . I have seen many websites that have personalized their alert and confirmation boxes with different button text. By default, this is what the JavaScript window.confirm() function would output: +-----------------------------+ |Message from webpage | +-----------------------------+ |Popup text | | | | | | | | | | [Ok] [Cancel] | +-----------------------------+ But, what if I wanted

How to show a window that acts like a popup menu?

余生长醉 提交于 2019-12-17 23:25:44
问题 When window A is show, I want to show another none-modal popup window B, but: I don't want window A to become inactive due to window B becomes the front window; I want that when window B is focused, I pull down a combo box control on window A with one click (generally you have to click twice, one for moving the focus to window A and the second for pulling down the combo box); As you can see, the window B that I want is something like a more usable popup window like a popup menu (which is less

Open link in Popup Window with Javascript [closed]

江枫思渺然 提交于 2019-12-17 22:42:54
问题 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 6 years ago . I'm trying to load a href into a popup window of specific dimensions which also centers in the screen. Here is my source: <li> <a class="sprite

How to handle a webview confirm dialog?

一世执手 提交于 2019-12-17 21:56:32
问题 I'm displaying a webpage in a WebView and on the webpage, there is a button. When you click the button, a confirmation dialog is supposed to popup, but it doesn't show in my WebView. It does popup if I go to the same webpage in the android browser. Anyone know how to handle popup dialogs coming from a webpage inside your WebView? 回答1: Ok, found the answer and here it is! In order to handle a popup confirmation coming from a webpage in your WebView, you need to override the onJsConfirm method

ios - present UIAlertController on top of everything regardless of the view hierarchy

大城市里の小女人 提交于 2019-12-17 21:48:34
问题 I'm trying to have an helper class that presents an UIAlertController . Since it's a helper class, I want it to work regardless of the view hierarchy, and with no information about it. I'm able to show the alert, but when it's being dismissed, the app crashed with: *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Trying to dismiss UIAlertController <UIAlertController: 0x135d70d80> with unknown presenter.' I'm creating the popup with: guard let window

Issue dismissing popup window

二次信任 提交于 2019-12-17 20:01:14
问题 I have a popup menu implemented , which shows up on click of a button. This is my onclick method. public void showOverflow(View view) { boolean click = true; Button action = (Button) findViewById(R.id.btbAction); LayoutInflater inflater = (LayoutInflater) main.this .getSystemService(Context.LAYOUT_INFLATER_SERVICE); View popupView = inflater.inflate(R.layout.overflow_layout, null); final PopupWindow pw = new PopupWindow(popupView, LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); pw