popup

IE8 Crashes Strangely on JavaScript Popup

对着背影说爱祢 提交于 2019-12-01 19:54:23
I am facing a strange issue after the popup is created onclick . The popup opens up but hangs immediately on IE8 (works fine on all the other browsers including IE6). But on adding the alert box as show in the JavaScript code, the popup works fine. I am using **https** and not **http** and i feel popup is not able to load the JS file because of SSL . Here is the how i am generating the onclick event: <a id="forgotPasswordLink" href="#" onclick="openSupportPage();"> Some Text </a> The onclick function is defined this way: function openSupportPage() { var features = "width=700,height=400,status

Jquery - waiting for user input

帅比萌擦擦* 提交于 2019-12-01 19:22:23
im trying to make a popup that comes up to confirm a users action (deleting a row in a table, for example..). aiming at making the popup entirely HTML and Javascript. What i can't get my head around is how i would make the javascript wait for the users input, but still function for other javascript events. (other click triggered stuff, etc..). What i thought i'd do is something like if(makePopup("Are you sure?") == true) { //bla bla } where makePopup function would create a popup containing the string passed to it, and give the user a yes or no option. somewhere in that function i'd need a

how to work with pop ups window in android webview

青春壹個敷衍的年華 提交于 2019-12-01 18:36:46
I am developing browser like application using a Webview for my own understanding. I am not yet clear how to work with pop-ups in android Webview. I came across these methods onJsAlert() , onJsBeforeUnload() , onJsConfirm() etc to handle java script pop ups. from this link and also developer link these work when there is a jsAlert but how do i handle pop-up which opens in new window ? I just want to know is there is any other way to handle pop up for websites in android webview like opening in new tab or open in new window using webview. I am also having trouble to open urls which are opened

How can I open a new window using a URL that is generated inside the getScript callback function, and avoid pop-up blockers?

天大地大妈咪最大 提交于 2019-12-01 17:49:42
问题 The issue I am having is when I try to do something like the below code, the window will be blocked by pop-up blockers. I am using getScript so that I can make cross domain requests. I am using jQuery 1.4.2 to do the below. Example of code that will be blocked: //Code that gets blocked by pop-up blockers $(document).ready(function(){ $(".popup").click(function(){ $.getScript("URL_To_A_Javascript_File", function(){ window.open("dynamicURL", "_blank"); }); }); }); Example of code that gets past

make a WPF Popup not screen bound

亡梦爱人 提交于 2019-12-01 16:53:49
The default behavior of a Popup is if it is placed where it would extend beyond the edge of the screen, the Popup will reposition itself. Is there a way to turn this behavior off? I have a Popup that the user can drag around the screen. However, when it gets to the edges it gets stuck. It gets stuck on the edge and stays there until the mouse is dragged far from the edge. Also, I have two monitors and when the Popup is dragged to the edge the two monitors share I get flickering. The Popup flickers between the two monitors. Just use interop to move your popups (drag them) Here is code for Thumb

How can we count the time of process?

。_饼干妹妹 提交于 2019-12-01 16:52:18
I created a PopupPanel and have shown it. I want to hide it after one minute has passed. During that one minute, the process should not be stopped or paused. How can I achieve this behavior? GWT has its own implementation of Timer . Here a really small example: public void onModuleLoad() { final PopupPanel popUp = new PopupPanel(); Label text = new Label("gone in a sec"); popUp.setWidget(text); Timer timer = new Timer() { @Override public void run() { popUp.hide(); } }; popUp.center(); timer.schedule(3000); } Try to use: java.util.Timer And you can do something like this: int seconds = 60;

Magnific Popup - Popup disappearing on click

被刻印的时光 ゝ 提交于 2019-12-01 16:38:05
I've just recently implemented the 'Magnific Popup' and the popup comes up fine, however when I click an input box the entire popup disappears back to the parent page. On the examples shown on the plugin website, the entire dialog box is clickable until you click outside of that box. I'm hoping its just something extremely simple I've missed, but it's still doing my head in. I really appreciate any help I can get! Thanks :) If you're using "ajax" content type, you need to make sure that you've got only one root node. http://dimsemenov.com/plugins/magnific-popup/documentation.html#ajax_type E.g

'window.open' blocked by Firefox

北城以北 提交于 2019-12-01 16:36:33
I use window.open and call it at the document ready event, but it is blocked by a popup blocker in Firefox. Then I added this to the function and make a call of this function from a button and then trigger the button click without success: $(function(){ abcd(); }); function abcd(){ var popup = window.open("http://localhost/johndyer-mediaelement-7ed6c51/demo/index.php","mypopup","width=500,height=300"); } Is there some way to open an external popup window or new tab on browser when the page loaded? Click Upvote Don't open pop up advertising. It's annoying. On the other hand, if it's a message

Magnific Popup - Popup disappearing on click

╄→гoц情女王★ 提交于 2019-12-01 16:34:20
问题 I've just recently implemented the 'Magnific Popup' and the popup comes up fine, however when I click an input box the entire popup disappears back to the parent page. On the examples shown on the plugin website, the entire dialog box is clickable until you click outside of that box. I'm hoping its just something extremely simple I've missed, but it's still doing my head in. I really appreciate any help I can get! Thanks :) 回答1: If you're using "ajax" content type, you need to make sure that

Display confirmation popup with JavaScript upon clicking on a link

╄→尐↘猪︶ㄣ 提交于 2019-12-01 16:33:43
How do I make one of those hyperlinks where when you click it, it will display a popup asking "are you sure?" <INPUT TYPE="Button" NAME="confirm" VALUE="???" onClick="message()"> I already have a message() function working. I just need to know what the input type for a hyperlink would be. <a href="http://somewhere_else" onclick="return confirm()"> When the user clicks the link, the confirm function will be called. If the confirm function returns false , the link traversal is cancelled, if true is returned, the link is traversed. <a href="http://something.com" onclick="return confirmAction()"