Solved

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

Posted on 2009-04-07
1
431 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Magento: different theme for Pc and for mobile devices 4 113
Website not secure message 4 89
Exchange Server 2013 Message Tracking log Powershell ? 11 107
Problem to copy file 14 81
What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
It’s a strangely common occurrence that when you send someone their login details for a system, they can’t get in. This article will help you understand why it happens, and what you can do about it.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

738 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