popup

System.Windows.Forms.WebBrowser open links in same window or new window with same session

只愿长相守 提交于 2019-11-26 16:29:36
问题 When using the .NET WebBrowser control how do you open a link in a new window using the the same session (ie.. do not start a new ASP.NET session on the server), or how do you capture the new window event to open the URL in the same WebBrowser control? 回答1: I just spent an hour looking for the answer, so I though I would post the results here. You can use the SHDocVwCtl.WebBrowser_V1 object to capture the NewWindow event. NOTE: Code from http://www.experts-exchange.com/Programming/Languages

Toolbar options menu background color

北慕城南 提交于 2019-11-26 16:17:01
问题 I am using the toolbar for android. I just want to change the background color of the overflow menu. But it is not changing. Style xml <style name="MyDarkToolbarStyle" parent="Widget.AppCompat.Toolbar"> <item name="popupTheme">@style/PopupMenuStyle</item> <item name="theme">@style/ThemeOverlay.AppCompat.Dark.ActionBar</item> </style> <style name="PopupMenuStyle" parent="android:Widget.Holo.Light.PopupMenu"> <item name="android:popupBackground">@android:color/white</item> </style> Toolbar XML

is it possible to open a popup with javascript and then detect when the user closes it?

老子叫甜甜 提交于 2019-11-26 15:59:20
The question is pretty much all in the title. Is it possible (and how?) to open a popup with javascript and then detect when the user closes it? I am using jquery within the project so a jquery solution would be good. Cheers! Tim Down If you have control over the contents of the pop-up, handle the window's unload event there and notify the original window via the opener property, checking first whether the opener has been closed. Note this won't always work in Opera. window.onunload = function() { var win = window.opener; if (!win.closed) { win.someFunctionToCallWhenPopUpCloses(); } }; Since

Why is Chrome showing a “Please Fill Out this Field” tooltip on empty fields?

三世轮回 提交于 2019-11-26 15:51:24
问题 I was contacted by my client saying that users complaint saying that some fields now show a tooltip with a message "Please Fill out This Field". I couldn't believe what I heard... but the client is right - using latest Chrome version some fields show a browser tooltip with this message even side by side with my validators! What's the problem? What am I missing? Thanks. EDIT: The HTML generated by my user control is as follows: <input name="tbMontante" type="text" maxlength="8" size="10"

Display UIViewController as Popup in iPhone

亡梦爱人 提交于 2019-11-26 15:38:44
Since there is no complete, definitive answer to this common recurring question, I'll ask and answer it here. Often we need to present a UIViewController such that it doesn't cover full screen, as in the picture below. Apple provides several similar UIViewController , such as UIAlertView , Twitter or Facebook share view controller, etc.. How can we achieve this effect for a custom controller? CRDave NOTE : This solution is broken in iOS 8. I will post new solution ASAP. I am going to answer here using storyboard but it is also possible without storyboard. Init: Create two UIViewController in

Change background of EditText&#39;s error message

让人想犯罪 __ 提交于 2019-11-26 15:37:50
问题 What I want to do is change the background color (set custom drawable) of a popup error message displayed after using setError() method. Currently, it looks like this: I've found that Android has two files: popup_inline_error.9.png popup_inline_above_error.9.png And you're supposed to be able to set them using two attributes: errorMessageBackground errorMessageAboveBackground But when I try to set them in my theme, all I get is: <item name="errorMessageBackground">@drawable/popup_inline_error

How to handle login pop up window using Selenium WebDriver?

与世无争的帅哥 提交于 2019-11-26 15:19:58
How to handle the login pop up window using Selenium Webdriver? I have attached the sample screen here. How can I enter/input Username and Password to this login pop up/alert window? Thanks & Regards, Pavel Janicek Use the approach where you send username and password in URL Request: http://username:password@the-site.com So just to make it more clear. The username is username password is password and the rest is usual URL of your test web Works for me without needing any tweaks. Sample Java code: public static final String TEST_ENVIRONMENT = "the-site.com"; private WebDriver driver; public

How to create a completely custom Dialogue/Popup in Android (change overlay colour and dialogue window layout)

只谈情不闲聊 提交于 2019-11-26 15:07:54
问题 I would like to completely re-skin the default dialogue component in Android. Specifically I would like to do this: Change the semi-transparent overlay background from the default black to a semi-transparent white. Change the Dialogue window by removing the default windowed frame border, and replacing it with a layout defined in XML (it's just going to be a borderless graphic with floating buttons. no actual frame.) I have seen tutorials about creating a custom layout for within the dialogue

How would I implement stackoverflow&#39;s hovering dialogs?

ⅰ亾dé卋堺 提交于 2019-11-26 15:02:00
问题 I am in love with stackoverflow's single-color "click-to-close' hovering dialog boxes that greet a user when they try to vote and aren't logged in or use the site incorrectly. Any idea how and/or what technology Jeff used to implement these neat little devices? EDIT: I'm specifically talking about the SQUARE dialog boxes that say "Click To Close" on them. I know how to implement the rectangular strip on the top of the screen. 回答1: Although I was under the impression they used jQuery's UI

Window.Open POST

佐手、 提交于 2019-11-26 14:34:37
问题 I have a link which when clicked I open a window with window.open like below. window.open("edit.jsp?clientId=" + clientId + "&eventId=" + eventId , 'height=600,width=800,scrollbars=1,location:no,menubar:no,resizable=1,status:no,toolbar:no'); I dont want the parameter to pass here instead I want to something like post so people cant copy url . 回答1: You cannot trigger a javascript popup and then force a post request. Three options: Trigger a POST form with target="_blank" using javascript (but