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 1958344
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T08:18:14+00:00 2026-05-17T08:18:14+00:00

I want to create a form (flash or java/ajax) that allows selection data to

  • 0

I want to create a form (flash or java/ajax) that allows selection data to be pulled from an xml file.

Example:

A ring builder application – the user selects the ring setting in one dropdown and then they select a diamond in another drop down. But the prices of the diamonds changes every day based upon the market, so we would need to easily update that data – hence an xml or excel file.

It would be even better if the data could be linked – such as selecting a princess cut diamond, then the settings that are only compatible with princess cut show up, and then after selecting a setting, only diamonds that are the right size for the setting show.

Thoughts?

thanks!

  • 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-17T08:18:14+00:00Added an answer on May 17, 2026 at 8:18 am

    I think JSON is more appropriate for such a task. Assuming that your data is stored in a database ( rather than XML or Excel file ) , you could use PHP , or any server side language for that matters to return a set of objects, encode them as a JSON string and pass this info to Flash or JS. Decoding the JSON string in Flash ( or Javascript ) will return the set of objects, to be managed on the client side.

    These objects would basically be your data sets that your menu can then query.

    Practically when the user starts your application, you would only need one server call to get all the necessary data which can then be your data sets for that particular session. Your database can of course be updated as often as you need.

    As for the general structure of your data Objects, try and keep your data separated by concerns, I would suggest to avoid tying things together so as to keep your application flexible. You may not come up with the best structure right from the start so were you to make changes in your menu layout, for instance , you could still reuse the majority of your code.

    //A basic example of DataObject that could store the values retrieved from the XML
    public class DataObject
    {
        public var gemTypes:Array = ["Diamond" , "Ruby" , etc...]
        public var cutTypes:Array = ['Princess' , 'Emerald', etc...]
    }
    
    //A couple of classes you could use to structure your menu
    public class AbstractGem
    {
       protected var _cutType:String;
       protected var _settings:Object;
       protected var _sizes:Array;
    
    }
    public class Diamond extends AbstractGem
    {
    }
    
    public class Main
    {
       public function Main()
       {
          //if a menu calls the princess cut diamond, you can use the properties
          //set from the XML to determine what submenus will be called
          var princess:AbstractGem = new Diamond();
          princess.sizes = [1.5 , 1.8 , 2.0 , ......, 8.0];
          princess.cutType = "Princess"
       }
    }
    
    
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i want to create a form that has two submit buttons, but each one
I want to create an input form that will take the input text and
I have data from an Excel spreadsheet that I want to import into a
I want to create custom form validation in joomla using ajax or jQuery. on-blur
I am trying to create an upload form that allows the user to select
I want to create a form using an unordered list ul must have only
I want to create a form which has a text entry box where a
I want to create a form in which if the User presses Enter the
I have a database table named Categories . I want to create a form
I want to create a registration form for dealers in my drupal website.Can any

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.