Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 440557
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T20:53:05+00:00 2026-05-12T20:53:05+00:00

I am trying to get the drop down list of combobox by using a

  • 0

I am trying to get the drop down list of combobox by using a php file. That php file returns an xml string which has been used as data provider for combobox.

I followed this thread too but in vain.

Details
I have set the creationComplete attribute of mx:Application to init(). In the init() function i have sent the following HTTPService

<mx:HTTPService id="interfaces" url="interfaces.php" resultFormat="e4x" method="POST"> 
 </mx:HTTPService>

Combo Box:

Update:
The xml should look like

<?xml version=\"1.0\" encoding=\"utf-8\"?>
  <ifaces>
    <iface>
      <option>eth0</option>
    </iface>
    <iface>
      <option>eth1</option>
    </iface>
  </ifaces>

but if i execute interfaces.php in browser the only things that gets display is
eth0eth1
whereas i am echoing the string that contains whole xml data. Shouldn’t whole xml type of string display? 🙁

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T20:53:05+00:00Added an answer on May 12, 2026 at 8:53 pm

    The problem is that ifaces is the root element of your XML, so interfaces.lastResult == ifaces. So the XMLList you want is interfaces.lastResult.iface.

    This is a whole main class that works for me:

    `<mx:Application xmlns:mx=”http://www.adobe.com/2006/mxml”
    layout=”vertical”
    initialize=”{interfaces.send();}”>

    <mx:HTTPService id=”interfaces” url=”interfaces.xml” resultFormat=”e4x” method=”POST”>
    </mx:HTTPService>

    <mx:ComboBox dataProvider=”{interfaces.lastResult.iface}” labelField=”option”/>

    </mx:Application>`

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So basically I am trying to validate my drop down list (combobox) using the
I am trying to create a select drop-down list using php. Every time i
I am trying to create a drop down list using jQuery, PHP and mySQL,
I'm trying to make a drop down menu using javascript/jquery but can't get my
I'm trying to get the selected value from a drop down list via jQuery.
I am trying to get a drop-down list to display column data containing countries
I'm trying to get a drop down list to display multiple columns from a
I'm trying to get drop down list in Cake for below two finds by
using a drop-down list that's populated from database fields, i need to select an
I'm trying to get my spinner working as the Action Bar Drop Down List

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.