[flexcoders] array question.

2005-08-12 Thread juyalmanu
Hi all..
I am trying to call a httpservice to fetch some data. Basically this 
data will be in the form number of records from database. Then I want 
to populate this data "NOT" in a datagrid but in some kind of form.

Can anyone please help me with how can I assign get data from the 
httpservice results to some array variable.


thanks




 Yahoo! Groups Sponsor ~--> 
http://us.ard.yahoo.com/SIG=12hic29lo/M=362329.6886308.7839368.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123886759/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992
">Fair play? Video games influencing politics. Click and talk back!.
~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Datagrid

2005-07-29 Thread juyalmanu
I am having a strange problem in populating datagrid..

I am able to populate the datagrid if there are more than 1 records. 
However if there is just 1 record it is not displayed in the 
datagrid.

After checking I found out that the call to database and retrieval 
of records are working fine. There is problem with populating 
datagrid only if only single record is retrieved.

any suggestion?? what is going wrong

Please find below the relevant code snippets...



 





  


  


  

  
  

  


  

  
  



  

  


//DATA GRID STARTS HERE 

  

  
  
  
  
  
  
  
  
  
  

  

  

///PHP FUNCTION
function getCustomer(){
  $firstname=$_POST['custfname'];
  $lastname=$_POST['custlname'];
  $fname=trim($firstname);
  $lname=trim($lastname);

  $conn = mysql_connect("xxx.xxx.xxx.xxx", 'xx', "xxx")
  or die("Could not connect to MySQL");
  
  mysql_select_db("xxx",$conn)or die ("could not open db".mysql_error
());

$query = "SELECT C.custID, S.sessionID, C.custFName, C.custLName, 
C.contFName, C.contLName,C.contEmail, C.contPhone, C.custDepartment, 
C.custCollege, S.indate, S.intime 
FROM session as S, customer as C  
WHERE C.custFName='$fname' and C.custLName='$lname' and S.custID = 
C.custID
ORDER BY C.custID";

$result = mysql_query($query, $conn) or die(mysql_error());
echo "\n";
while ($row = mysql_fetch_array($result)){
echo "\n";
echo "".$row['custID']."\n";
echo "".$row['sessionID']."\n";
echo "".$row['custFName']."\n";
echo "".$row['custLName']."\n";
echo "".$row['contFName']."\n";
echo "".$row['contLName']."\n";
echo "".$row['contEmail']."\n";
echo "".$row['contPhone']."\n";
echo "".$row['indate']."\n";
echo "".$row['intime']."\n";
echo "".$row['custDepartment']."\n";
echo "".$row['custCollege']."\n";
echo "\n";
}
echo "";
mysql_close($conn);
}





 Yahoo! Groups Sponsor ~--> 
http://us.ard.yahoo.com/SIG=12hn61f6h/M=362329.6886308.7839368.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1122673310/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992
">Fair play? Video games influencing politics. Click and talk back!.
~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] problem in using web authentication using different website.

2005-07-21 Thread juyalmanu
Dear All,
I am havig problem with web authentication service along with flex. 
The idea is very simple.

1. I start a flex application (I am using viewstack), the first view 
in the stach appear with two buttons, one for members and one for 
guest.

2. if I am a member, I click a log in button and it takes me to a 
URL where I will authenticate myself (It works fine).

3. Once I authenticate myself, I should be able to go to the next 
view in the stack, where all my information will retrieved from the 
database and all textboxes will be populated.

(I am able to authenticate and able to retrieve the information but 
it happens only if I set the call authentication function on 
application's initialize function. In that case I don't need first 
view in the stack (i.e. the view with two buttons). I'll 
automatically go to the web authentication URL upon the start of the 
application. ButI do need the first view).

In my opinion what happening is that after completing the 
authentication (after coming back from web authentication URL), the 
application is again starting with first view. However I want it to 
start with the second view with the populated text boxes.

can anyone give me some idea please.

--Manu







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] XML, PHP and Flex

2005-07-02 Thread juyalmanu
Hi all,
I am still stuck up with this. I am not sure if problem is with 
Httpservices or viewstacks.

I never worked with httpservices before. However after the 
suggestions in response to my previous posting. I created this..

 http://localhost:8080/islab/poster.php"; 
  fault="faultHandler(event.fault.faultstring, 
event.fault.faultcode)"
  result="customerData=poster_srv.result"
  method="POST" showBusyCursor="true" useProxy="false" />


after the data is retrieved it was to supposed to be displayed in 
another view,(posteradminstack is the name of my ViewStack for the 
application). Then the textinput boxes are populated in the 
posterpanel. Following is the code for that

function popCustomer(){ 
posteradminstack.selectedChild = posterpanel;
custlname.text = customerData.customer.customerfname;
custlname.text = customerData.customer.customerlname;
orderdate.text = customerData.customer.orderdate;}

It is not populating the boxes. Everything on php side is fine.
given below is code snippet



 

http://localhost:8080/islab/poster.php"; 
fault="faultHandler(event.fault.faultstring, event.fault.faultcode)"
result="customerData=poster_srv.result"
method="POST" showBusyCursor="true" useProxy="false" />





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: Page redirection

2005-07-01 Thread juyalmanu
dear all,
I got it..
thanks a ton for the replies

--Manu

--- In flexcoders@yahoogroups.com, "Abdul Qabiz" <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> You can take input and send to server via HTTPService or 
RemoteObject.
> Server-side script validates information and returns data. In Flex 
you
> can show information at same place, you don't need to go to another
> page.
> 
> But FYI, you can redirect to another page using getURL(..) 
function,
> like this:
> 
> getURL("newPage.html");
> 
> 
> But when we develop application using Macromedia Flex, we don't 
think
> application made of different pages instead we think in terms of
> different views. You can show different views in same place.
> 
> A view is nothing but a group of some containers and controls with 
logic
> written in ActionScript. You can expose Views as Flex Components. A
> screen can be made of many components. 
> 
> You show, hide and load components without refreshing the page. 
Data
> communication with server can happen behind-the-scenes, which 
means you
> don't need to refresh the page or go to another page. You can 
request
> data from server and show the data in same place.
> 
> Those are the reasons, Flex applications are highly interactive 
and such
> applications are known as Rich Internet Applications(RIAs).
> 
> You can read about best practices in Flex documentation and this 
great
> book (Developing Rich Clients with Macromedia Flex -
> http://flexbook.iterationtwo.com/).
> 
> Also looking at some sample applications shipped with Flex 
installation,
> macromedia.com, cflex.net, flexauthority.com etc would help you
> understand the RIA paradigm.
> 
> Please ignore above lecture, if you already know about all 
said...I just
> wanted to say that we use Flex in its best way, not just use it to
> replicate a html website in flash...
> 
> 
> -abdul
> 
> 
> -Original Message-
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of juyalmanu
> Sent: Thursday, June 30, 2005 2:57 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Page redirection
> 
> I want to redirect the page after password validation. Basically, 
I 
> should be able to gather the information about customer after 
initial 
> validation and display it in a separate page.
> 
> 
> Can anyone please help me out in this regard?
> 
> --Manu
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> Yahoo! Groups Links




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] XML, PHP and Flex

2005-07-01 Thread juyalmanu
Dear all
I have one more question regarding data access using flex.
I am working with flex, php and apache. I am trying to send the 
request from flex to php and from there retrieve the data from the 
database (populate textfields and combo boxes in flex). 

I trying to write the data into an xml file in php and have the 
actionscript parse the file (I am not sure if this the right method. 
If not can anyone give me some direction in the right path). If this 
correct than also I need help in how to go about it. 

Basically, I am very new to flex and actionscript but learning them 
fast.

--Manu




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Page redirection

2005-06-29 Thread juyalmanu
I want to redirect the page after password validation. Basically, I 
should be able to gather the information about customer after initial 
validation and display it in a separate page.


Can anyone please help me out in this regard?

--Manu




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Httpservice error message

2005-06-23 Thread juyalmanu
I am getting following error:

"Httpservice fault: Start tag had no corresponding end tag"

I tried and checked every tag but of no success. Can anyone please 
help
me out with it. Following is code I am using.

mx:Script>

  
 
 http://localhost/test/customer.php"; 
  fault="faultHandler(event.fault.faultstring, 
event.fault.faultcode)" 
  result="resultHandler(event)"
  method="POST" showBusyCursor="true" useProxy="false" />





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/