Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
    Bookmark Topic Watch Topic
  • New Topic

Design help

 
Shreya Menon
Ranch Hand
Posts: 285
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 12
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 12
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Pie
Posts: 64631
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
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.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64631
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Report post to moderator
Closing thread: please continue posting here:
http://www.coderanch.com/t/114495/HTML-JavaScript/Help
Eric
 
    Bookmark Topic Watch Topic
  • New Topic