Re: [flexcoders] array question.

2005-08-15 Thread Manu Juyal
Tracy,
I am still not able to get the results. 

following is my HttpService and below that is the XML code and
function reading results from the service
..
http://x/.php"; 
fault="faultHandler(event.fault.faultstring, event.fault.faultcode)" 
method="POST" showBusyCursor="true" useProxy="false" />
...
it returns following XML



xxx





yyy



function popInvoice(sessionid){ 
posterinfo_srv.send({query_type:'getposterinfo_sessionid2', sessionid:
sessionid});
posteradminstack.selectedChild = invoicepanel;
var posterdata = posterinfo_srv.result.posters.poster;
  
lbl_fname.text = posterdata[0].firstname;
lbl_lname.text = posterdata[0].lastname;
lbl_date.text = posterdata[0].date;
}




On 8/12/05, Tracy Spratt <[EMAIL PROTECTED]> wrote:
> If your resultFormat is xml or object, and there is an array in the data
> returned, there will be an array in the result object.  The trick is
> finding it. When you do you can assign it directly to the variable.
> 
> Do you know exactly what the httpservice is returning?  Use a result
> event handler and a debugger to inspect the result object.
> 
> If result format is object, the default, then you will dot down to the
> array.  If it is xml, you will use the xml api to nav to the data, then
> use childNodes to return the array.
> 
> Tracy
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of juyalmanu
> Sent: Friday, August 12, 2005 4:43 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] array question.
> 
> 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
> 
> 
> 
> 
> 
> --
> 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 
> 
>  Visit your group "flexcoders" on the web.
>   
>  To unsubscribe from this group, send an email to:
>  [EMAIL PROTECTED]
>   
>  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
>  To unsubscribe from this group, send an email to:
>  [EMAIL PROTECTED]
>   
>  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
>  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
> 
>


 Yahoo! Groups Sponsor ~--> 
http://us.ard.yahoo.com/SIG=12hblt7n0/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1124132739/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
">Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life 
- brought to you by One Economy.
~-> 

--
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/
 




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

2005-07-25 Thread Manu Juyal
Haven't had much in solving this problem... would appreciated if
anybody can help..

On 7/22/05, Manu Juyal <[EMAIL PROTECTED]> wrote:
> here is code snippet again
> 
> I am using HTTPService to do authentication and also to retrieve the data.
> Following is the part of the code..
> 
> 
> 
> http://www.macromedia.com/2003/mxml";
> xmlns="*" height="661" autoLayout="false" marginTop="0" marginLeft="0"
> marginRight="0" marginBottom="0">
> 
> 
> 
>  
> 
>  url="http://flex.xx.xxx.xxx/lxxx/l.php"; useProxy="false"
> result="auth_check()"/>
> 
>  http://xxx.xx.xxx.xxx/lxxx/l.php";
>  fault="faultHandler(event.fault.faultstring, event.fault.faultcode)"
>  result="popCustomerForm_MyID(lookup.result)"
>  method="POST" showBusyCursor="true" useProxy="false" />
> 
>  width="884" height="559">
>  
>  
> 
> 
>  height="581" verticalAlign="middle" horizontalAlign="center">
>  ---This panel has form that needs to be populated
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> On 7/22/05, Manu Juyal <[EMAIL PROTECTED]> wrote:
> > adding to my last email..
> > following is the flow of the application
> >
> > The application starts with "loginpanel" view in the viewstack... goes
> > to authentication page and after successful authentication should come
> > back and display "customerpanel" view with all information populated.
> > However, it is not coming back to "customerpanel" rather displaying
> > "loginpanel" again...
> >
> >
> >
> > On 7/22/05, Manu Juyal <[EMAIL PROTECTED]> wrote:
> > > I tried moving the line  and also providing conditional statements but
> > > problem remains there
> > >
> > > it is showing loginpanel of the viewstack again after the login is
> > > successful. I guess when the application starts it displays the first
> > > view in the stack. Does that mean the application is starting again
> > > after authentication..
> > >
> > > I am at loss to solve this problem.. :(
> > >
> > >
> > >
> > >
> > > On 7/22/05, Sreejith Unnikrishnan <[EMAIL PROTECTED]> wrote:
> > > > Didnt see that u had posted the code as well ...
> > > >
> > > > All you would need to do is  move this line:
> > > > customerinfostack.selectedChild = customerpanel;
> > > >
> > > > from
> > > > function popCustomerForm_MyID(customerData)
> > > >
> > > > to
> > > > function getData()
> > > >
> > > >
> > > > Sree
> > > >
> > > >
> > > > Manu Juyal wrote:
> > > >
> > > > > I am using HTTPService to do authentication and also to retrieve the
> > > > > data.
> > > > > Following is the part of the code..
> > > > >
> > > > >
> > > > > 
> > > > >  > > > xmlns:mx="http://www.macromedia.com/2003/mxml";
> > > > > xmlns="*" height="661" autoLayout="false" marginTop="0" marginLeft="0"
> > > > > marginRight="0" marginBottom="0">
> > > > >
> > > > > 
> > > > > 
> > > > > 
> > > > >
> > > > >  > > > > url="http://flex.xx.xxx.xxx/lxxx/l.php";
> > > > useProxy="false"
> > > > > result="auth_check()"/>
> > > > >
> > > > >> > > url="http://xxx.xx.xxx.xxx/lxxx/l.php";
> > > > >   fault="faultHandler(event.fault.faultstring, event.fault.faultcode)"
> > > > >   result="popCustomerForm(lookup.result)"
> > > > >   method="POST" showBusyCursor="true" useProxy="false" />
> > > > >
> > > > >  > > > > width="884" height="559">
> > > > >   
> > > > >
> > > > > 
> > > > >
> > > > >  > > > > height="581" verticalAlign="middle" horizontalAlign="center">
> > > > > ---This panel has form that needs to be populated
> > 

Re: [flexcoders] UNSOLVED problem in using web authentication using different website.

2005-07-24 Thread Manu Juyal
Hi all,
I am still not able to figure out how to do it... Please post some
suggetions that I can try... :(



On 7/22/05, Manu Juyal <[EMAIL PROTECTED]> wrote:
> here is code snippet again
> 
> I am using HTTPService to do authentication and also to retrieve the data.
> Following is the part of the code..
> 
> 
> 
> http://www.macromedia.com/2003/mxml";
> xmlns="*" height="661" autoLayout="false" marginTop="0" marginLeft="0"
> marginRight="0" marginBottom="0">
> 
> 
> 
>  
> 
>  url="http://flex.xx.xxx.xxx/lxxx/l.php"; useProxy="false"
> result="auth_check()"/>
> 
>  http://xxx.xx.xxx.xxx/lxxx/l.php";
>  fault="faultHandler(event.fault.faultstring, event.fault.faultcode)"
>  result="popCustomerForm_MyID(lookup.result)"
>  method="POST" showBusyCursor="true" useProxy="false" />
> 
>  width="884" height="559">
>  
>  
> 
> 
>  height="581" verticalAlign="middle" horizontalAlign="center">
>  ---This panel has form that needs to be populated
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> On 7/22/05, Manu Juyal <[EMAIL PROTECTED]> wrote:
> > adding to my last email..
> > following is the flow of the application
> >
> > The application starts with "loginpanel" view in the viewstack... goes
> > to authentication page and after successful authentication should come
> > back and display "customerpanel" view with all information populated.
> > However, it is not coming back to "customerpanel" rather displaying
> > "loginpanel" again...
> >
> >
> >
> > On 7/22/05, Manu Juyal <[EMAIL PROTECTED]> wrote:
> > > I tried moving the line  and also providing conditional statements but
> > > problem remains there
> > >
> > > it is showing loginpanel of the viewstack again after the login is
> > > successful. I guess when the application starts it displays the first
> > > view in the stack. Does that mean the application is starting again
> > > after authentication..
> > >
> > > I am at loss to solve this problem.. :(
> > >
> > >
> > >
> > >
> > > On 7/22/05, Sreejith Unnikrishnan <[EMAIL PROTECTED]> wrote:
> > > > Didnt see that u had posted the code as well ...
> > > >
> > > > All you would need to do is  move this line:
> > > > customerinfostack.selectedChild = customerpanel;
> > > >
> > > > from
> > > > function popCustomerForm_MyID(customerData)
> > > >
> > > > to
> > > > function getData()
> > > >
> > > >
> > > > Sree
> > > >
> > > >
> > > > Manu Juyal wrote:
> > > >
> > > > > I am using HTTPService to do authentication and also to retrieve the
> > > > > data.
> > > > > Following is the part of the code..
> > > > >
> > > > >
> > > > > 
> > > > >  > > > xmlns:mx="http://www.macromedia.com/2003/mxml";
> > > > > xmlns="*" height="661" autoLayout="false" marginTop="0" marginLeft="0"
> > > > > marginRight="0" marginBottom="0">
> > > > >
> > > > > 
> > > > > 
> > > > > 
> > > > >
> > > > >  > > > > url="http://flex.xx.xxx.xxx/lxxx/l.php";
> > > > useProxy="false"
> > > > > result="auth_check()"/>
> > > > >
> > > > >> > > url="http://xxx.xx.xxx.xxx/lxxx/l.php";
> > > > >   fault="faultHandler(event.fault.faultstring, event.fault.faultcode)"
> > > > >   result="popCustomerForm(lookup.result)"
> > > > >   method="POST" showBusyCursor="true" useProxy="false" />
> > > > >
> > > > >  > > > > width="884" height="559">
> > > > >   
> > > > >
> > > > > 
> > > > >
> > > > >  > > > > height="581" verticalAlign="middle" horizontalAlign="center">
> > > > > ---This panel has form that needs

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

2005-07-22 Thread Manu Juyal
here is code snippet again

I am using HTTPService to do authentication and also to retrieve the data.
Following is the part of the code..



http://www.macromedia.com/2003/mxml";
xmlns="*" height="661" autoLayout="false" marginTop="0" marginLeft="0"
marginRight="0" marginBottom="0">



 

http://flex.xx.xxx.xxx/lxxx/l.php"; useProxy="false"
result="auth_check()"/>

 http://xxx.xx.xxx.xxx/lxxx/l.php";
 fault="faultHandler(event.fault.faultstring, event.fault.faultcode)"
 result="popCustomerForm_MyID(lookup.result)"
 method="POST" showBusyCursor="true" useProxy="false" />


 
  



 ---This panel has form that needs to be populated












On 7/22/05, Manu Juyal <[EMAIL PROTECTED]> wrote:
> adding to my last email..
> following is the flow of the application
> 
> The application starts with "loginpanel" view in the viewstack... goes
> to authentication page and after successful authentication should come
> back and display "customerpanel" view with all information populated.
> However, it is not coming back to "customerpanel" rather displaying
> "loginpanel" again...
> 
> 
> 
> On 7/22/05, Manu Juyal <[EMAIL PROTECTED]> wrote:
> > I tried moving the line  and also providing conditional statements but
> > problem remains there
> >
> > it is showing loginpanel of the viewstack again after the login is
> > successful. I guess when the application starts it displays the first
> > view in the stack. Does that mean the application is starting again
> > after authentication..
> >
> > I am at loss to solve this problem.. :(
> >
> >
> >
> >
> > On 7/22/05, Sreejith Unnikrishnan <[EMAIL PROTECTED]> wrote:
> > > Didnt see that u had posted the code as well ...
> > >
> > > All you would need to do is  move this line:
> > > customerinfostack.selectedChild = customerpanel;
> > >
> > > from
> > > function popCustomerForm_MyID(customerData)
> > >
> > > to
> > > function getData()
> > >
> > >
> > > Sree
> > >
> > >
> > > Manu Juyal wrote:
> > >
> > > > I am using HTTPService to do authentication and also to retrieve the
> > > > data.
> > > > Following is the part of the code..
> > > >
> > > >
> > > > 
> > > >  > > xmlns:mx="http://www.macromedia.com/2003/mxml";
> > > > xmlns="*" height="661" autoLayout="false" marginTop="0" marginLeft="0"
> > > > marginRight="0" marginBottom="0">
> > > >
> > > > 
> > > > 
> > > > 
> > > >
> > > >  > > > url="http://flex.xx.xxx.xxx/lxxx/l.php";
> > > useProxy="false"
> > > > result="auth_check()"/>
> > > >
> > > >> > url="http://xxx.xx.xxx.xxx/lxxx/l.php";
> > > >   fault="faultHandler(event.fault.faultstring, event.fault.faultcode)"
> > > >   result="popCustomerForm(lookup.result)"
> > > >   method="POST" showBusyCursor="true" useProxy="false" />
> > > >
> > > >  > > > width="884" height="559">
> > > >   
> > > >
> > > > 
> > > >
> > > >  > > > height="581" verticalAlign="middle" horizontalAlign="center">
> > > > ---This panel has form that needs to be populated
> > > > 
> > > >
> > > > 
> > > > 
> > > >
> > > > On 7/21/05, Matt Chotin <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > >
> > > > > How are you doing the authentication?  Are you using getURL to
> > > > navigate the
> > > > > browser?  Or are you using an HTTPService to retrieve the data and 
> > > > > using
> > > > > basic authentication?  I'm not sure how your app is set up here.
> > > > >
> > > > >
> > > > >
> > > > > Matt
> > > > >
> > > > >
> > > > > 
> > > > >
> > > > >
> > > > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTE

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

2005-07-22 Thread Manu Juyal
adding to my last email..
following is the flow of the application

The application starts with "loginpanel" view in the viewstack... goes
to authentication page and after successful authentication should come
back and display "customerpanel" view with all information populated.
However, it is not coming back to "customerpanel" rather displaying
"loginpanel" again...



On 7/22/05, Manu Juyal <[EMAIL PROTECTED]> wrote:
> I tried moving the line  and also providing conditional statements but
> problem remains there
> 
> it is showing loginpanel of the viewstack again after the login is
> successful. I guess when the application starts it displays the first
> view in the stack. Does that mean the application is starting again
> after authentication..
> 
> I am at loss to solve this problem.. :(
> 
> 
> 
> 
> On 7/22/05, Sreejith Unnikrishnan <[EMAIL PROTECTED]> wrote:
> > Didnt see that u had posted the code as well ...
> >
> > All you would need to do is  move this line:
> > customerinfostack.selectedChild = customerpanel;
> >
> > from
> > function popCustomerForm_MyID(customerData)
> >
> > to
> > function getData()
> >
> >
> > Sree
> >
> >
> > Manu Juyal wrote:
> >
> > > I am using HTTPService to do authentication and also to retrieve the
> > > data.
> > > Following is the part of the code..
> > >
> > >
> > > 
> > >  > xmlns:mx="http://www.macromedia.com/2003/mxml";
> > > xmlns="*" height="661" autoLayout="false" marginTop="0" marginLeft="0"
> > > marginRight="0" marginBottom="0">
> > >
> > > 
> > > 
> > > 
> > >
> > >  > > url="http://flex.xx.xxx.xxx/lxxx/l.php";
> > useProxy="false"
> > > result="auth_check()"/>
> > >
> > >> url="http://xxx.xx.xxx.xxx/lxxx/l.php";
> > >   fault="faultHandler(event.fault.faultstring, event.fault.faultcode)"
> > >   result="popCustomerForm(lookup.result)"
> > >   method="POST" showBusyCursor="true" useProxy="false" />
> > >
> > >  > > width="884" height="559">
> > >   
> > >
> > > 
> > >
> > >  > > height="581" verticalAlign="middle" horizontalAlign="center">
> > > ---This panel has form that needs to be populated
> > > 
> > >
> > > 
> > > 
> > >
> > > On 7/21/05, Matt Chotin <[EMAIL PROTECTED]> wrote:
> > > >
> > > >
> > > > How are you doing the authentication?  Are you using getURL to
> > > navigate the
> > > > browser?  Or are you using an HTTPService to retrieve the data and using
> > > > basic authentication?  I'm not sure how your app is set up here.
> > > >
> > > >
> > > >
> > > > Matt
> > > >
> > > >
> > > > 
> > > >
> > > >
> > > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> > > > Behalf Of juyalmanu
> > > > Sent: Thursday, July 21, 2005 4:43 PM
> > > > To: flexcoders@yahoogroups.com
> > > > Subject: [flexcoders] problem in using web authentication using
> > > different
> > > > website.
> > > >
> > > >
> > > >
> > > >
> > > > 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
> > &

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

2005-07-22 Thread Manu Juyal
I tried moving the line  and also providing conditional statements but
problem remains there

it is showing loginpanel of the viewstack again after the login is
successful. I guess when the application starts it displays the first
view in the stack. Does that mean the application is starting again
after authentication..

I am at loss to solve this problem.. :(




On 7/22/05, Sreejith Unnikrishnan <[EMAIL PROTECTED]> wrote:
> Didnt see that u had posted the code as well ...
> 
> All you would need to do is  move this line:
> customerinfostack.selectedChild = customerpanel;
> 
> from
> function popCustomerForm_MyID(customerData)
> 
> to
> function getData()
> 
> 
> Sree
> 
> 
> Manu Juyal wrote:
> 
> > I am using HTTPService to do authentication and also to retrieve the 
> > data.
> > Following is the part of the code..
> >
> >
> > 
> >  xmlns:mx="http://www.macromedia.com/2003/mxml";
> > xmlns="*" height="661" autoLayout="false" marginTop="0" marginLeft="0"
> > marginRight="0" marginBottom="0">
> >
> > 
> > 
> > 
> >
> >  > url="http://flex.xx.xxx.xxx/lxxx/l.php";
> useProxy="false"
> > result="auth_check()"/>
> >
> >url="http://xxx.xx.xxx.xxx/lxxx/l.php";
> >   fault="faultHandler(event.fault.faultstring, event.fault.faultcode)"
> >   result="popCustomerForm(lookup.result)"
> >   method="POST" showBusyCursor="true" useProxy="false" />
> >
> >  > width="884" height="559">
> >   
> >
> > 
> >
> >  > height="581" verticalAlign="middle" horizontalAlign="center">
> > ---This panel has form that needs to be populated
> > 
> >
> > 
> > 
> >
> > On 7/21/05, Matt Chotin <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > > How are you doing the authentication?  Are you using getURL to 
> > navigate the
> > > browser?  Or are you using an HTTPService to retrieve the data and using
> > > basic authentication?  I'm not sure how your app is set up here.
> > >
> > > 
> > >
> > > Matt
> > >
> > > 
> > > 
> > >
> > >
> > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> > > Behalf Of juyalmanu
> > > Sent: Thursday, July 21, 2005 4:43 PM
> > > To: flexcoders@yahoogroups.com
> > > Subject: [flexcoders] problem in using web authentication using 
> > different
> > > website.
> > >
> > >
> > > 
> > >
> > > 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
> > >

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

2005-07-21 Thread Manu Juyal
I am using HTTPService to do authentication and also to retrieve the data. 
Following is the part of the code..



http://www.macromedia.com/2003/mxml";
xmlns="*" height="661" autoLayout="false" marginTop="0" marginLeft="0"
marginRight="0" marginBottom="0">



  

http://flex.xx.xxx.xxx/lxxx/l.php"; useProxy="false"
result="auth_check()"/>

  http://xxx.xx.xxx.xxx/lxxx/l.php";
  fault="faultHandler(event.fault.faultstring, event.fault.faultcode)" 
  result="popCustomerForm(lookup.result)"
  method="POST" showBusyCursor="true" useProxy="false" />


  
   



 ---This panel has form that needs to be populated





On 7/21/05, Matt Chotin <[EMAIL PROTECTED]> wrote:
> 
> 
> How are you doing the authentication?  Are you using getURL to navigate the
> browser?  Or are you using an HTTPService to retrieve the data and using
> basic authentication?  I'm not sure how your app is set up here.
> 
>  
> 
> Matt
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of juyalmanu
> Sent: Thursday, July 21, 2005 4:43 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] problem in using web authentication using different
> website.
> 
> 
>  
> 
> 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 
> 
>  Visit your group "flexcoders" on the web.
>   
>  To unsubscribe from this group, send an email to:
>  [EMAIL PROTECTED]
>   
>  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
>  To unsubscribe from this group, send an email to:
>  [EMAIL PROTECTED]
>   
>  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
>  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
> 
> 
> 
>


--
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/
 




Re: [flexcoders] Printing whole lotta pages?

2005-07-05 Thread Manu Juyal
hi,
I am having the printing problems too. 

I need to print a form (just one page) using print button. I am just
not getting there. Can anyone please provide me a start point.

--Manu

On 7/5/05, Tracy Spratt <[EMAIL PROTECTED]> wrote:
> Printing in 1.5 is problematic.
> 
> Unless someone has come up with a better solution, you will need to
> create a special print container for each multi-page control you want to
> print.  You will only be able to print the visible part of the control,
> regardless of how you manipulate vPosition, so your print container
> needs to be the size of your page.
> 
> If you get that far, the documented methods of changing the visible
> content and adding a page to the printJob should work.
> 
> Tracy
> 
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of svktiilikainen
> Sent: Tuesday, July 05, 2005 10:20 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Printing whole lotta pages?
> 
> Hi,
> 
> I need to print a form having two pages. The form consists of boxes, 
> containing layout boxes and grids, containing labels, texts etc. The 
> contents are pretty long so that a vertical scrollbar is displayed on 
> the form. 
> 
> I have studied the PrintJob class and tried various procedures with 
> little success. How should the pages be scaled in order for them to 
> fit to the paper (A4)? And, above all, is there any way to print the 
> second page? Is it true that the printable contents should be visible 
> when printing?? Now I can print (most of) the first page, with good 
> luck, but never the second page (a blank, black page prints out). And 
> yes, I have tried manipulating the vPosition of the VBox in question 
> to give the PrintJob a clue as where to start the second page. This 
> has not worked.
> Suggestions, anyone, please?
> 
> Satu
> 
> 
> 
> 
> --
> 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 
> 
>  Visit your group "flexcoders" on the web.
>   
>  To unsubscribe from this group, send an email to:
>  [EMAIL PROTECTED]
>   
>  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
>  To unsubscribe from this group, send an email to:
>  [EMAIL PROTECTED]
>   
>  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
>  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
> 
>


--
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/
 




Re: [flexcoders] XML, PHP and Flex

2005-07-05 Thread Manu Juyal
yes it is called in "result" event handler 

On 7/4/05, Manish Jethani <[EMAIL PROTECTED]> wrote:
> On 7/2/05, juyalmanu <[EMAIL PROTECTED]> wrote:
> 
> >   > url="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).
> 
> > 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
> 
> When is popCustomer called?  It should be called _after_ the data has
> been retreived (perhaps in the "result" event handler itself).
> 
> 
> --
> 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 
> 
>  Visit your group "flexcoders" on the web.
>   
>  To unsubscribe from this group, send an email to:
>  [EMAIL PROTECTED]
>   
>  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
>  To unsubscribe from this group, send an email to:
>  [EMAIL PROTECTED]
>   
>  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
>  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
> 
>


--
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/
 




Re: [flexcoders] Re: Page redirection

2005-07-04 Thread Manu Juyal
I used ViewStacks and it is working I wanted it to... please see the
code below ffor how i created the viewstacks. Basically, it worked the
same as multipleforms in VB etc.

selectedIndex property of viewstack initialize the viewstack with the
container whose index you have provided.

Later on with program logic, you can change the container by using
something like this:
MyViewStack.selectedChild = myContainer;

I used following call after validation.

"posteradminstack.selectedChild = posterpanel;"

code goes below.. hope it helps..



  
  



  

  
  

  




  




  


  

  
  

  
  

  
  
  
  

  



  


  



  
  

  
  

  
  

  


  


xx
yyy
zzz
ttt
www


  


  


  

  

  


  

  


  

  

  

  
  














On 7/1/05, juyalmanu <[EMAIL PROTECTED]> wrote:
> 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 
> 
>  Visit your group "flexcoders" on the web.
>   
>  To unsubscribe from this group, send an email to:
>  [EMAIL PROTECTED]
>   
>  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
>  To unsubscribe from this group, send an email to:
>  [EMAIL PROTECTED]
>   
>

Re: [flexcoders] XML, PHP and Flex

2005-07-03 Thread Manu Juyal
hi
Thanks a lot..
its working perfect now...

--Manu

On 7/2/05, Abdul Qabiz <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> You are calling popCustomer(..) function just after invoke
> HTTPService.send(). This wouldn't work.
> 
> HTTPService calls are asynchronous, that means you won't get result
> immediately. Request is sent to server, server processes data and
> returns back to client. This entire process takes some time. To be very
> safe, populate the UI in result handler of HTTPService, result handler
> would be called as soon as data is received in client.
> 
> See the modified code below:
> 
> 
> 
>  
> 
>  url="http://localhost:8080/islab/poster.php"; 
> fault="faultHandler(event.fault.faultstring, event.fault.faultcode)"
> result="popCustomer(poster_srv.result)"
> method="POST" showBusyCursor="true" useProxy="false" />
> 
> 
> Hope that helps
> 
> 
> BTW! Please don't start a new thread, you could have continued
> discussion in same old thread. That's how we can avoid duplicate
> threads...
> 
> -abdul
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of juyalmanu
> Sent: Saturday, July 02, 2005 5:31 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] XML, PHP and Flex
> 
> 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..
> 
>  url="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
> 
> 
> 
>  
> 
>  url="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
> 
> 
> 
> 
> 
> 
> 
> 
> --
> 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 
> 
>  Visit your group "flexcoders" on the web.
>   
>  To unsubscribe from this group, send an email to:
>  [EMAIL PROTECTED]
>   
>  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
>  To unsubscribe from this group, send an email to:
>  [EMAIL PROTECTED]
>   
>  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
>  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
> 
>


--
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/