popup

Avoiding a Windows Firewall popup

99封情书 提交于 2019-12-31 22:21:49
问题 My organisation produces a suite of Windows applications that make use of networking, and so when users run our software for the first time, the Windows Firewall (if it is running) brings up a pop-up, informing the user that our app(s) are trying to use the network, prompting the user to allow or deny access. This occurs with plenty of other apps (Spotify, to give one example), but ee'd like to prevent these popups from happening, as they can be a bit problematic for our users. Some

Django Admin popup functionality

青春壹個敷衍的年華 提交于 2019-12-31 10:47:09
问题 This topic is fairly common (most explicitly detailed here: http://www.hoboes.com/Mimsy/hacks/replicating-djangos-admin/), but I'm still having trouble with it. I'm trying to use the "plus" button functionality used in the admin site where one can add an additional foreign key to a linked entry. In the admin site, a popup displays allowing the user to submit a new field and then that new value is populated on the original form. I think my issue centers around the inclusion of this line:

Django Admin popup functionality

假如想象 提交于 2019-12-31 10:46:22
问题 This topic is fairly common (most explicitly detailed here: http://www.hoboes.com/Mimsy/hacks/replicating-djangos-admin/), but I'm still having trouble with it. I'm trying to use the "plus" button functionality used in the admin site where one can add an additional foreign key to a linked entry. In the admin site, a popup displays allowing the user to submit a new field and then that new value is populated on the original form. I think my issue centers around the inclusion of this line:

How can I do OAuth request by open new window, instead of redirect user from current page?

那年仲夏 提交于 2019-12-31 07:58:06
问题 I have done OAuth authentication with Twitter and Facebook. Currently, with each of these site, my server redirect user to a specified URL (for example, http://api.twitter.com/oauth/authorize with Twitter), then receive authentication parameters by callback url. But by that way, the users get redirected out of my page (to Facebook or Twitter), and only returns after input correct username & password. It's like the way http://techcrunch.com do it when a user try to tweet a post. I remember

How to create an image map using Java Swing?

跟風遠走 提交于 2019-12-31 07:29:08
问题 I need to make an image map using Swing that displays a background image, and then when the mouse hovers over (or clicks) specific hotspots, I need to pop up a 'zoomed-in' image and have it display. I was thinking of extending JPanel to include an image reference and have that drawn thru the paintComponent(g) method. This part I have done so far, and here's the code: public class ImagePanel extends JPanel { private static final long serialVersionUID = 1L; private Image image; public

how to create alertdialog outside of an application?

廉价感情. 提交于 2019-12-31 05:38:10
问题 I want to create an alertdialog outside of my application. AlertDialog.Builder builder = new AlertDialog.Builder(context); builder.setTitle(Config_ConstantVariable.latest); builder.setMessage(title); builder.setIcon(R.drawable.push_logo); builder.setCancelable(false) .setPositiveButton(Config_ConstantVariable.alertbtnyes, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { Intent intent = new Intent(context, Main_ParticularNewsDetail.class); Bundle

Apache httpd basic auth bypass popup with html/jsp page

落爺英雄遲暮 提交于 2019-12-31 04:05:12
问题 I want to replace Apache's httpd basic authentication( pop up based ) with a normal form-based login page. Is it possible to do that? 回答1: I found the answer!!! Hope it may help some one. Apache httpd server internally supports mod_auth_form, using that we can get credentials from user by showing form-based login page. how to use mod_auth_form - https://httpd.apache.org/docs/2.4/mod/mod_auth_form.html Way to preserve the request uri: Connect via AJP protocol. Basic flow - Httpd asks for user

Emacs / CVS / OpenSSH: preventing password popup

混江龙づ霸主 提交于 2019-12-30 18:26:11
问题 I'm using GNU Emacs on my Ubuntu netbook in fullscreen mode. When I edit files that are under version control and hit C-x v v to commit the latest changes, an OpenSSH popup window will open and ask me for my password for the server on which my repository lives. Unfortunately, because of the fullscreen mode, the popup window will not come up front and I cannot enter my password. But it's still somehow modal, so I also can't go back to emacs and, say, leave fullscreen mode either (or do

How can I change the background color of a spinner popup?

青春壹個敷衍的年華 提交于 2019-12-30 17:22:08
问题 I'm trying to set the background color of a spinner popup but everything I've tried didn't work properly. This is the spinner control: <Spinner android:id="@+id/myspinner" android:layout_width="fill_parent" android:layout_height="wrap_content" android:background="@null" android:drawSelectorOnTop="true" /> When I click on it, it shows a popup with a white background, and I want to change that. The xml line wich I use to populate the popup is: <RelativeLayout xmlns:android="http://schemas

How does or is it possible for a browser keep track of a pop up window

风格不统一 提交于 2019-12-30 11:35:09
问题 I noticed when using the Google Chat feature from your Google Mail that you can pop out a chat into its' own window. Then when I went to close the Google Mail window it warned that other windows would also be closed if I continued and then showed a list of the windows. How is this done? Is it possible to track whether a window you invoked has been closed? 回答1: Yes, when you do a window.open in JavaScript, you can set it to a var like: myWindow = window.open(...) Then you could bind events to