popup

jQuery Mobile Popups and Dialogs

老子叫甜甜 提交于 2019-12-21 09:11:52
问题 jQuery mobile 1.2 alpha introduces Popups while it already has a similar widget, called Dialogs. They both seem very similar in nature. What are the technical differences between Popups and Dialogs? What Popups can do (any practical usecase as example preferred) that is impossible with Dialogs? 回答1: They are quite different beast. Here is my opinion based on my limited experience. Dialogues Dialogues take over the page, they contain a fullscreen dark background to make the "dialog" appear to

Popup and Togglebutton interaction in wpf

老子叫甜甜 提交于 2019-12-21 09:07:35
问题 I have a control that contains a Togglebutton and a Popup. When the ToggleButton is clicked on, the popup appears. When the ToggleButton is unchecked, the popup should close. Additionally, clicking away from the popup should cause it to close, and cause the Togglebutton to uncheck. I've set this up by setting the StaysOpen property of the Popup to false, and setting the IsChecked property of the toggle button to be two-way bound to the IsOpen property of the Popup. All is well, apart from one

Android Lollipop - Bypass lock screen for popup activity

拥有回忆 提交于 2019-12-21 06:30:03
问题 I have Activity1 which is a list screen of items. Each item can be viewed in a separate Activity2 which is displayed as a popup. Activity1 can be launched from the background and displayed even when the screen is locked. Activity1 may also choose to automatically display the contents of an item in the list screen by starting Activity2 . We can bypass the lock screen because both activities have the WindowManagerFlags.DismissKeyguard enabled in the OnCreate method. Before Android Lollipop

Android Lollipop - Bypass lock screen for popup activity

吃可爱长大的小学妹 提交于 2019-12-21 06:29:06
问题 I have Activity1 which is a list screen of items. Each item can be viewed in a separate Activity2 which is displayed as a popup. Activity1 can be launched from the background and displayed even when the screen is locked. Activity1 may also choose to automatically display the contents of an item in the list screen by starting Activity2 . We can bypass the lock screen because both activities have the WindowManagerFlags.DismissKeyguard enabled in the OnCreate method. Before Android Lollipop

Android popup menu

两盒软妹~` 提交于 2019-12-21 04:36:23
问题 I am making an Android app. I have a list of items displaying. I am looking to create a popup menu just like the one that pops up when you tap the avatar of a contact in the contact list. I have tried looking through the Android reference but can not find it. Has anyone created one of these popup menus? A link to the reference or a code sample is fine. Screenshot of menu: http://www.youchoob.org/pics/popup.jpg 回答1: What you are describing is called a 'Quick Action'. This is actually a user

How to get input via a popup and place text in a variable via javascript/jquery

时间秒杀一切 提交于 2019-12-21 04:28:22
问题 I have a button on my page. When clicked a popup box should appear allowing the user to enter text. When OK/Submit is pressed, my jscript will then perform some functions using that inputted data. Very straightforward, but I just can't figure out how to do this. Thanks! 回答1: in it's simplest form, you could use prompt(question, default) : (taken from w3schools: http://www.w3schools.com/js/tryit.asp?filename=tryjs_prompt) function myFunction(){ var x; var name=prompt("Please enter your name",

How do I make a pop up in Tkinter when a button is clicked?

时光毁灭记忆、已成空白 提交于 2019-12-21 04:24:13
问题 How do I make a pop-up in Tkinter when a button is clicked? When the 'About' button is clicked, I want a pop up with the disclaimer + about text. I have tried to set up a def method but it must be very wrong because it's not working as I would like. Any help would be very much appreciated. Thank you import sys from Tkinter import * def clickAbout(): name = ("Thanks for the click") return app = Tk() app.title("SPIES") app.geometry("500x300+200+200") labelText = StringVar() labelText.set (

jQuery fullCalendar + Fancybox popup to edit event

此生再无相见时 提交于 2019-12-21 03:15:13
问题 I am generating events on fullCalendar with this code <script type="text/javascript"> $(document).ready(function() { $('#calendar').fullCalendar({ // put your options and callbacks here header: { right: 'today month,agendaWeek,agendaDay prev,next' }, events: [ <?php foreach($cal_data as $row): ?> { title : '<?php echo $row->plant_name . ' ' . $row->value_2; ?>', start : '<?php echo $row->date . ' ' . $row->time; ?>', allDay: false, url : '<?php echo base_url() . 'events/events_edit/' . $row-

How to popup list like a spinner without spinner in android?

ε祈祈猫儿з 提交于 2019-12-20 14:23:32
问题 I have a spinner widget in my activity which lets users pick a list name. Normally, the function of the spinner is to switch between lists but for a couple of instances, I swap out the selection change listener to perform a different function with the same list of options. Once the selection has been made, the old listener is restored and life goes on. This is a bad and buggy arrangement. Instead, I would like to have a function that just takes a selection listener and some other parameters

Create/Edit/Save data in a jQuery pop-up for ASP.NET-MVC and Linq2Sql

本小妞迷上赌 提交于 2019-12-20 10:58:05
问题 I have a MVC page which allows creation and editing of a subcontract. When the user has to select a company for the subcontract, I would like for them to have the option to create a new company. I've made a jQuery pop-up with the company fields, but I don't know how to then save this information to the company table. I would also like to be able to use the same pop-up to allow the user to edit the information for an existing company, but need direction in how to send the information to the