aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Minimal Javascript,,, Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Minimal Javascript,,," Watch "Minimal Javascript,,," New topic
Author

Minimal Javascript,,,

Manohar Karamballi
Ranch Hand

Joined: Jul 17, 2001
Posts: 227
Hai All!
I am designing a HTML page that Contains two tabs. While displaying page i have two sets of data(one for each Tab..).
This HTML page is part of an application that has more server side processing and data fot this tabs are generated from Server. But more often than not these data will remain same.
So I am getting all data required at once from server. Now there are cases(Very rarely Happening,,) There is possibility that user might change content of the Tabs and can come back to new page. At that time We have to show a new page.
Now my Question are as follows.
1) Can we implement Tabs without using Javascript?
2) Is CSS helpful in this Context?
3) what are browser depedent issues in that?
4) Do we need to store the Data in session always? (Note that Tab Data are rarely changed and we need to show that Changed Data. If we go for storing Data in session that it results in considerable overhead as user rarely changes that data. If not, How can we handle the case refreshing the page with new Data?)
Any Input and Suggestions are appreciated.
TIA
Rgds
Manohar
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
1) Not that I know of. There is no HTML Tab Control. Why do you need to do it without Javascript? Can't you get your server-side app to write some client-side code to your HTTP response?
2) Yes, it will be.
3) I would handle this using an IFRAME and image buttons. Basically, you just swap the contents of an IFRAME when the user clicks on one of your "tabs" (image buttons) and then you change the images to show which one is selected. ANYHOO, none, that I know of. I think IFRAME is part of the standard.
4) I would not store data for a form in the session. Perhaps you could use a hidden frame? XML could be helpful here, too.
Hope that approached being helpful...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Minimal Javascript,,,
 
Similar Threads
js references/garbage collection/other questions
Session Data Vs Session Overhead
How to dynamically load the tab content?
tabs in JSP and passing values between tabs
How to make browser remember in-page navigation history?