suppose I have this

<select multiple value="items">
<option>Wallet</option>
<option>Belt</option>
<option>Hat</option>
</select>

If the user selects wallet and hat, the following will be submitted to
the form's action page:

?items=Wallet&items=Hat

Quetion: How do I emulate this when calling an action page via a Flex
HTTPService object?

This is what I've tried so far:

1. Create a Flex List object with allowMultipleSelection = true
2. In the ActionScript that invokes the HTTPService, I put something
like the following:

var params:Object = new Object();
params.items = listControlInstance.selectedItems;
httpServiceInstance.send(params);

What Flex submits to the action page is the following:

?items=Wallet,Hat

...which breaks the action page.
What is the correct way of doing this?







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

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

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



Reply via email to