Solved

Nested jquery modal opens, but on second click opens to full page

Posted on 2009-04-07
1
422 Views
Last Modified: 2012-05-06
I have a nested jquery modal. When I click on the link to open the second modal it opens as it should and as long as I click on the link that opens the 2nd modal all is ok. The problem is if I click on a different button on the 1st modal, after I have opened/closed the 2nd modal , the 2nd modal opens to full page. I am using an updatePanel on the 2nd modal. within javascript I am doing a postback to refresh the panel with the updated data.
Do I need to add something else to return control back to the first modal?
newbie to jquery
function btnALBSave_onClick()

 {

  var selLeaType;

  selLeaType = document.getElementById("ddAdjustType").value;

  

  if (selLeaType == "")

  {

  alert("Select a Leave Type");

  }

  else

  {

 //cause a postback for the updatePanel

 var prm = Sys.WebForms.PageRequestManager.getInstance();

 prm._doPostBack('updatePanelAdminLea','');

 

 alert("Save Complete");

 }

 }

Open in new window

0
Comment
Question by:mdcadu
1 Comment
 

Accepted Solution

by:
mdcadu earned 0 total points
ID: 24097773
I solved my own problem. Both modals have the button that updates the updatePanel outside of the update panel. I placed the update button of the 1st modal within the updatePanel now all works well. I can do my search criteria on the first modal go to the 2nd modal, back to the 1st modal search again & I don't get that full page postback. If anyone thinks of another way please let me know.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
exchange 2007, scripts 15 63
Python 2.7 - French characters 6 47
change home folder path 4 40
C# code editing and collaboration 3 47
If you haven’t already, I encourage you to read the first article (http://www.experts-exchange.com/articles/18680/An-Introduction-to-R-Programming-and-R-Studio.html) in my series to gain a basic foundation of R and R Studio.  You will also find the …
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.

759 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now