popup-blocker

Issues With Pop-Up Blocking (this shouldn't be happening?)

萝らか妹 提交于 2019-12-11 03:26:10
问题 First to clarify, I am trying to open a pop-up in response to a user event. I am developing an application on Facebook that involves e-commerce transactions, and for reasons related to my EV SSL certificates, I have to open our billing terminal in a new, fully-secure window. As such, the process goes as follows: User selects "new card" as payment method and enter's the recipient's shipping address User clicks "Place Order," which uses an AJAX call to validate the address, and IF valid, syncs

detect error: “popup_blocked_by_browser” for google auth2 in javascript

牧云@^-^@ 提交于 2019-12-10 14:37:28
问题 After lot of googling didn't find solution how to catch error of window popup blocker for google auth2 getting an error in console error: "popup_blocked_by_browser". all I want is to do is tell user that pop up should be enabled for auth. samples using window.open() are not good, since they open useless window. As I see a lot of people searching for this. Any advice? 回答1: Was having same problem. Seems browser(s) (or at least chrome) will block any "window.open" call which it was invoked not

Check if pop-up blocker is enbled when open new tab

烈酒焚心 提交于 2019-12-05 02:18:28
I want to open new window in new process/context in chrome, (Im not sure if it possible with window.open but with the following example its working ) currently if it was regular window you can check with the following example and to see if the pop-up blocker is enabled ar newWin = window.open(url); if(!newWin || newWin.closed || typeof newWin.closed=='undefined') { //POPUP BLOCKED } but I want to open the new window in new process without window.open like following var prod = document.getElementById("myElement"); var aTag = document.createElement('a'); aTag.setAttribute('href',"http://cnn.com"

Pop up blocker API- how to check if user has it enabled

浪尽此生 提交于 2019-12-03 10:58:15
问题 I need to know when the user clicks on the button that triggers window.open if there is stable API/way to know beforehand if the user actively has a pop-up blocker? In some cases the user doesn't know/pay attention that they have pop-up blocker (that block the new window). I would like to inform them by some dialog/or something to authorize a new window by clicking on allow. 回答1: Window.open(...) returns a handle to the new window if it exists. If it doesn't have a handle to the new window,

Pop up blocker API- how to check if user has it enabled

試著忘記壹切 提交于 2019-12-03 01:25:40
I need to know when the user clicks on the button that triggers window.open if there is stable API/way to know beforehand if the user actively has a pop-up blocker? In some cases the user doesn't know/pay attention that they have pop-up blocker (that block the new window). I would like to inform them by some dialog/or something to authorize a new window by clicking on allow. Window.open(...) returns a handle to the new window if it exists. If it doesn't have a handle to the new window, that's a pretty good indication the window was blocked. https://developer.mozilla.org/en-US/docs/Web/API

How to turn off popup blocker through code in Watin?

为君一笑 提交于 2019-12-01 11:58:49
问题 I am facing trouble in turning the popup blocker off through watin code. Could anyone please help me in knowing how to turn off the popup blocker of IE through watin? Is there any way to turn off the popup blocker of tool bars (like google, yahoo or msn) if any of them are installed in IE? Thanks for your help in advance. 回答1: You can use .NET to change the registry keys for IE. See http://support.microsoft.com/kb/843016 for more information on the specific keys. All: HKEY_LOCAL_MACHINE

How do I detect popup blocker in Chrome?

断了今生、忘了曾经 提交于 2019-11-30 10:41:29
问题 I have searched many issue in stack overflow and might be duplicate here Detect Popup But not helped for me while testing in Chrome (tested v26.0.1410.64) Following Approach Worked in IE and Firefox but not in Chrome var popup = window.open(winPath,winName,winFeature,true); if (!popup || popup.closed || typeof popup.closed=='undefined'){ //Worked For IE and Firefox alert("Popup Blocker is enabled! Please add this site to your exception list."); window.location.href = 'warning.html'; } else {

How do I detect popup blocker in Chrome?

雨燕双飞 提交于 2019-11-28 17:38:14
I have searched many issue in stack overflow and might be duplicate here Detect Popup But not helped for me while testing in Chrome (tested v26.0.1410.64) Following Approach Worked in IE and Firefox but not in Chrome var popup = window.open(winPath,winName,winFeature,true); if (!popup || popup.closed || typeof popup.closed=='undefined'){ //Worked For IE and Firefox alert("Popup Blocker is enabled! Please add this site to your exception list."); window.location.href = 'warning.html'; } else { //Popup Allowed window.open('','_self'); window.close(); } Any better solution that works for Chrome

Popup blocking in Google Chrome causing issues with Capybara/Rspec tests

此生再无相见时 提交于 2019-11-27 16:35:57
问题 I'm writing some automated tests using Capybara/RSpec, I choose/configure the driver by using this little bit of ruby: Capybara.register_driver :selenium_chrome do |app| Capybara::Selenium::Driver.new(app, :browser => :chrome) end I'm testing whether or not a button I click is opening a popup window and that the window is displaying the content it should. The issue is that when the test opens the window, the Google Chrome popup blocker blocks it, causing the tests to fail. Disabling the

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