cancel

Go to very beginning of UINavigationController after going some pages deep

I want to go to the very beginning of the UINavigationController after going deep several pages. If I try the following code, it will only go back one view. [self.navigationController popViewControllerAnimated:YES]; I want to do this action on a "cancel" button placed on the top right. ...

How to best to cancel a Zend Form File Upload?

I am experimenting with uploading files in a Zend_Form using the Zend_Form_Element_File doing something like this in my form so that the actual upload can be handled by my controller (which in my case is to eventually do some custom file re-naming on the fly). $element = new Zend_Form_Element_File('Upload'); $element->setDestination(U...

Can't read the value of a button click from a userform

I hope this is a relatively easy problem although I have spent hours websearching and using T&E to no avail. Hopefully someone can help ;o) I have an excel module that shows a UserForm to get some input data before doing a lot of processing. At the bottom of the userform are a couple of command buttons labeled "OK" and Cancel". I nee...

Change "cancel" text on dijit.Dialog close box?

Is there any possible way to change the "cancel" tool tip that pops up over the X box on a dijit.dialog? I just want it to read "close". I'm somewhat new to dojo. I expect this might be just a dumb question that has a really easy answer, but I am finding no examples. Thanks in advance. ...

Symfony Migration - Remove mandatory from column

Hi there! I would like to cancel the mandatory of a field of my current schema. How can I accomplish that with a symfony migration? Thanks in advance, Best regards! ...

Java Multithreaded App - how to dynamically cancel Futures objects

I think this is a common scenario for multithreaded Java applications so I'll try to describe it here. In my Java App I've a threadExecutor object that defines a Pool of 5 Threads. ExecutorService threadExecutor = Executors.newFixedThreadPool(5); A sendCallables method is responsible to assign a List of Jobs to the Executor. I keep t...

How can I use back button while loading a page in an Android WebView?

I have a link in my application that triggers a webview to open from webview.loadUrl(...). Sometimes it's takes quite a while to load the page, and in these cases I want to be able to use the built in back button on the phone to cancel the loading and go back to my application. How do I do this? Is there some way I can listen to the ...

Flex - Cancel drag operation via keyboard

Hello I would like to be able to cancel a drag operation with the Escape key. The following did not work so far: calling stopDrag() on the component --> nothing happens calling DragManager.acceptDragDrop(null) --> nothing happens calling mx_internal function DragManager.endDrag() --> drag partly stops, the drag proxy image disappe...

Possible to cancel paging in ListView using DataPager

I'm using a datapager control on my listview to perform paging in it. When paging through the table, I need to perform some validations. When these validations are not successfull, the paging should be cancelled. I currently perform the validation in the PagePropertiesChanging event of the ListView, however, the arguments do not provid...

datagridview cell edit error

On a Windows form I have an unbound datagridview with 1 user-editable column. A user clicked into one of those cells, changed his mind and closed the form using the "x". Then he tried to bring up the form again. The following error came up: "System.InvalidOperationException: Operation did not succeed because the program cannot commit or...

How to interrupt Eclipse RCP shutdown

I have a plugin into an eclipse rcp application. I need to detect a scenario whenever a particular perspective is closed or if the application is closed and based on the outcome, I may need to cancel the closing of the app or perspective. If I had access to the application's WorkbenchAdvisor class, this would be trivial. As a plugin t...

How to cancel a jquery.load()?

I'd like to cancel a .load() operation, when the load() does not return in 5 seconds. If it's so I show an error message like 'sorry, no picture loaded'. What I have is... ...the timeout handling: jQuery.fn.idle = function(time, postFunction){ var i = $(this); i.queue(function(){ setTimeout(function(){ ...

Something like oEvent.cancelPostBack for DropDownList in asp.net server side code

Hi, I am having the code for selectedIndexChanged event of a DropDownList in Asp.Net that looks somewhat like this protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e) { //Get the value of Base category on the basis of the new index selected. if(BaseCategory belongs to (SomeValues)) { //do some actio...

JQuery Validate - class="cancel" submit button only stops validation once.

Hi. I have a form with buttons I do not what to Submit the form, but they are (necessarily) submit buttons. I've given them the class "cancel" and on the first click they are cancelling submission. the desired effect. However, any subsequent click is then back to normal; Submitting the form. Which I don't want. Now, I do have some post-...

Cancel changes in a Java Swing Input window

I am new to Java Swing and I am creating a window which displays a list of items retrieved from an XML file that can be manipulated by the user. The window should have a Cancel and a Save functionality implemented with buttons. While the Save functionality is straightforward (just close the window) I don't know how to implement the Canc...

What's the best way to cancel an asynchronous WCF request?

(Assuming a WCF method called "MyFunction") Currently, to support canceling a WCF request, I'm using the BeginMyFunction/EndMyFunction methods generated by svcutil (and handling an isCanceled flag when dispatching the results to the main thread). I'd like to use the MyFunctionAsync method (and hooking into MyFunctionAsyncCompleted event...

Make cancel button lower keyboard

I have a UISearchBar. I enabled the 'cancel' button so it says cancel right next to the search box how can i set that button to simply lower the keyboard when the user presses it? ...

How to make a listener for a datepickers cancel button in Android?

Hi, I'm using a datepicker in Android to let the user to choose the date. I want it to do one thing if the user picks a date and sets it (I have that working fine) and then to clear a certain text field if the user pushes the cancel button on the datepicker (open up the datepicker but then cancel out of it). The way I've been trying is...

How to cancel jQuery UI dialog open?

I have the following: container.dialog().bind('dialogopen', function(event, ui) { ... if (someCondition) { $(this).dialog('close'); // the dialog is not closed! } } How I should make it work? Unfortunately there is no 'beforeopen' event to be hooked. ...

Flex - cancel a change event on a Tree

Hello there, Brief details: I'm using Flex 3.5. I have a Tree component that's used as a navigation menu between different 'pages'. When the user clicks a certain option in the menu, I switch the 'page' by switching between State components in my application. The thing is that when the user indeed clicks an option in the menu, I want t...