aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Design help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply locked New topic
Author

Design help

Shreya Menon
Ranch Hand

Joined: Jul 31, 2001
Posts: 285
All,
All suggestions welcome for designing this:
1. Have a web page with tabs [4 tabs] in the body and 2 menu links on the left side. The requirement is if I modify anything in my page and click on the tabs, I should prompt the user to do a form submit before proceeding. But on the same time, if I am clicking on the menu links I should do a form auto submit.
How can I accomplish this ?
Thanks
ChandraMouli Vidiyala
Greenhorn

Joined: Dec 19, 2002
Posts: 12
1) Define a hidden variable in the current page.
2) Assign different values, when the user modifies anything on the page then clicks on the menu link,
and when without modifying anything clicks on the tabs.

All,
All suggestions welcome for designing this:
1. Have a web page with tabs [4 tabs] in the body and 2 menu links on the left side. The requirement is if I modify anything in my page and click on the tabs, I should prompt the user to do a form submit before proceeding. But on the same time, if I am clicking on the menu links I should do a form auto submit.
How can I accomplish this ?
Thanks
ChandraMouli Vidiyala
Greenhorn

Joined: Dec 19, 2002
Posts: 12
Sorry Shreya,
accidentally clicked reply button before completeting reply.
Follow these steps.
1) Define a hidden variable in the current page.
2) Assign different values, when the user modifies anything on the page then clicks on the menu link,
and when without modifying anything clicks on the tabs (use onChange event on the form elements).
3) Check the value of the hidden varibale, when the users clicks on menu link or clicks on tab and accordingly prompt the user or submit the form automatically.
Let me know, if you have any questions.
-Mouli.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61199
    
  66

Since there is no JSP dimension to this question, and the solution is purely client-side, I'm moving this off to the HTML/Javascript forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61199
    
  66

Eric, please close this topic. I moved it here without realizing that it is a dupe of an laready posted question.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Closing thread: please continue posting here:
http://www.coderanch.com/t/114495/HTML-JavaScript/Help
Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Design help