action

Action Script Sleep function

Does actionscript 2.0/3.0 have an equivalent of c# sleep() ? ...

Wix CustomAction Binary SourceFile not found

<Binary Id="binUpdate" SourceFile="c:\xxx\Update.exe"/> <CustomAction Id="Update" BinaryKey="binUpdate" Execute="deferred" ExeCommand="c:\xxx" /> When I build a Wix project with the above custom action, it complains that "The system cannot find the file 'C:\xxx\Update.exe". This update.exe is deployed by the same msi. So, how do I ma...

Struts2 RedirectAction: Params Interceptor and Workflow?

My common usecase for my Struts2 application is that I have Actions that collect data which are presented on an JSP page. I'll call these view-actions. But then I also have logic actions, which "do" something in the background (like registering a user). These might also have a bean that needs to be shown on an JSP, but I need to redirec...

Page doesn't post to the given URL

Hello All, I have the following HTML content. When i click the button, the page doesn't post to URL provided in action tag. The corresponding application is running, but still the page load of the CrossPage.aspx was not invoked. What could be the problem? <body> <form id="UploadForm" method="post" enctype="multipart/form-data" action=...

How to loop a video in Flash

So i had a video that was in quicktime format, threw it into flash, encoded it without a problem and here is the result i got: http://www.healthcarepros.net/travel.html I would like the video to "loop" or "autorewind" as soon as it ends but i am having the hardest time trying to figure how to do this. Here is my code, any help would be ...

rails: "unknown action" message when action is clearly specified

hi, I had hard time to figure out why I've been getting "unknown action" error message when I was do some editing: Unknown action No action responded to 11. Actions: bin, create, destroy, edit, index, new, observe_new, show, tag, update, and vote you can see that Rails did mention each action in the above list - update. And in my f...

How can I create an Action delegate from MethodInfo?

Hi, I want to get an action delegate from a MethodInfo object. Is this possible? Thank you. ...

Rails: redirect_to :controller=>'tips', :action => 'show', :id => @tip.permalink

hi, I tried to redirect rails to show action by passing controller, action, and params. However, rails ignores the name of action totally! what I got is http://mysite/controllername/paramId so i have error message.... here is the action code I used: def update @tip = current_user.tips.find(params[:id]) @tip.attributes = pa...

Problem with thread after SCREEN_OFF in Android

I’m doing an application that listens to the android.intent.action.SCREEN_OFF in a Service (if that matter) and then it is supposed to wait a few seconds and launch an action, I’ve tried a timer schedule method, thread and handler postDelay method but all of them seems to fail, they are never executed on a device, it seems like it’s bein...

Bast Practise: ASP.NET MVC Controller/Action with multiple object types

Hi, I'm looking for the best method for the following issue I have. I current have a large number of objects that all inherit for a single base object and are all very similar. Is there a solution available the will allow one create action and one edit action without needing to replicate a lot of the same code. So for example I might ...

Passing a Java object from one Struts action to another

Hello! In one of my Struts action I've got the following code in a method: ... List<Object> retrievedListOfObjects = c.getListOfObjects(); return mapping.findForward("fw_view"); } fw_view leads to a new Struts action with another Struts form. Let's say this form has got among others the following field List<Object> listOfObjec...

Which is the _proper_ html element to use for calling action when clicking on an image?

I have a webapplication where (as in many other ones out there) you click on an image to do something, for instance, mark an entry, send a mail, flag something... Short, clicking on the image is supposed to call an action (via javascript, but that's not the point). I was wondering, what is the "right" way to do this? <a>-tag? Hmm... ...

Update object in Struts action with form values from JSP

I have a struts2 action that builds a form and pre-populates the fields with data from an instance of my object. When I click submit on this form, I get taken to a second action, my formSubmit action. Here I'd like the object to be updated with any new values from the form. Is there an easy way to access this same object in my second ...

Symfony Batch Action

Hi there! I'm trying to create a batch action (symfony admin) that enables the creation/download on the fly of zip file containing users photos which are avaialable on the uploads/images directory. Here is the code that I already implemented: public function executeBatchDownloadFotos(sfWebRequest $request) { $zip = new Zip...

Java AbstractAction sometimes not detecting escape key - bizarre behaviour

In a master/detail view I have a series of text fields (and one or two other controls) that all pertain to the detail of the currently selected item. They all share the same DocumentListener so if you change any of them a pair of "save"/"discard" buttons become enabled. The buttons invoke a method and I can happily save/discard items. H...

How do I manually invoke an Action in swing?

For the life of me I cannot seem to find details on Java Swing Actions :'( When I came across them I immediately realised their usefulness. So far it's all been easy to work with. Now I'm stuck with one little thing: How do I run them manually? I mean by code? Note that I am building the GUI using Netbeans (if that makes any difference)....

Android Eliminate Complete Action Using dialog

I have 2 apps and both integrate a package containing an activity. My problem is that when I launch any one app, and when it calls the activity inside the package, it shows me a dialog: Complete action using: App1 App2 I want to eliminate this dialog, so it just launches the activity from its own integrated package. Currently, my A...

c++ qt taskbar menu action

hello, i got this code in qt creator; int main( int argc, char* argv[] ) { QApplication oApp( argc, argv ); QAction *action1; QMenu menu; QSystemTrayIcon TrayIcon( QIcon("favicon.ico") ); TrayIcon.show(); action1= new QAction("action1", NULL); action1->setStatusTip("Create a new file"); menu.addAction(bf2142); TrayIcon.setC...

c++ qt quit on action

i got an action in my menu; connect(action, SIGNAL(triggered()), this, SLOT(action1())); but when i executed the function my program always exited. how to solve this? ...

passing checkbox and textbox values from a view form to a controller action

Hello, I have a view with a form..this form has a textbox and a checkbox in it. i also have a submit button in the form which points to an action in a controller. my question is..how can i pass the values in the textboxes and the checked state of the checkboxes to the controller action? the textboxes and checkboxes are not tied to a ...