[flexcoders] Re: going to next page after submission to backend..

2008-03-11 Thread vitorinomarlene
Hello,
I've done something very similar to what you are describing, a survey
which was composed by 5 different forms. I used a ViewStack for each
group of questions, created a validator and a button for each canvas.
The validator checks if the responses are valid and the button submits
the data to the backend and changes the canvas.
Something like this:




public function validateQuest1():void{
   if (validResponse()) //validator for the user answers
   {
phpSendQuest1(); //sends the data to the backend
mainView.selectedIndex = 2; //changes the selectedIndex in the viewStack
   }
}

Just include the code you already have inside a viewstack canvas and i
believe i would still work


--- In flexcoders@yahoogroups.com, cool buddy <[EMAIL PROTECTED]> wrote:
>
> 
> HI all,
> 
> I have written a application where in the user enters his details
and hits submit button ..on submission the details are sent to the
database..It should go to the next page and display some
messagehow do we handle this in flex..i was thinking of using
states..but the above database processing i have included in a
component...
> 
> does anyone know how to handle this scenario..please post it..
> 
> Thanks,
> D
> 
> 
> 
> 
>  

> Looking for last minute shopping deals?  
> Find them fast with Yahoo! Search. 
http://tools.search.yahoo.com/newsearch/category.php?category=shopping
>




Re: [flexcoders] Re: going to next page after submission to backend..

2008-03-11 Thread cool buddy
HI all,

i have question regarding the use of tabnavigator and states..

i have defined states based on the home page..but when i navigate from a 
component page to the home page defining currentState='' on submitting the 
button it does not go to the home page instead it goes to the other page..does 
any one have any insight on this.. please let me know...

Thanks.



- Original Message 
From: vitorinomarlene <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Tuesday, March 11, 2008 6:18:44 PM
Subject: [flexcoders] Re: going to next page after submission to backend..

  Hello,
I've done something very similar to what you are describing, a survey
which was composed by 5 different forms. I used a ViewStack for each
group of questions, created a validator and a button for each canvas.
The validator checks if the responses are valid and the button submits
the data to the backend and changes the canvas.
Something like this:



public function validateQuest1( ):void{
   if (validResponse( )) //validator for the user answers
   {
phpSendQuest1( ); //sends the data to the backend
mainView.selectedIn dex = 2; //changes the selectedIndex in the 
viewStack
   }
}

Just include the code you already have inside a viewstack canvas and i
believe i would still work

--- In [EMAIL PROTECTED] ups.com, cool buddy <[EMAIL PROTECTED] ..> wrote:
>
> 
> HI all,
> 
> I have written a application where in the user enters his details
and hits submit button ..on submission the details are sent to the
database..It should go to the next page and display some
messagehow do we handle this in flex..i was thinking of using
states..but the above database processing i have included in a
component...
> 
> does anyone know how to handle this scenario..please post it..
> 
> Thanks,
> D
> 
> 
> 
> 
>  
 _ _ _ _ _ _
> Looking for last minute shopping deals?  
> Find them fast with Yahoo! Search. 
http://tools. search.yahoo. com/newsearch/ category. php?category= shopping
>



  











  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping