action

how can i call a controller action directly from a javascript function . .

I have the following code that shows a jquery ui dialog form with data for the user to enter: $("#dialog").dialog({ bgiframe: true, autoOpen: false, height: 300, modal: true, buttons: { 'Create an account': function() { var bValid = true; ...

Recyclable Sound Object in Actionscript 3?

Using ONE Sound() object in Actionscript3, how can I play a one MP3 and then, when the user chooses a different one, play a second sound, using the SAME Sound() object? EDIT: See my answer for how I did it. ...

How do I bypass the "Complete Action Using ..."

Hey guys, I have a question related to choosing an application programmatically when shown the dialog "Complete Action Using" in Android. An example would be as follow: In my code, I have this statement startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.youtube.com/watch?v=98yl260nMEA"))); I will then shown a...

Photoshop Batch Action Save for Web and Devices

Hello everybody, I created an Action in Photoshop CS4. It's something like this: Open Document Change Canvas Size Save for Web & Devices Close Document Now, the "Save for Web & Devices" does all nice stuff, including saving it with a specific name to a specific folder. Somehow, when I try to Batch this Action, I'm not able to tell P...

unable to get focus on canvas

Hello I am creating a canvas in actionscript like : private var cvs_preview:Canvas = null; private function show_preview():void { this.cvs_preview = new Canvas(); this.cvs_preview.id = "cvs_preview_1"; this.cvs_preview.setStyle('backgroundColor', 0x000000); this.cvs_preview.setStyle(...

Insert two rows on one create action in controller

I have a form that is used to record a transaction. Liquid is moved from one tank to another. My form takes the from tank and the to tank and the number of gallons transferred. i would like this to be entered into the database as two rows. The first would be the from Tank ID and a negative number and the second row would be the to Ta...

jQuery - change form action based on selection?

I'm trying to change the form action based on the selected value from a dropdown menu... Basically, the html looks like this: <form class="search-form" id="search-form" method="post" accept-charset="UTF-8" action="/search/user"> <select id="selectsearch" class="form-select" name="selectsearch"> <option value="people">Search people</o...

MVC Action taking a long time to return

I have an MVC Controller with an action public ActionResult GeneratePDF(string id) { FileContentResult filePath = this.File(pdfBuffer, MediaTypeNames.Application.Pdf); return filePath; } And for some reason it is taking over 20 seconds when it hits the return line. The pdfBuffer is working okay, and when I run it on my ...

login - change form action based on selection?

I have this script on a mafia game where i have 4 worlds/servers I have index.php where i want to login directly to one of the servers by selecting it from a option I have this code and i need to change form action <form action="/ro1/index.php?action=login" method="post"> <input id="user" name="user" class="text" type="text" value="Na...

How to upload a file in SYmfony 1.2 without using a specific form

I haven't done much file uploading in Symfony to this point and I'm trying to figure out how to do it in 1.2+ I can get the files submitted to the action and retrieve them via: $files = $request->getFiles(); How can I get then save the file to the file system? I don't see any documentation besides the old 1.0 depreciated code. It l...

Is 'action' a keyword in jQuery?!

I was having this issue with jQuery not being able to find a <form> element in my HTML for the past day and a half. I ran my HTML through validators multiple times, validated my JS and CSS, and even removed unnecessary JS and CSS files, which is now reduced to this: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/T...

Different behavior for the same controller action in Rails

Say, I have this in one of the controllers: def show case current_user.role when 'manager' render :text => 'Manager view!' when 'admin' render :text => 'Admin view!' end end The thing is, that instead of 'render', of course, there's a bunch of code and it all stops look pretty very fast. Also, I h...

HTML forms - input type submit problem with action=URL when URL contains index.aspx....

I have a HTML form that truncates the action parameter after the "?" mark - which is NOT the desired behavior I am looking for. Here is a representative HTML snippet: <form action="http://spufalcons.com/index.aspx?tab=gymnastics&amp;path=gym"&gt; <input type="submit" value="SPU Gymnastics"/> </form> In this case, the submit butto...

Friend of a friend in PHP/MySQL?

Ok I have searched before asking, all I found was several questions asking what I am but 0 answers so maybe someone who knows will see this or I will make it a more clear question. I have a social network similar to myspace/facebook. In my code you are either a person's friend or not a friend, so I show all actions from people you are f...

Upgrade installation results in duplicate entry for installed software (FindRelatedProducts not executed)

I try to perform a major upgrade with my MSI installer with a quiet installation. The installer already works well when using a normal installation with a full user interface. In this case the old product is uninstalled because FindRelatedProducts action (from the UI sequence in FolderForm) detects my previously installed version. When...

Asp.Net MVC Utility Controller Action for filtered dropdown lists...

I was thinking of creating a UtilityController that only contains actions which return json because I might have several forms with a province/state dropdown and a country dropdown. These dropdowns are filtered by selection with ajax...only show prov/state in selected country. What do you think about this idea...is it good...bad...neith...

Cocoa / Objective-C: Draw Rectangle on Button Click

Hellow stackoverflow people, I am pretty new to Cocoa. I have XCode 3.1 Situation: I have a NSObject subclass: (AppController) with an action, linked to a button. Than i have a custom View, connected to my NSView subclass (AppView), in the drawRect command i draw a rectangle (all that stuff works), i have in the AppView.m a function - (...

JButton with HTML named action and a mnemonic

Hi all, I have a JButton that is constructed using an Action and this action has a name that is contains html. I then go about setting the mnemonic on the JButton by first parsing out html to get the first character in the name. For example, the JButton name might be "<html>Test<br>Button</html>", so after parsing the html the mnemoni...

C# Invoke Action Cross Thread Access

greetings, im new to programming. at the moment my application uses delegates to process/execute methods that reside in a another class/object. but i was getting an error stating that they were residing in separte threads. so after searching the web i came up with this: this.Invoke(new Action(delegate() { this.ChatRichTextBox.AppendT...

Tracking Code for Google Analitycs in ActionScript2

Hello all, Im completely new to Flash and ActionScript2 but what I need is to add Google analytics code to track clicks from "button" Bellow is a part of my function this.onRelease = function(){ getURL("http://www.mysite.co.uk/someulr.html","_self"); getURL("javascript:pageTracker._trackPageview('/flash_site.html');","_self");...