Php - Send An Array Of Flex Checkboxes To A Mysql Server?

Jul 26, 2011

I am using FB for PHP 4.5, ZendAMF, and I read that I do not need to use HTTPService for what I want to do.

Table structure:

people: {pID, pName}
departments: {deptID, deptName}
people_departments: {pID, deptName}

I have a slightly complex flex script, People.mxml. In the PersonAdd state, I have a form which will be used to send data to the mysql server. In that form , I have a repeater that will create a checkbox for every department in my database. When I click the Add button, I want to insert data into the people and people_departments tables.

[Code]...

[Edit] I am using an s:Checkbox and I do not have the data property. mx:Checkbox does but I cannot use the mx:Checkbox component in my project.

View 2 Replies


Similar Posts:


Flex4 - How To Send Byte Array To Server In Flash Builder (Flex 4)

Mar 24, 2011

I have a video file in my local system.I am using windows XP in my system. Now i want to send this video file byte array to server in Flash Builder (Flex 4). I am using PHP at server end.

View 5 Replies

Php :: Get Some Data From PHP/MySQL And Send It To Flex?

Jan 1, 2010

I'm trying to get some data from PHP/MySQL and send it to Flex..Let's say That my object in Flex would look like this:

package some.package.VO {
[RemoteClass(alias="VOPerson")]
[Bindable]
public class VOPerson {

[code]....

In my case, personDetails is an Array, and in theory, it could be some other object... But is it really necessary to make it an object? I do not intend to use that data nowhere else except within my VOPerson class. It is some associative array, and I can easily transform it to another object, but there will be lots of similar situations in my app, so I would like to avoid making unnecessary (value) objects if there is no need for it...

View 1 Replies

ActionScript 2.0 :: SetSize On CheckBoxes From Array?

Oct 11, 2010

Im creating and position dynamically created CheckBoxes from an array.The boxes are created. They are correctly positioned. They get the correct label text, and they are named box0, box1, box2 and box3.But setSize does not work.

Below is the script.

ActionScript Code:
var myArray:Array = ["oneoneone one one one one", "two", "three", "four"];
for (var i in myArray) {
this.createClassObject(mx.controls.CheckBox, +i, i, {label:(myArray[i]),_y:(i*20),selected:(false), _name:("box"+[i]), setSize: (500,22)});
}

View 1 Replies

Mysql :: Flex - BlazeDS - Hibernate (Tomcat) And Air Cannot Reach The Database Server

Oct 11, 2010

I create a Flex application that works with a browser using a database with the MySQL server that I can create, modify and delete data from a database. The problem I encounter now is that I want to see my program with Adobe AIR (virtual machine). At the display that does not pose a problem. The problem is that air can not reach the database server is located in the MySQ. the error message displayed is as follows: "Error : client.Error.MessageSend - Channel.connect.failed error tConnection.Call.Failled : HTTP: Status 404:url:'[URL]"

View 2 Replies

Actionscript 3 :: Create An Array Of Spark Checkboxes With Dynamic IDs?

Jul 26, 2011

This is the code that does not work. The code required that I have the ID hard-coded in the checkbox tag.

<mx:HBox id="myHBox">
<mx:Repeater id="checkBoxRepeater"
dataProvider="{getItemsResult.lastResult}">

[Code].....

If I type a string for id, I get my array of checkboxes without problem and the labels are all fine. I need to get the id dynamic so that I can send the ID (itemID) bound to an itemName to the server.

View 1 Replies

Professional :: Send Data To MySQL?

Oct 30, 2010

There an input textfield, name.text. There is a button with the following script,
 
send.onPress = function () {          getURL ("name.php", "_blank", "POST");    }The info will be send to MySQL database, name,  when pressing the button.
  
PHP---
 
<?// Receiving the variables.$name = $_POST['name'];
// Printing out the variables.print "Your name is ". $name . ".";
?>
 
I am not able to perform the task.

View 1 Replies

Mysql :: Migrate A Preexisting Flex/Java/Hibernate/MySQL App Onto A CD For Portable Distro?

Feb 2, 2011

I have a typical Flex-based application that was written to use a Java/Hibernate/MySQL backend. The client changed the requirements - now they want to distribute it on a CD where the user can just run the app without any installation or a network connection.

To do this, I certainly need to eliminate the web server and the database server and adapt my application (with as few changes as possible, of course) to a stand-alone application that will fit on a CD/DVD. I've managed to export the data to XML and read it into Flex, but I'm wondering if there's a way to recreate the Hibernate data structures in Flex so I could change as little code as possible. Failing that, is there any way to keep the existing Java/Hibernate external to the Flex code but retrievable without installing Apache Tomcat or MySQL?

View 3 Replies

Flex :: Url - Send Array In URLRequest?

Jun 24, 2011

In efforts to allow users to save their progress in my application, I've decided to allow them to save. In order to do this, I'd like to create an array with all the necessary information, and send that information to a coldfusion (.cfm) file and process the information from that page. Is it possible to send an array instead of a bunch of url variables? It is possible (and quite probable) that users would exceed the query string length of most browsers.

View 1 Replies

Flex :: Record Voice And Send It To Server?

Nov 17, 2010

I need to record the voice of the student from the client and send it to server to check whether there are any gramatical mistakes in it. I have designed the client in flexMy problem is, i have no idea of how to store the recorded sound and send it to the server

View 2 Replies

Flex :: Resize Image And Send To Server In Air App?

Apr 2, 2011

I'm trying to build an Air application where a user can drop in an image. That image needs to resize if it's bigger than 1024px 1024px.

What's the best practice for resizing an image in Air development? And what's the best practice if I want to send this to codeigniter amf server in Air 2.0, bytearray format?

View 1 Replies

ActionScript 3.0 :: Send Variable From MySQL To Flash

Feb 17, 2012

I wrote a little test program to learn about mySQL integration in Flash. The program looks as: I have one button and one dynamic text field. If I hit the button, as3 starts an URLRequest to a php file which then connects to a mySQL database. The requested variable is send to as3 and displayed in the text field. Up to this point, everything is working fine. But when I hit the button again, after I updated my db, the text field still shows the old value. Although it should output the current value.

So, here's my as3 code:
mButton.addEventListener(MouseEvent.CLICK, onSQL);
function onSQL(e:MouseEvent):void {
var varSend:URLRequest = new URLRequest("[URL]");
varSend.method = URLRequestMethod.POST;
var varLoader:URLLoader = new URLLoader;
[Code] .....

I really don't know, why the program is not updating the value.

View 3 Replies

Flash :: Flex Send Request Through Proxy Server?

Aug 20, 2011

I am creating a google scraper in Adobe AIR using the Flex 4 framework. I have run into a brick wall: Google forces a captcha after around 10 pages are read. Can anyone tell me how to get the page through a proxy server

[Code]...

View 1 Replies

ActionScript 3.0 :: Send The User Balance To Mysql And Save It There?

Aug 8, 2009

What actionscript i need, to send the user balance to my Mysql and save it there. and when the user come back to the game get the same balance from the last time(override the user balance).here is part of the Flash code that in the game:

game_pr.display = function ()
{
_root.display.balance = "<P ALIGN='LEFT'><FONT FACE='04b_25' SIZE='12'

[code]......

View 0 Replies

ActionScript 2.0 :: Send Score Variable To Email Or Mysql?

Dec 7, 2009

I've decide racing car game! and I want to be able to send the score to send to a mail box or send it to a table in php or database! at the moment I can send the Score Variable to be display in PHP but its not the way that I want!

Script that send the Score to php
submit.onPress = function () {
getURL ("getVars.php", "_blank", "POST");

[code]....

View 2 Replies

ActionScript 3.0 :: Send The Form Data To A MySQL Database?

Feb 28, 2011

What I am wanting to do is create a "registration form" and send the form data to a MySQL Database. Once the user submits the form, a password is created and emailed to the user.

Then once all has been created and stored, the user can log in and gain access to secure pages.

View 9 Replies

Java :: Send An Array Of Objects From Flex To Servlet?

Apr 29, 2011

I have a collection of Objects in an ArrayCollection in my flex page.

What is the best approach to send this data to a Java Servlet?

The object in the ArrayCollection is a VO that consists of an id and message for now. I want a solution that is scalable in case more properties are added later on.

View 1 Replies

Flex :: Adobe - Send/receive Data From/to Media Server

Oct 27, 2009

i want to make a simple chat with flex as3 and red5 media server

my idea is that i send from the swf a message to the server and the server sends it to all the swfs (including the one that sent the message)

i just don't know how to to send and receive and how to receive from the server

View 2 Replies

Flex :: Generate Screenshot And Send It To Server (not Using FileReference.upload)?

Dec 10, 2009

Do you have any ideas? how to generate screenshot and send it to server (not using FileReference.upload)?

View 2 Replies

Send Xml Data To The Server Using HttpService Request Thr POST In Flex?

Dec 12, 2009

send xml data to the server using HttpService request thr POST in Flex?

View 1 Replies

Flash :: Send A Video Stream To A Red5 Server Using Flex?

Jul 2, 2010

I'm trying to send a video stream to a Red5 server using Flex.

My Red5 setup seems to work for remote method invocations and shared objects, but I've yet to succeed in getting video working.

This is the AS3 code that connects to Red5:

# connect to RTMP server
netConnection.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
netConnection.connect("rtmp://localhost/context_name");
# omitted code for waiting for connection success, and setting up shared

[Code].....

As said, note that the Red5 setup works flawlessly for remote method invocations and shared objects, but not for video which is strange.

View 2 Replies

Media Server :: Shareobject.send() - Send Method Does Not Work

Mar 18, 2010

I have a problem with shareobject. the Send method does not work. I work with AS3 My code

[Code]....

View 4 Replies

Mysql :: Accent MySQL-Flex/ZendFramework?

Oct 22, 2011

In my table the Collation is:latin1_swedish_ci (but i tried UTF8_unicode too).In my flex application when it shows the table,it displays it correct,with all accent and pointing correct,but in the table is like :

View 1 Replies

Flex :: Send Info Using USLStream From Flash Client To JAVA Server?

Jul 18, 2010

I am trying to send info using USLStream from flash client to JAVA server.Some of the info is Chinese so i have to use Unicode.

View 1 Replies

Actionscript 3 :: Send Data In AMF Format From Flex To Java Socket Server?

May 19, 2011

i want to know how to send data using the AMF format from my flex AIR project to a socket written in Java. I am getting CorruptedStreamException when sending data using writeUTFBytes() methods. Has anyone experienced similar problems? Also can AMF be used only if i am using LCDS only?

private SimpleServer(int port)
{
System.out.println(">> Starting SimpleServer on port " + port);

[code].....

View 2 Replies

Flex :: Work With Checkboxes In VsFlexGrid In Vb6.0?

Sep 3, 2009

I am developing a form for handling access rights in a project.I use VsflexGrid7.0 and also Vb6.0.I thought that it would be good when I show 1 (has access) and 0 (doesn't have) via checkbox within my vsflexgrid(vsflexgrid1).Now, my problem is when I click on a checkbox for Insert access right, how to get control it's value ?

View 1 Replies

Actionscript 3 :: Live Streaming Flex - Send A Feed From Webcam To The Flash Media Server

Jan 30, 2011

I have been working on a Flex application that sends a feed from my webcam to the Flash Media server. The application connects to the server fine but for some reason the camera is not sending anything to the Media Server. I am pretty sure that the answer to my question is really simple but I need another set of eyes to llok at my code and tell me what I am doing wrong.

[Code]....

View 3 Replies

Actionscript 3 :: Flex 4: Have A Drop Down List Of Checkboxes?

Oct 12, 2010

How would I get a drop downlist to populate with check boxes. I am porting a c# project to flex, and I would like to imitate the functionality of their checkbox drop list.

View 2 Replies

Actionscript 3 :: List Of Checkboxes In Android App Using Flex And Flashbuilder?

May 6, 2011

I am trying to implement a list of checkboxes and a Android Form App I am working on. I want the list to only have single selection, i.e. I can only select one option from the list.... for some reason I can not find any code to do this, I am using Flashbuilder and the Flex framework?

View 1 Replies

Flex :: CheckBoxes In DataGrid Not Updating After Change In Binded ArrayCollection?

Jul 14, 2009

I have extended CheckBox class to use it as itemRenderer to centered it in DataGrid cell and reflect ArrayCollection changes. Here is the .as:

package myComponents
{
import flash.display.DisplayObject;

[code]......

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved