action

MSI MessageBox Custom Action

Hi, I want to create a Custom Action for my installer that checks to see if Outlook is running and if it is, it prompts the user to close Outlook before continuing. Everything works great except that when the MessageBox appears informing the user they must close Outlook, it appears behind the current MSI installation window. I'd like t...

Call a method by clicking a button in a UIWebView

Hello, I want to generate some HTML content and put this into a UIWebView. The HTML contains some buttons. Is it possible to define actions for these buttons? I want to call a method (e.g. firstButtonPressed) in my objective-c code when someone presses this button in the UIWebView. Thanks you for helping me. ...

Best way to redirect user in login.aspx page webforms try to access a page without access

hi guys I'm with a question. Imagine, my web site is restricted in some URLs, in a login page i try to access a url than i dont have permition And if i doesnt i need to redirect to default page. which is the best choice to do? TY ...

Flash FLVPlayback CuePoint problem

Hello I have a flash app that plays movies. It loads subtitles and subtitle times from an xml file. Now the problem is this: in one or two of the films the first subtitle disappears after only one second even though it's in and out times are correct and it should be displayed for 5 s. I have no idea why this is happening since all the ...

Distinguishing controller actions using authorization filters

I would like to have 4 actions with the same name (controller methods may have a different name, but their ActionName() attribute is the same for all 4 of them: [ActionName("Same-name")] public ActionResult AnonAction() { ... } [HttpPost] [ActionName("Same-name")] public ActionResult AnonAction(ModelData data) { ... } [Authorize] [Act...

Calling Begin/EndInvoke on Action and Func in Silverlight

Does anyone know why I can't call BeginInvoke / EndInvoke on Action and Func delegates in my Silverlight app? I keep getting a NotSupportedException. Is there a workaround? ...

create photoshop action/droplet with variable output

I was wondering how to: create a droplet that saves to a relative filepath. let's say the droplet is on the desktop in the folder "batches" and this folder also contains the folder "output". Everything that gets dropped will end up in the output folder. I've noticed that photoshop saves a fixed path to this folder. This renders the dro...

Load jQuery UI Accordion on the fly

I have this jQuery UI Tabs implemented. One of the tabs use AJAX to load the jQuery UI Accordion. I tried to load the Accordion after the content has been loaded. But nothing happend. Here is the code. The accordion is is Tab 2 (index 1). Anybody have a way to do this? Load the accordion based on user triggered action? $(functi...

How can I pass a mouse-click method as a parameter?

I want to make an extension method which fills a stackpanel with buttons. In order to do this I have to pass in a mouse-click-handler. What type does the mouseClickHandler parameter have to be here? I know it's something like these but they all don't work: delegate Func<object, RoutedEventArgs> Action<> Code: public static void F...

Java Swing KeyStrokes: how to make CTRL-modifier work

In the following program, why does hitting the 'a' key print "hello, world" while hitting 'CTRL-a' doesn't? import java.awt.event.*; import javax.swing.*; public class KeyStrokeTest { public static void main(String[] args) { JPanel panel = new JPanel(); /* add a new action named "foo" to the panel's action map */ ...

C# - declare method in argument (delegate)

Hello, In the code below I pass method B as an action to be perfomed on on the objects in the IterateObjects method. I would like to ask whether I can explicitly declare the method in the argument instead of passing it by name, something like this: a.IterateObjects(delegate void(string s){//method body}) Its not correct but I am sure I ...

If i want perform some action if I bring two iPhones closer, how do i do that ?

hi all, my question is that i want to write a simple code in xcode, by which if i bring another iphone closer to mine, and make contact... then certain function is called ? help .. ...

Action<T> vs anonymous method question

Hi, I had a question answered which raised another one, why following does not work? I do not understand it. The compiler says: Cannot convert anonymous method do string. But why? public List<string> list = new List<string>(); private void Form1_Load(object sender, EventArgs e) { a.IterateObjects(B); // w...

Return to same view from two different action methods.

Hi, i have a quick search and advance search pages, both are controlled by search controller, i have 2 action methods quick(...) and advanced (....) in my controller. Both pages have sumbit buttons and they are calling two different action method "qucikresults(...)" and "advancedresults(....)".when both method executes they return produ...

Overloading Controller Actions

Hi Guys I was a bit surprised a few minutes ago when I tried to overload an Action in one of my Controllers I had public ActionResult Get() { return PartialView(/*return all things*/); } I added public ActionResult Get(int id) { return PartialView(/*return 1 thing*/); } .... and all of a sudden neither were working I f...

target-action uicontrolevents

I must be missing something obvious here but ... UIControl has a method - (void)addTarget:(id)target action:(SEL)action forControlEvents: (UIControlEvents)controlEvents which lets you add an action to be called when any of the given controlEvents occur. ControlEvents are a bitmask of events which tell you if a touch went down, or up...

Java - Is it possible to override an ActionListener in the SuperClass?

If have two classes, Class A and Class B, B is a subclass of A...if my Class A(the superclass) has a JButton with an ActionListener which is implemented by an anonymous inner class, how can I override what the button does in the subclass? ...

[COMException (0x80004005): Cannot complete this action.

Hi everyone, I dont know what is causing this, it just happened all of a sudden while I was working on the site, I am using sharepoint 2010, does anyone know how to fix it, cause everytime I try to access one of my workflow task it bombs and write this: " Cannot complete this action. Please try again.0x80004005 Description: An unhandle...

JSF action on page load

Hi, Is there a way to execute an action when a page is loaded? (Using JSF 1.2 with ICEFACES) Cheers. ...

using action helpers in Zend Framework 1.8

Hi am starting off with Zend Framework and have a question about action helpers. My first application is a simple authentication system (following a tutorial from a book). The registration and authentication seems to work fine but the redirect doesn't. I have a customer controller that has this among others: class CustomerControlle...