Bookmark Topic Watch Topic
  • New Topic

What is the simplest way to order this?  RSS feed

 
Toni Howlett
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Report post to moderator
I'm using a properties file like one giant cookie and I have these 'tabs' on my page that are displayed or hidden (then expanded or collapsed) all based on info from the properties file. BUT I also need the user to be able to reorder them.

If I can get a number assciated with each, I was planning to do a loop through them and include the 'tab' (each tab is its own page. EDIT: the tab is a div tag that, when clicked, hides or shows content in another divtag right under it by chaning "display:block/none"). I'm not sure how I can get a number assciated with each page without including a box where the user can type in the position (which could lead to errors like if they put two #3's or something) and it would be kinda awkward to do on a mobile device (and this is what is it ment to be on)

Sorry if i rambled on a bit, so in short, what would be the best way of ordering the 'tabs' with JSP?

(the number of 'tabs' may change at any point)

Thanks
 
Paul Clapham
Sheriff
Posts: 22828
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Report post to moderator
What's a "tab"? We need some context here -- is it a Swing JTabbedPane or some HTML/Javascript tabbed pane or what?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66306
152
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Is this a JSP question? I'm not sure what the question is at all, but it sounds like it's most likely an HTML question.

I've moved it to the HTML forum for now until it becomes much more clear what is being asked.
 
Toni Howlett
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Report post to moderator
Guess I could have explained more about the tabs... sorry!

Well the 'tabs' (as i call them) are div's that go across my page, and when clicked they either show or hide the content contained within them (or should I say make the div tag they are being held in "display:none" or "display:block")
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66306
152
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Being discussed here.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!