Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem in displaying the list

 
michell o'brien
Ranch Hand
Posts: 37
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to display a list of items. When I select 1st item the sub-items of it should come above the 2nd item. eg

  • Apparel
  • Shoe Accessiores


  • when I click on Apparels the items coming under it should come above shoe Accessiores. And when i click on Shoe Accessiores all the items of appaerls should be disapeared.
    Right now code what ever I have written is displaying everythin under Shoe Accessiores. And after I select the 2nd item the first items cirles do remain
    I am not sure whether this can be done using struts or javascripts.

     
    Alec Lee
    Ranch Hand
    Posts: 569
    • 0
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Your need Javascript to dynamically modify the subitems' select box whenever onchange event triggered for the 1st Select box. Or, if you insist not to write Javascript, submit a request to fetch a page with the proper subitem select box whenever 1st Select Box onchange event triggered - but writing javascript is much prefered.
     
    I agree. Here's the link: http://aspose.com/file-tools
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic