Never been to TextSnippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)

« Newer Snippets
Older Snippets »
2 total  XML / RSS feed 

POST and GET: Flash

Sends POST data to a webpage through flash.

var my_Var:LoadVars = new LoadVars();
my_Var.Variavel1 = Variavel1_txt.text;
my_Var.Variavel2 = Variavel2_txt.text;

/*"_self" specifies the current frame in the current window. 
"_blank" specifies a new window. 
"_parent" specifies the parent of the current frame. 
"_top" specifies the top-level frame in the current window. */

my_Var.send("URL_stays_here", "_blank", "POST");

Фильтр на обновление только разрешенных полей

%w(name email address).each { |f| @person[f] = params[:person][f] }
« Newer Snippets
Older Snippets »
2 total  XML / RSS feed