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

Minimal Javascript,,,

 
Manohar Karamballi
Ranch Hand
Posts: 227
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18944
  • 0
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic