dialog

Progress Dialog not showing up in AsyncTask

不羁岁月 提交于 2020-01-05 08:06:36
问题 I have an Android application with an AsyncTask which is responsible for downloading a file from the internet. This AsyncTask is executed when clicking on an item in a Listview. So I have a custom adapter and in the OnItemClickListener of the Listview, I start the download and execute the AsyncTask. Now, my adapter contains the following code to start the AsyncTask named FileDownloader: @Override public void onClick(View view) { try { FileDownloader fd = new FileDownloader(activity); // some

How to show alertdialog when clicking on button in item in list view

孤街浪徒 提交于 2020-01-05 07:39:08
问题 I have tried the following code .. btnRemoveItem.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View arg0) { // TODO Auto-generated method stub Bundle b = new Bundle(); b.putLong("index", item.id); AlertDialog.Builder builder = new AlertDialog.Builder(getApplicationContext()); builder.setTitle("Are you sure you ?"); builder.setMessage("Are you suer you want to remove this item from the cart?"); builder.setPositiveButton("No", new DialogInterface.OnClickListener(

Use WatiN for automation upload file on the website

允我心安 提交于 2020-01-05 05:32:25
问题 I need upload file on the website. But Have a problem, i can't choose file automatic in code. Always browser show me choose file window. What wrong in my code? IE ie = new IE("https://www.xxxx.com/WFrmlogin.aspx"); FileUploadDialogHandler uploadHandler = new FileUploadDialogHandler(@"D:\065-6405_URGENT.xls"); ie.WaitForComplete(); ie.TextField(Find.ById("txtUser")).TypeText("login"); ie.TextField(Find.ById("txtPassWord")).TypeText("***"); ie.Button(Find.ById("btnok")).Click(); ie

oracle apex redirect to modal dialoge page from pl/sql code

主宰稳场 提交于 2020-01-05 05:08:40
问题 I have a page process in my apex page. I want to redirect to a modal dialoge page after the page process finishes. So I wrote the code htp.init; owa_util.redirect_url('f?p=&APP_ID.:34:APP_SESSION.::NO:34:P34_CODE,P34_DAY_DATE:P30_CODE.,'||:P30_DAY_DT); apex_application.stop_apex_engine; The page 34 is a modal dialoge page . Hence it shows error page 34 cannot be rendered successfully. Ensure the page template in use on page 34 is of template type "Dialog page", with appropriate JavaScript

how to select a opened image with DLGCreateImagePopup in created dialog

蹲街弑〆低调 提交于 2020-01-05 04:37:15
问题 I creat a dialog with DLGCreateImagePopup to select a opened image. But after I select the image, I cannot do anything for that image. How to get the image ID or name of the selected image? 回答1: If you want to do it as a posed dialog (i.e. get the image after clicking the OK button), you could do it as follows: Class CMyDLG : UIframe { TagGroup DLG,DLGItems,imgPop object Init(object self) { DLG = DLGCreateDialog("Test",DLGItems) imgPop = DLGCreateImagePopup() DLGItems.DLGAddElement( imgPop )

Open jQuery dialog box upon selecting a date from jQuery datepicker inline

你离开我真会死。 提交于 2020-01-05 04:08:36
问题 Presently my project page is having a jQuery datepicker inline placed on one of the section of the page. The below code is used to achieve the same. <link rel="stylesheet" href="~/Scripts/Calendar/jquery-ui-1.10.1.custom.css"> <script src="~/Scripts/Calendar/jquery-1.9.1.js"></script> <script src="~/Scripts/Calendar/jquery-ui-1.10.1.custom.js"></script> <script> $(document).on("change", "#datepicker", function () { var date = $(this).val(); $( "#dialog" ).dialog(); }); </script> // The below

Style the Header on a PrimeFaces dialog

偶尔善良 提交于 2020-01-04 15:14:17
问题 I'm using a PrimeFace Dialog in JSF. The problem is that a PrimeFaces dialogs header is gray in color and my client thinks it similar to an inactive object because the windows uses gray to indicate that something is inactive. So is there any way to style the Header background color of a PrimeFace dialog? The code of a PrimeFace Dialog: <p:commandButton id="modalDialogButton" value="Modal" onclick="dlg2.show();" type="button"/> <p:dialog id="modalDialog" header="Modal Dialog" widgetVar="dlg2"

How to rename dialog box buttons or create new in Ax 2012?

谁说我不能喝 提交于 2020-01-04 12:49:10
问题 Is it possible to rename dialog box buttons? For example on "okCancel" can I rename the "ok" button as "continue" ? If not please guide me how can I create my own dialog box? Thanks ahead. 回答1: A button has a "Text" property. You can set that property or do so by code: okButton.text("Continue"); The Box::okCancel uses the DialogBox class which is a kernel class and cannot be changed. The yesNoAxaptaForm method on the other hand uses an AX form, so you can roll on your own. That said it seems

How to Delay automatic opening of Modal Dialog box window in JQuery 1.5.x?

穿精又带淫゛_ 提交于 2020-01-04 08:23:14
问题 The following dialog box works nicely when clicked upon: <a href="#" onclick="jQuery('#dialogX').dialog('open'); return false"><? echo __("Under Construction")?></a> The javascript sitting at the bottom of the html triggers the action: jQuery("#dialogX").dialog({bgiframe: true, autoOpen: false, modal: true}); Now, what I would wish, is to have the dialog popup after say 2 seconds (insterad of immediately). I saw the option autoOpen and when setting the value to 2000 instead of false, that

weird behavior when applying theme to dialog under api 21 [duplicate]

陌路散爱 提交于 2020-01-04 06:55:26
问题 This question already has answers here : Android Alert Dialog with extra background (5 answers) Closed 3 years ago . I am using the theme "Theme.AppCompat.Light.NoActionBar" in my app . I want to make some of my dialogs applying the dark AppCompat theme. So,i created style for the dialog <style name="MyDialogStyle" parent="Theme.AppCompat.Dialog"> </style> (same issue when the parent is "Theme.AppCompat.Dialog.Alert") one in xml file without version constrain and the same style in xml file