dialog

Jquery UI dialog in place of javascript confirm

时光怂恿深爱的人放手 提交于 2019-12-19 07:49:47
问题 I have a bunch of validation javascript processes with confirms. I want to use jquery ui dialog, but I need to return true for the rest of the validation processes. For example: var where_to_coupon = confirm(pm_info_msg_013); if (where_to_coupon== true) { doSubmit=true; return doSubmit; So I need a function to replace confirm with a UI dialog, pull the message string (pm_info_msg_013), and use my own buttons or UI buttons to return true for the validation process. Not sure where to start with

How to overlay a button programmatically?

北慕城南 提交于 2019-12-19 04:59:46
问题 What I would like to accomplish is to, at runtime, place a button in the middle of the screen, as the very top layer, overlaying anything below it. (It's not big, so it will not completely cover the screen, just whatever happens to be below it.) I looked at creating a custom dialog, however that blocks all other user input. I want all of the views below this new button to act normally and respond to the user, but I just want to add (and later remove) the button above everything. Hopefully

Android listview inside tab layout inside dialog can't get scroll bars to show up

末鹿安然 提交于 2019-12-19 04:39:18
问题 I have a custom dialog class that extends Dialog. Inside this I have a Tab Layout with 2 tabs. In each tab I have a list view. Everything works but I can't get scroll bars to show up. Here is my XML: <?xml version="1.0" encoding="utf-8"?> <TabHost xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/TabHost01" android:layout_width="300dp" android:layout_height="300dp"> <LinearLayout android:orientation="vertical" android:layout_width="wrap_content" android:layout_height

Android listview inside tab layout inside dialog can't get scroll bars to show up

时间秒杀一切 提交于 2019-12-19 04:39:10
问题 I have a custom dialog class that extends Dialog. Inside this I have a Tab Layout with 2 tabs. In each tab I have a list view. Everything works but I can't get scroll bars to show up. Here is my XML: <?xml version="1.0" encoding="utf-8"?> <TabHost xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/TabHost01" android:layout_width="300dp" android:layout_height="300dp"> <LinearLayout android:orientation="vertical" android:layout_width="wrap_content" android:layout_height

WPF multithreaded progress dialog

风格不统一 提交于 2019-12-19 04:24:18
问题 Updated This is kind of an interesting problem I am experiencing. I need to have a progress dialog show when a background process is running. Normally, this would work but the problem is that I need to set public static data within the background process. Here is an example of what I am attempting to accomplish: public partial class MainWindow : Window { public static Service binding; public static Result lr; public progressDialog dlg; private void login() { string sPwd = txtPwd.Password;

Displaying a custom dialog when the user exits the browser?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-19 03:41:33
问题 Yes, I realize this is horrible UI and bad accessibility wise, but I am forced to seek out the options due to contracted work ( to which I didn't initially agree upon and am stuck with ). I know that you can assign an event handler to onbeforeunload like: window.onbeforeunload = function() { return 'You have unsaved changes!'; } That would bring about a dialog generated by the OS/browser which cannot be customized. It would ask you to Cancel your request or go on. So far it seems the only way

Displaying a custom dialog when the user exits the browser?

爷,独闯天下 提交于 2019-12-19 03:41:32
问题 Yes, I realize this is horrible UI and bad accessibility wise, but I am forced to seek out the options due to contracted work ( to which I didn't initially agree upon and am stuck with ). I know that you can assign an event handler to onbeforeunload like: window.onbeforeunload = function() { return 'You have unsaved changes!'; } That would bring about a dialog generated by the OS/browser which cannot be customized. It would ask you to Cancel your request or go on. So far it seems the only way

How to refresh the page after closing p:dialog

可紊 提交于 2019-12-19 03:31:52
问题 I've the below dialog: <h:form id="r1"> <p:commandButton value="Basic" type="button" onclick="PF('dlg1').show();" /> <p:dialog header="Basic Dialog" widgetVar="dlg1"> <h:outputText id="test" value="Welcome to PrimeFaces" /> </p:dialog> </h:form> How can I refresh the JSF page after closing the dialog? 回答1: The <p:dialog> supports the ajax close event. This only requires it being placed inside a <h:form> (on contrary to the general recommendation), so you need to make sure that it's already

PrimeFaces nested form inside p:dialog with appendTo="@(body)

萝らか妹 提交于 2019-12-19 02:39:38
问题 I have this fragment: <h:form id="form"> <!-- other content --> <p:panel id="panel" header="test"> <p:inputText id="input1" value="#{viewScope.prop1}" required="true" /> <p:commandButton id="button1" process="@form" update="@form @widgetVar(dialog)" oncomplete="PF('dialog').show()" value="ok" /> </p:panel> <!-- other content --> </h:form> <p:dialog id="dialog" header="dialog" widgetVar="dialog" modal="true"> <h:form id="form2"> <p:inputText id="input2" value="#{viewScope.prop1}" required=

Change dialog text color on 5.0+

我的梦境 提交于 2019-12-19 02:27:26
问题 I'm trying to change the text color in dialog boxes, most commonly AlertDialog. I've tried every solution at these pages: AlertDialog styling - how to change style (color) of title, message, etc How can I change the color of AlertDialog title and the color of the line under it How to change theme for AlertDialog Most solutions work BELOW 5.0 but above it, and they don't seem to have any effect. What different attributes should I be changing for 5.0+? The parent theme of my app is "Theme