?
Solved

Javascript Warning

Posted on 2011-10-13
3
Medium Priority
?
182 Views
Last Modified: 2012-06-22
We have an option to select a radio button that will hide one div and show another div if clicked.   The client wants to add a warning that tells the end user that the data won't be saved in the hidden div.    

The code is attached - but what I need to do is if the person clicks cancel, nothing happens and if it if does, the div hides.    I tried moving the message code to the beginning and the cancel worked but the "oK" didn't, the div didn't hide.
showhide('#SL#_#GL#s'); showhide2('#SL#_#GL#d');GP_popupConfirmMsg('If you have values in the Detail section of #GL#, they will not be saved if Express mode is selected on save.');return document.MM_returnValue;

Open in new window

0
Comment
Question by:digitalwise
  • 2
3 Comments
 
LVL 17

Expert Comment

by:sonawanekiran
ID: 36966483
Show your showhide and showhide2 functions
0
 

Accepted Solution

by:
digitalwise earned 0 total points
ID: 36992791
Changed to alert instead of the yes.no option in the confirmmsg option.  
0
 

Author Closing Comment

by:digitalwise
ID: 37016557
It was a simple solution.
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
In this blog, we’ll look at how improvements to Percona XtraDB Cluster improved IST performance.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question