Solved

jQuery modal page Launch another jQuery Model page

Posted on 2011-09-29
2
268 Views
Last Modified: 2012-05-12
I have the following code which currently is working correctly, i would like to add another icon to the tender.asp page which will close the modal page the user is on, and open another jQuery modal page called customer_account.asp

Doe anyone know if this is possible?

Thanks,
Carl
<!--jQuery Framework-->
	<script src="http://cdn.jquerytools.org/1.2.5/full/jquery.tools.min.js"></script>

<!-- Load jQuery, SimpleModal and Basic JS files -->
<script type='text/javascript' src='/admin/epos/common/jquery/modal/jquery.simplemodal.js'></script>

<script type='text/javascript'>
    jQuery(function ($) {
        var URL;
        // Load dialog on click
        $('#basic-modal .basic').click(function (e) {
            URL = 'tender.asp?QuoteID=<% =intQuoteID %>&rnd=' + new Date().getTime();
            $('<div></div>').load(URL).modal(); // AJAX
            return false;
        });
        $('#.EditLineItem').click(function (e) {
            URL = 'edit_line_item.asp?QuoteID=<% =intQuoteID %>&rnd=' + new Date().getTime();
            $('<div></div>').load(URL).modal(); // AJAX
            return false;
        });
    });
</script> 

                                        <div id='basic-modal'>
                                            <input type='image' src="/admin/epos/images/buttons/btn_tender.png" name='basic' value='Tender' class='basic'/>
                                        </div>

Open in new window

0
Comment
Question by:net-workx
2 Comments
 
LVL 75

Accepted Solution

by:
Michel Plungjan earned 500 total points
ID: 36816699
probably something like

$('<div id="tender"></div>').load(URL).modal(); // AJAX
.
.
.
$('#somebutton').click(function (e) {
     URL = '...';
  $("#tender").close();
  $('<div id="account"></div>').load(URL).modal(); // AJAX
});
0
 

Author Comment

by:net-workx
ID: 36993807
sorry - missed this reply... ill check this out straight away! sorry for the delay!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
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)

863 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

22 Experts available now in Live!

Get 1:1 Help Now