popup

Prevent JQuery Mobile from closing a popup when user taps outside of it

大城市里の小女人 提交于 2019-12-10 00:55:18
问题 I'm using JQuery Mobile 1.2.0 alpha 1. Currently, when I open a popup and tap outside of it anywhere on the screen the popup is being closed. I was wondering if there's any JQuery Mobile attribute I have missed which can be set and prevent closing the popup upon outside-tap? (modal popup) (The documentation for popups can be found here) EDIT: I had an idea of solving this but still can't implement it to work: When a JQM popup show up theres a div which covers all of the screen with class of

Redirect to a new tab within javascript file

微笑、不失礼 提交于 2019-12-10 00:44:12
问题 I have code that sets: top.location.href = [someurl] But I want it to open up in a new tab. Is there anyway to have the above code include: target="_blank" ? 回答1: Use the method window.open(url, target) to open a new window (it depends on the browser or the user's settings whether the URL is opened in a new window or tab): window.open('http://stackoverflow.com', '_blank'); For more information about window.open() , read the documentation at w3schools. Please note: Randomly opening a new

Flex Air HTMLLoader blank pop up window when flash content is loaded

心已入冬 提交于 2019-12-09 23:29:41
问题 I have a flex Air program that loads external content with the HTMLLoader. Now for some reason whenever I load a page that has any flash content a blank system window pops up outside of my program. It's completely blank, all white with min, max and close buttons. If I close it any flash content I loaded stops working. For the life of my I can't figure out what's happening and there's no messages in the console and no title for the window. Does anyone have any ideas? I appreciate any help you

jquery can do this? popup window for value

断了今生、忘了曾经 提交于 2019-12-09 17:50:31
问题 I used JavaScript to open a new window(child) when user clicks on button from parent window. On new window(child), I have textbox and button, I need to get the value of the textbox and pass to parent window when user clicks on button, while closing the child window, I need the updated value inserted into parent window (without refreshing parent window) so I can display my value to some hidden field/ label of the parent window , how can I do that? 1- parent window has button, clicked child

window.open height isn't the same in Google Chrome as other browsers

六月ゝ 毕业季﹏ 提交于 2019-12-09 16:30:56
问题 I am using javascript's window.open to open a browser window on a user click at a specified width and height (760x581), and this works correctly on Internet Explorer, Safari, and Firefox, but Google Chrome is giving me issues. In the other browsers, the height is correctly used as the height of the content, but in Google Chrome it is making the actual browser window 581 pixels tall instead of the content. Is there a way to fix this? <a href="http://domain.com/example.php" onclick="window.open

Is “tip-of-the-day” good? [closed]

有些话、适合烂在心里 提交于 2019-12-09 14:45:48
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed last year . Many programs (often large ones, like MS Office, The GIMP, Maxthon) have a feature called "tip-of-the-day". It explains a small part of the program, like this one in Maxthon: "You can hide/show the main menu bar by pressing Ctrl+F11" You can usually browse through them by

Set position (to right) of Qt QPushButton popup menu

╄→尐↘猪︶ㄣ 提交于 2019-12-09 12:55:47
问题 I am writing a popup menu for a Qt push button widget. Whenever the push button is clicked, a menu pops up (below the push button). The popup menu is left-sided below by default. Are there any ways to make the popup menu to pop up on the right side below the push button? There is no set position function, so I wonder if there is some sophisticated way of doing it? Here is some code (for popup menu): QMenu *menuMode = new QMenu(this); min = menu ->addAction("In"); mout = menu ->addAction("out"

ios: How to display “choose wireless connection” popup?

若如初见. 提交于 2019-12-09 12:07:52
问题 If there is no internet connection and you start for example the safari app with Ipad or Iphone, a popup appears saying: "Choose wireless network" Is there a way to force this popup to show up in my app when I want to? The problem is, I have a button in my app which connects the user to facebook. After pressing the button the safari browser opens and shows the facebook authorization page. If there is no internet connection this popup appears, but there is no way to turn back to the app from

How to create a confirmation Pop Up when pushing Back button in iOS?

霸气de小男生 提交于 2019-12-09 07:58:55
问题 I want to add a pop up when someone pushes the "Back" button of my iOS App, to ask the user if he really wants to come back. Then, depending on the user's response, I would like to undo the action or proceed. I've tried to add the code in the viewWillDisappear function of my view and then write the proper delegate but it doesn't work, because it always change the view and then show the pop up. My code is: -(void) viewWillDisappear:(BOOL)animated { _animated = animated; if ([self

Jquery Popup Box

旧时模样 提交于 2019-12-09 07:18:31
问题 I'm new to JavaScript and Jquery. I googled Jquery pop-up examples online. I want the message to say "Our website is not yet complete, but feel free to browse what we have." I'll include the code example I found, but it looks really weird. I'm not sure what the name of the function is and how to execute it using the window.onload = function(); code. I also want to have a button 'close' that closes the text box. Here'a what it should look like: http://demo.tutorialzine.com/2010/12/better