File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes What is the simplest way to order this? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply locked New topic
Author

What is the simplest way to order this?

Toni Howlett
Greenhorn

Joined: Jan 18, 2012
Posts: 25
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
Bartender

Joined: Oct 14, 2005
Posts: 13842

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 opinionated walrus
Marshal

Joined: Jan 10, 2002
Posts: 50693

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.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Toni Howlett
Greenhorn

Joined: Jan 18, 2012
Posts: 25
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 opinionated walrus
Marshal

Joined: Jan 10, 2002
Posts: 50693

Being discussed here.
 
 
subject: What is the simplest way to order this?
 
Threads others viewed
js references/garbage collection/other questions
How can I use methods from tabs in a JTabbedPane.
Where to put jquery scripts when using ajax enabled tabs?
Share data between jsp and servlet without using request or session
Coding Standards
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture