popup

jquery click on href link - have to click twice

故事扮演 提交于 2019-12-22 18:08:39
问题 The function works, but the popup will open only after the button is clicked twice (and then, subsequent clicks get the action on the first click). $(document).ready(function(){ $('a#printPosBtn').on('click', function(e) { e.preventDefault(); $('.printPopup').popupWindow({ centerBrowser:1, height:500, width:720, scrollbars: 1, resizable: 1 }); return false; }); }); What's wrong? 回答1: I think that is because you are actually initialising the plugin within the click handler. From a quick skim

Causing a PostBack to a different page from a PopUp

时间秒杀一切 提交于 2019-12-22 16:37:44
问题 I have a main page and a details page. The details page is a javascript popup invoked from the main page. When the 'save' button is clicked on the details page, I want the main page to 'refresh.' Is there a method of invoking a postback to the main page while also maintaining the save postback from the details page? Edit - Using window.opener.location.reload(true) does work, but it prompts the user to resend information. This 'document.location.href = document.location.href;' does not work

window.opener is not right

£可爱£侵袭症+ 提交于 2019-12-22 12:23:51
问题 I'm opening a popup and want to have a click action in it cause the execution of some jQuery in the page that opened it. Everything I find online says I should be able to do that with window.opener, (e.g. JQuery - Write to opener window) But when I console.log window.opener , it's just 'true', not a real object. window.opener.jQuery is undefined as is window.opener.$ and 'window.opener.document'. Here's the window open code: window.open('http://google.com' , "moderatorWindow", 'width=300,

Android: How to/Show wifi (select SSID to connect) as dialog or popup?

别等时光非礼了梦想. 提交于 2019-12-22 12:23:11
问题 I develop an application and want to show wifi networks as a dialog (popup). My code is: startActivity(new Intent(WifiManager.ACTION_PICK_WIFI_NETWORK)); It just show wifi setting as: But I want it show as dialog like this : I wonder this is wifi dialog or we can show another activity as a dialog. 来源: https://stackoverflow.com/questions/28828179/android-how-to-show-wifi-select-ssid-to-connect-as-dialog-or-popup

Is it possible to capture a Windows pop-up message box from inside a Java program?

时间秒杀一切 提交于 2019-12-22 11:28:50
问题 I have a Java process that runs on a Windows server where I have to kick off a command line exe. I am using Process p = Runtime.getRuntime().exec(command); OutputStream stdin = p.getOutputStream(); InputStreamstderr = p.getErrorStream(); InputStream stdout = p.getInputStream(); to run the process and capture standard in/out streams. The problem I am having is one of the exe's that I have to run will throw a pop-up message box that needs to have "Ok" clicked on before it will finish failing

Locking popup position to element, or faking a popup with layers for in-place editing in an ItemsControl

随声附和 提交于 2019-12-22 11:20:48
问题 What I am trying to achieve is essentially in-place editing of a databound object inside an ItemsControl in wpf. my ItemsControl is a horizontal WrapPanel containing multiple instances of a usercontrol ( NameControl ) which displays as a little pink Glyph with a person's name. It looks like this With a popup I am able to show an editor for this "Name" (Other properties of the bound object things like Address , Gender etc.) and this works absoluttely fine. My XAML at this point would be along

How do I check via jQuery if a jQuery Mobile popup is open?

被刻印的时光 ゝ 提交于 2019-12-22 10:54:42
问题 I'm able to activate the following jQuery Mobile popup: <div data-role="popup" id="waiting1" data-overlay-theme="a" data-corners="false" data-tolerance="30,15" data-dismissible="false"> <div class="modalAlert" id="waitingContent"> Waiting... </div> </div> using the jQuery command: $(waiting1).popup('open'); but then I want to confirm programmatically that the popup opened, and trigger an alert using an IF statement if it didn't. I tried using the CSS display attribute: if ( $(waiting1).css(

Not able to open panel or popup programatically in jQuery Mobile

风格不统一 提交于 2019-12-22 09:39:04
问题 I'm building my first JQM site so I think I'm missing some simple little thing that's causing me a bunch of problems. I have setup the page, header, content and footer and a panel for the menu. Then I have I have a js file with the following: $(document).on('pageinit', function (event) { alert('this works every time you navigate to another page'); $("#menu-panel").panel("open");//this works the first time only $("#new-lump-sum").popup("open");//this never works }); Can anyone tell me why I'm

automatic open pop-up new window using Javascript [duplicate]

依然范特西╮ 提交于 2019-12-22 06:57:03
问题 This question already has an answer here : window.open not working when attached on onload event in chrome and safari [duplicate] (1 answer) Closed 12 months ago . How to open pop-up new window when load page using Javascript? I want, when a website load, it will automatic open popup new window. I use the following: <script type="text/javascript"> function open_on_entrance(url,name) { window.open('http://www.google.com','google', ' menubar,resizable,dependent,status,width=300,height=200,left

Basic Help with SimpleModal and ASP.NET

Deadly 提交于 2019-12-22 06:37:05
问题 Integrating SimpleModal with ASP.NET I want to thank Eric for producing SimpleModal and compliment the demos. It looks fantastic.. I only wish I could figure out how to use it.. (it's me, I'm missing some chromosome or something.) Sorry in advance for my noobinicity. I've seen several demos where specific functions are talked about and called, but this assumes that the scripts are integrated correctly into the project. This is the crux of the issue I am having, I don't know what the heck I'm