[flexcoders] Using data from List Control to send to PHP

2008-10-02 Thread ghus32
Hello Everyone,

I was wondering if any of you guys know how to extract data from a list 
control as each separate entry as a var?

I was to send each entry to my php script.

Ex. I have 4 entries in my list control I want to send file_name1, 
filename_2, filename_3, filename_4 to my php script

thanks



[flexcoders] Passing Variables from PHP to Flex

2008-09-26 Thread ghus32
Hello Everyone,

I have an upload functions in Flex that works fine using php as a 
backend.

I can pass the data to the PHP but I cannot send data back ex.. like a 
filename..

Anyone know how to do this?


Thanks




[flexcoders] Excuting a function in main app which is triggered by popup window

2008-09-19 Thread ghus32
Hello Everyone,

I was wondering if it is possible to execute a function from my main 
app triggered by the closing of my popup window?

Is this done by event listeners?

If so, does anyone have any examples?

Thanks



[flexcoders] Holding functions and http services in separate files

2008-09-11 Thread ghus32
Hello everyone,

My application has reached over 3000 lines and now I want to clean up 
my code..

Is there a way I can put all http services into one file and load them 
on application startup, same with functions.

thanks



[flexcoders] Datagrid Headers provided by http service??

2008-08-15 Thread ghus32
Is it possible to have a dynamic datagrid headers that is supplied by a 
httpservice and mysql. so If my http service gives me 3 results there 
will be 3 columns with the header names of these results..

Is this possible?

Thanks



[flexcoders] 2 default buttons in form

2008-07-24 Thread ghus32
Hello Everyone,

I have a form and I am using a validation script to enable button when 
form is filled out.. I need to have  2 buttons activated not just one.

Is it possible to do this, or to classify 2 buttons into one group?

utils:ValidatorForm 
id=addEmployeeForm 
defaultButton={add_report_crm} 
 
validators={validators} 
 
 height=394 width=353


basically I want to have two buttons in the defaultButton.

Thanks



[flexcoders] Printing Column Chart

2008-07-03 Thread ghus32
Is it possible to print a column chart in Flex?

Thanks





[flexcoders] Re: Using Datagrid Data

2008-06-30 Thread ghus32
Thanks Valdhor for your response :)

that will indeed work. In fact I am already doing the part with the 
array collection but the part I am struggling with is sending the 
data to the PHP as separate values would the looping do this? I am 
new at this and was wondering if you have some sameple code or a 
website with an example.. 

Thanks again




--- In flexcoders@yahoogroups.com, valdhor [EMAIL PROTECTED] wrote:

 It seems to me that the best idea is to use an arraycollection as 
the
 dataprovider for your datagrid. When your app receives the random
 number back it updates the arraycollection which, in turn, updates 
the
 datagrid. Now, when you need to send your email, just loop through 
the
 arraycollection (Check out IViewCursor for an alternative) and grab
 the data you want.
 
 
 --- In flexcoders@yahoogroups.com, ghus32 stevenpo@ wrote:
 
  I have an email part in my application where I am creating an 
  attachment funtion.
  
  I have flex uploading the file using php and in the php the php 
  renames the file to a random number. that random number is then 
  passed back to a flex datagrid. So if a person uploads 2 files 
then 
  the datagrid has 2 rows.
  
  When I send the email I need the values of those two rows so I 
can 
  tell the php which files to send with the email.
  
  So I need to have the values of each row so I can pass them to 
the 
  php.





[flexcoders] Re: Using Datagrid Data

2008-06-30 Thread ghus32
Thanks Valdhor for your response :)

that will indeed work. In fact I am already doing the part with the 
array collection but the part I am struggling with is sending the 
data to the PHP as separate values would the looping do this? I am 
new at this and was wondering if you have some sameple code or a 
website with an example.. 

Thanks again




--- In flexcoders@yahoogroups.com, valdhor [EMAIL PROTECTED] wrote:

 It seems to me that the best idea is to use an arraycollection as 
the
 dataprovider for your datagrid. When your app receives the random
 number back it updates the arraycollection which, in turn, updates 
the
 datagrid. Now, when you need to send your email, just loop through 
the
 arraycollection (Check out IViewCursor for an alternative) and grab
 the data you want.
 
 
 --- In flexcoders@yahoogroups.com, ghus32 stevenpo@ wrote:
 
  I have an email part in my application where I am creating an 
  attachment funtion.
  
  I have flex uploading the file using php and in the php the php 
  renames the file to a random number. that random number is then 
  passed back to a flex datagrid. So if a person uploads 2 files 
then 
  the datagrid has 2 rows.
  
  When I send the email I need the values of those two rows so I 
can 
  tell the php which files to send with the email.
  
  So I need to have the values of each row so I can pass them to 
the 
  php.





[flexcoders] Populating column chart with PHP MySQL

2008-06-27 Thread ghus32
Hello,

I have done this with many datagrids and had success but cant seem
to get it to work with the column charts.

I have several different queries in php where I get the data from but
I dont know the format. an example of the php code below

I would like to have $num_signage and $num_website as datagrid 
columns, plus I will be adding more queries later. 

I am thinking I would need to make the values of $num_signage and 
$num_website into some sort of an array so flex can read individaul 
results.. I have have been trying many things with no success.

Any suggestions?

Thanks

$query_website = SELECT form.question_id, form.answer_id, 
form.add_date, answer.answer_id, answer.answer FROM form
LEFT JOIN answer ON form.answer_id = answer.answer_id
WHERE form.question_id ='10' and answer.answer = 'Website' and 
form.add_date BETWEEN DATE '2008-06-01' AND DATE '2008-06-29';
$result_website = mysql_query ($query_website);
$num_rows_website = mysql_num_rows($result_website);
$num_website = website_num$num_rows_website/website_num;
print ($num_website);

$query_signage = SELECT form.question_id, form.answer_id, 
form.add_date, answer.answer_id, answer.answer FROM form
LEFT JOIN answer ON form.answer_id = answer.answer_id
WHERE form.question_id ='10' and answer.answer = 'Signage' and 
form.add_date BETWEEN DATE '2008-06-01' AND DATE '2008-06-29';
$result_signage = mysql_query ($query_signage);
$num_rows_signage = mysql_num_rows($result_signage);
$num_signage = signage$num_rows_signage/signage;
print ($num_signage); 




[flexcoders] Using Datagrid Data

2008-06-27 Thread ghus32
Hello everyone,

Is it possible to send data from a poulated datagrid??

For example, I want to send row1 and make it a var.. is this possible?

Thanks



[flexcoders] Re: Using Datagrid Data

2008-06-27 Thread ghus32
Yah I am I want to send each row as a var to a webservice.

Thanks


--- In flexcoders@yahoogroups.com, Fidel Viegas [EMAIL PROTECTED] 
wrote:

 On Fri, Jun 27, 2008 at 6:35 PM, ghus32 [EMAIL PROTECTED] wrote:
  Hello everyone,
 
  Is it possible to send data from a poulated datagrid??
 
  For example, I want to send row1 and make it a var.. is this 
possible?
 
  Thanks
 
 What exactly are you trying to achieve? Send data to a webservice,
 remote object or http service? Is that what you mean?
 
 Fidel.





[flexcoders] Re: Using Datagrid Data

2008-06-27 Thread ghus32
I have an email part in my application where I am creating an 
attachment funtion.

I have flex uploading the file using php and in the php the php 
renames the file to a random number. that random number is then 
passed back to a flex datagrid. So if a person uploads 2 files then 
the datagrid has 2 rows.

When I send the email I need the values of those two rows so I can 
tell the php which files to send with the email.

So I need to have the values of each row so I can pass them to the 
php.

Thanks


--- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote:

 We will need much more detail on what you want to do.
 
  
 
 Use your words.
 
  
 
 Tracy
 
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of ghus32
 Sent: Friday, June 27, 2008 3:06 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Using Datagrid Data
 
  
 
 Yah I am I want to send each row as a var to a webservice.
 
 Thanks
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%
40yahoogroups.com
 , Fidel Viegas fidel.viegas@ 
 wrote:
 
  On Fri, Jun 27, 2008 at 6:35 PM, ghus32 stevenpo@ wrote:
   Hello everyone,
  
   Is it possible to send data from a poulated datagrid??
  
   For example, I want to send row1 and make it a var.. is this 
 possible?
  
   Thanks
  
  What exactly are you trying to achieve? Send data to a webservice,
  remote object or http service? Is that what you mean?
  
  Fidel.
 





[flexcoders] Populating Column Chart with PHP and MYSQL

2008-06-26 Thread ghus32
Hello,

I have done this with many datagrids and had success but cant seem
to get it to work with the column charts.

I have several different queries in php where I get the data from but
I dont know the format. an example of the php code below

I would like to have $num_signage and $num_website as datagrid 
columns, plus I will be adding more queries later. 

I am thinking I would need to make the values of $num_signage and 
$num_website into some sort of an array so flex can read individaul 
results.. I have have been trying many things with no success.

Any suggestions?

Thanks









$query_website = SELECT form.question_id, form.answer_id, 
form.add_date, answer.answer_id, answer.answer FROM form
LEFT JOIN answer ON form.answer_id = answer.answer_id
WHERE form.question_id ='10' and answer.answer = 'Website' and 
form.add_date BETWEEN DATE '2008-06-01' AND DATE '2008-06-29';
$result_website = mysql_query ($query_website);
$num_rows_website = mysql_num_rows($result_website);
$num_website = website_num$num_rows_website/website_num;
print ($num_website);
 
$query_signage = SELECT form.question_id, form.answer_id, 
form.add_date, answer.answer_id, answer.answer FROM form
LEFT JOIN answer ON form.answer_id = answer.answer_id
WHERE form.question_id ='10' and answer.answer = 'Signage' and 
form.add_date BETWEEN DATE '2008-06-01' AND DATE '2008-06-29';
$result_signage = mysql_query ($query_signage);
$num_rows_signage = mysql_num_rows($result_signage);
$num_signage = signage$num_rows_signage/signage;
print ($num_signage); 





[flexcoders] populating a column chart with php and mysql

2008-06-25 Thread ghus32
Hello,

I have done this with many datagrids and had success but cant seem
to get it to work with the column charts.

I have several different queries in php where I get the data from but
I dont know the format here is an example of my php code

$query_website = SELECT form.question_id, form.answer_id, 
form.add_date, answer.answer_id, answer.answer FROM form
LEFT JOIN answer ON form.answer_id = answer.answer_id
WHERE form.question_id ='10' and answer.answer = 'Website' and 
form.add_date BETWEEN DATE '2008-06-01' AND DATE '2008-06-29';
$result_website =  mysql_query ($query_website);
$num_rows_website = mysql_num_rows($result_website);
$num_website = website_num$num_rows_website/website_num;
print ($num_website);



$query_signage = SELECT form.question_id, form.answer_id, 
form.add_date, answer.answer_id, answer.answer FROM form
LEFT JOIN answer ON form.answer_id = answer.answer_id
WHERE form.question_id ='10' and answer.answer = 'Signage' and 
form.add_date BETWEEN DATE '2008-06-01' AND DATE '2008-06-29';
$result_signage =  mysql_query ($query_signage);
$num_rows_signage = mysql_num_rows($result_signage);
$num_signage = signage$num_rows_signage/signage;
print ($num_signage);


I would like to have $num_signage and $num_website as datagrid 
columns.


Any suggestions?

Thanks




[flexcoders] passing data from PHP to Flex

2008-06-24 Thread ghus32
Hello everyone,

I have an upload script that I am using in Flex with PHP. The upload 
function is working fine, but I want to pass data from the serverside 
script back to the app. I want to communicate the message part in the 
php back to Flex.

HOw would I go about doing this..






My PHP code is below

$uploaddir = TEMPLATE_DIRECTORY;
$filename= trim($_FILES['file']['name']);



if(is_uploaded_file($_FILES['file']['tmp_name']))
{
 

  $id = time().mt_rand(0,1);
  $file = $id;
 
  
move_uploaded_file($_FILES['file']['tmp_name'],$uploaddir.$file);

$filepath=$uploaddir.'/';



$query_filename= INSERT INTO template(name, location, temp_name) 
VALUES ('$filename', '$filepath' , '$file');

$result_filename = mysql_query( $query_filename );

}
print Your file has been uploaded successfully! Yay!;



$message =  resultmessage$file 
uploadedsuccessfully./message/result;
echo $message;




[flexcoders] adding space in an array collection

2008-06-19 Thread ghus32
ac.addItem({name:first_name_traffic.text + last_name_traffic.text});

Is there a way to add a space between first name and last name in this 
code. I tried adding  but that didnt work


Thanks



[flexcoders] Double Click Function Datagrid

2008-05-29 Thread ghus32
Hello everyone,

I would like to execute a function when I double click on a data
grid row. Any ideas?

Thanks



[flexcoders] passing variables to popup window

2008-05-29 Thread ghus32

Hello everyone,

I am looking to pass a simple variable to a popup window..

how would I go about doing this


Thanks





[flexcoders] Flex 2 to Flex 3 style problem.

2008-04-25 Thread ghus32
hello everyone,

I have moved a project from Flex 2 to 3 and now am having problems with 
my css styles...

I already right clicked on the css files and compiled to swf


here is the error I am getting

Error: Unable to load style(Error #2036: Load Never Completed. URL:

any suggestions???

Thanks 



[flexcoders] Re: currentState question

2008-04-25 Thread ghus32
try this


this.currentState='statename'




--- In flexcoders@yahoogroups.com, Nicolas Boulet-Lavoie 
[EMAIL PROTECTED] wrote:

 Hello,
 
  
 
 When I try to use this VERY easy command :
 
  
 
 currentState = 
 
  
 
 I'm getting this error.
 
  
 
 Error #2006: L'index indiqué sort des limites.
 
  
 
 Any idea why?
 
  
 
 -- 
 
 Merci et bonne journée,
 
  
 
 Nicolas Boulet-Lavoie, Webmestre/Webmaster
 
 
 
 L A P R I S E ®
 
 Tél: 248-8886 poste 288
 
 [EMAIL PROTECTED]
 
  
 
 http://www.maisonlaprise.com/
 
 http://www.habitaflex.com/
 
 http://www.lorendo.com/
 
 http://www.tomindustries.com/
 
 
 
  
 
 AVERTISSEMENT CONCERNANT LA CONFIDENTIALITÉ. Ce message est 
strictement
 réservé à l'usage de l'individu ou de l'entité à qui il est adressé 
et
 contient de l'information privilégiée et confidentielle. Si le 
lecteur de ce
 message n'est pas le destinataire projeté, celui-ci est par la 
présente
 avisé que tout dissémination, distribution ou copie de cette 
communication
 est strictement prohibée. Si le destinataire ne peut être joint ou 
vous est
 inconnu, veuillez informer l'expéditeur par courrier électronique
 immédiatement et détruire ce message et toute copie de celui-ci.
 
  
 
 CONFIDENTIALITY WARNING This message is intended solely for the 
individual
 or entity to whom it is addressed. It contains privileged and 
confidential
 information which is not to be disclosed without the sender's 
express
 consent. If you are not the intended recipient of this message or an
 authorized representative thereof, please notify the sender by 
email and
 then destroy this message as well as all other existing copies.





[flexcoders] file indexing

2008-04-21 Thread ghus32
Hello Everyone,

is it possible to show a file directory/tree on my server in a flex 
tree or datagrid??

Thanks



[flexcoders] PHP Mailer with Flex

2008-04-17 Thread ghus32
Hello Everyone,

Does anyone here have any good suggestions for a PHP mailer to use with 
Flex??

Thanks





[flexcoders] Calling http services in separate file

2008-04-16 Thread ghus32
Hello Everyone,

I want to clean up my code and put all of my http services in a 
separate mxml file..

how would I call these at runtime??

Thanks



[flexcoders] Resetting a datechooser

2008-04-14 Thread ghus32
Hello everyone,

anyone know a code to reset a datechooser back to todays date??


Thanks

Steve



[flexcoders] Re: plezzzz help me

2008-04-14 Thread ghus32
sounds like to me you have a forwarding issue. 
you need to forward to your html file in your bin directory.

Steve


--- In flexcoders@yahoogroups.com, NileAge, Mail [EMAIL PROTECTED] wrote:

 Hi all,
 
  
 
 We were uploaded the flex site 
(http://www.ainsokhna.travel/newhome.html ).
 
 There are problems:
 
  
 
 1-  The sequence of appearance .
 
 2-  and loader for all components in first time.
 
  
 
 Please reply me all problems and solutions.
 
  
 
 Thank you 
 
 Abdullah Abdelhay





[flexcoders] Datechooser date select

2008-04-02 Thread ghus32
Hello everyone, 

Is there a way to have a date preselected in the date chooser??

ex.. I pull a date from my database 4/22/2008, and I want to use this 
date to preselect on the date chooser.

Thanks again

Steve



[flexcoders] Problem with tab navigator

2008-04-01 Thread ghus32
I have a problem with a tab navigator on my page. When I switch states 
and go back to the state with the tab navigator Flex remembers what 
tab I was on. 
This is very annoying

Anyone know of a fix for this?

Thanks







[flexcoders] Problem with Tab Navigator

2008-03-31 Thread ghus32
I have a problem with a tab navigator on my page. When I switch states 
and go  back to the state with the tab navigator Flex remembers what 
tab I was on. 
This is very annoying

Anyone know of a fix for this?

Thanks




[flexcoders] Problem with Tab bar

2008-03-28 Thread ghus32
I have a problem with a tabbar on my page. When I switch states and go 
back to the state with the tabbar Flex remembers what tab I was on. 
This is very annoying

Anyone know of a fix for this?

Thanks



[flexcoders] Differences between Flex 3 standard and pro

2008-03-26 Thread ghus32
Hello Everyone,

I was wondering does anyone know of a site that clearly outlines the 
differences between Flex 3 standard and pro. Or can someone of you guys 
enlighten me. Is it worth spending the extra 400$ for pro? your inpur 
will be greatly appreciated.

Thanks




[flexcoders] Timed Reminder System

2008-03-13 Thread ghus32
Has anyone seen anything or created something that could do timed 
reminders in Flex. And to be able to set up reminders??



[flexcoders] Datagrid not refreshing

2008-03-11 Thread ghus32
Hello Everyone,

I have something bizarre happinging in flex. I have 2 datagrids in my 
project which the data providers are from http service which is linked 
to php/mysql. One of my data grids adds new changes from database on 
refresh and the other one doesnt... I am using the same code for both 
and I have reread and reread the code for differences and cannot find 
any.

Any Suggestions?

Thanks




[flexcoders] Mouse over event alert

2008-03-06 Thread ghus32
Hello Everyone,

How would I go about adding a mouse over alert on a text link?

Thanks




[flexcoders] Combo Box Does not refresh

2008-02-29 Thread ghus32
Hello everyone,

I have a combox which the dataprovider is an http service linked with 
php and mysql. When I hit a button which triggers the service the 
combox does not refresh with the new inputted results. I have to start 
the application over again and the new fields will appear.

any suggestions?

Thanks



[flexcoders] Flex 2.0 with no history and cache

2008-02-22 Thread ghus32
Hello Everyone,

How would I go about making my completed application have no history or 
cache?

I am having problems with it remmbering tabs between states and 
remembering results from services.

Thanks

Steve



[flexcoders] Flex Panel Style

2008-02-21 Thread ghus32
Hello,

Do any of you guys know how to revove the indent of the flex panel so 
it blends in with the backgound?

Thanks

Steve



[flexcoders] Dynamically changing flex application skins

2008-02-20 Thread ghus32
Does anyone know how to dynamically change the skin of a flex 
application?

thanks

steve



[flexcoders] Reset State in Flex

2008-02-20 Thread ghus32
Is there a way to reset a state in Flex?

Thanks 

steve



[flexcoders] Terminating a function

2008-02-19 Thread ghus32
How do you terminate or stop a function in Flex 2.0?

Thanks



[flexcoders] Checkbox with function problem

2008-02-15 Thread ghus32
Hello Everyone,

I am emailing because I have a problem whenever I write a function with 

if (Checkbox.selected=ture/false){something}

or if (!checkbox.selected){something}

Flex reads the function before I call it, or it reads the selected. So 
when I run the program the checkbox is already selected by default.

Anyone know of a solution?

thanks

Steve



[flexcoders] Flex Cache or History Isssue

2008-02-14 Thread ghus32
Please help...
I am pulling my hair out.

I am looking at a way to reset states and funcitons in Flex.

When I go to a state that uses a tabbar and lets say go to the third 
tab and use my back to home button. Wheni go back to that state Flex 
remebers what tab I was using. I want it to go back the first tab. and 
I have been researching with no results. anyone have any ideas?

Thanks

Steve



[flexcoders] Flex Cache or History Isssue

2008-02-13 Thread ghus32
Please help...
I am pulling my hair out.

I am looking at a way to reset states and funcitons in Flex.

When I go to a state that uses a tabbar and lets say go to the third 
tab and use my back to home button. Wheni go back to that state Flex 
remebers what tab I was using. I want it to go back the first tab. and 
I have been researching with no results. anyone have any ideas?

Thanks

Steve