I manage to get string from database query. Using HTTPService i define
resultHandler
private function kategorijeHandler(kat:ResultEvent):void
{
var string:String = kat.result.toString();
var meniji:Array = string.split(",");
}
So now I have array meniji, with elements like meniji[0]=Food, meniji
[1]=Drink and so on. Now I have
<mx:ComboBox x="69" y="39" id="selektorKategorije"
dataProvider="{meniji}" ></mx:ComboBox>
But how can I force load this data in ComboBox after components
initialization at the start
Thx, I will post my php script and whole sollution after I finished
this, I think this can be usufull to many
Greetings
On Nov 30, 7:13 pm, explorer <[email protected]> wrote:
> I get something like
> FoodDrinkFun...
> I can easy force to have seperated by coma
>
> can you provide me little info about how to use symbol
>
> thx
>
> On Nov 30, 6:27 pm, dinesh kumar <[email protected]> wrote:
>
>
>
> > Hi,
>
> > wat kind of string format u get from php ?...atleast should
> > be separated with comma (,) like (value1,value2,value3) or equal(name=value)
> > pairs,if u get any kind of format like this then use the split(<symbol>) of
> > string class,which returns an array by which u can handle the server data
> > now easily, if u required any code assistance i can give you some sample
> > code even, or if u r not getting any of this format try returning the string
> > in an XML format and handle it in flex...
>
> > Happy flexing....- Hide quoted text -
>
> - Show quoted text -
--
You received this message because you are subscribed to the Google Groups "Flex
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/flex_india?hl=en.