popup

How to intercept and manipulate a Internet Explorer popup with VBA

纵然是瞬间 提交于 2019-11-26 20:15:23
问题 Language/Software: The language is VBA. The application is Access 2003 (I also can use Excel) and Internet Explorer (on Windows XP/Seven). The problem: I'm developing a Access macro which opens and manipulates a intranet site of the enterprise where I work. I can create new IE windows and fill data in the forms, but I need to be able of intercept and manipulate other IE windows, such as popups, which opens when I click on a link, when I choose an option of a select element or when the page is

Prompt User before browser close?

馋奶兔 提交于 2019-11-26 20:13:25
问题 We have an administrative portal that our teachers constantly forget to download their latest PDF instructions before logging out and/or closing the browser window. I have looked around but can't find what I'm looking for. I want to accomplish the following goals: Goal 1 Before a user can close the browser window, they are prompted "Did you remember to download your form?" with two options, yes/no. If yes, close, if no, return to page. Goal 2 Before a user can click the 'logout' button, they

Prevent pop-ups from being blocked

佐手、 提交于 2019-11-26 19:54:32
问题 I am using a Facebook login method in my code on page load, but when I execute this code, the pop-up blocker closes the Facebook permission window. How can I open this window with Javascript without needing to make an exception in the pop-up blocker? Below is my code: FB.login(function(response) { if(response.session!=null) { window.location.href='http://example.com'; } }, { perms: 'email,user_birthday,publish_stream' }); 回答1: You can do something like - var uri = encodeURI('http://example

how to implement a pop up dialog box in iOS

瘦欲@ 提交于 2019-11-26 19:16:59
After a calculation, I want to display a pop up or alert box conveying a message to the user. Does anyone know where I can find more information about this? donkim Yup, a UIAlertView is probably what you're looking for. Here's an example: UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"No network connection" message:@"You must be connected to the internet to use this app." delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil]; [alert show]; [alert release]; If you want to do something more fancy, say display a custom UI in your UIAlertView , you can subclass UIAlertView and put

How to display temporary popup message on iPhone/iPad/iOS

梦想的初衷 提交于 2019-11-26 18:59:26
问题 I'd like to display a temporary message on the iPhone/iPad displaying confirmation of an action, or some quick status about some background activity. Is there a standard control to do this? I've seen apps do this. A rounded rectangle, dark and partially transparent with text inside. It does not ask for user input but disappears on its own in some short period of time. Android has a similar construct which is standard. Also similar to the windows displayed by Growl. Suggestions appreciated.

JavaFX 2 custom popup pane

半城伤御伤魂 提交于 2019-11-26 18:56:30
The JavaFX 2 colour picker has a button that pops up a colour chooser pane like so: I'd like to do something similar, in that I'd like a custom pane to pop up when the button is clicked on and disappear when something else is clicked (in my case, a few image thumbnails). What would be the best way of achieving this? Should I use a ContextMenu and add a pane to a MenuItem somehow, or is there something else I should look at? jewelsea It's kind of difficult to do well with the current JavaFX 2.2 API. Here are some options. Use a MenuButton with a graphic set in it's MenuItem This is the approach

Popup window to return data to parent on close

↘锁芯ラ 提交于 2019-11-26 18:49:45
I've got a popup window opened using window.open() . What I want now is for a user to be able to click one of 2 links within this new window: "Allow" or "Don't Allow". When a user clicks one of those links the 'popup' window should close, and return either "allow" or "don't allow" or something along those lines, true / false would do, to the parent window. Is it possible? If so, how? Code: var authWindow = window.open('auth.php', 'authWindow', 'options...'); Then just 2 anchors inside auth.php ? In the calling (parent) window add such JS code: function HandlePopupResult(result) { alert("result

html Modal popup

纵饮孤独 提交于 2019-11-26 18:21:52
问题 How to make a simple modal popup for the following code.And on click on the background the modal popup should not disappear. <html> <input type="textarea"></input> </html> 回答1: Here's a plain-JavaScript example: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Basic modal demo</title> <style type="text/css"> body { margin: 0; } #shade, #modal { display: none; } #shade {

How can you create pop up messages in a batch script?

a 夏天 提交于 2019-11-26 18:08:26
问题 I need to know how to make popup messages in batch scripts without using VBScript or KiXtart or any other external scripting/programming language. I have zero clue about this... had no starting point even. I am aware of NET SEND but the Messenger service is disabled in my current environment. 回答1: With regard to LittleBobbyTable's answer - NET SEND does not work on Vista or Windows 7. It has been replaced by MSG.EXE There is a crude solution that works on all versions of Windows - A crude

Android: create a popup that has multiple selection options

天涯浪子 提交于 2019-11-26 17:59:47
问题 I've been searching around trying to figure out how to create a popup or a dialog that has 4 options to choose from. I see this picture on the Android developer site: Does anyone know how to code up something like the one on the right? I don't need any icons next to my text, I just need to be able to select from 4 options. 回答1: You can create a CharSequence array with the options you want to show there and then pass the array to an AlertDialog.Builder with the method setItems(CharSequence[],