Solved

jQuery modal page Launch another jQuery Model page

Posted on 2011-09-29
2
267 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

746 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

13 Experts available now in Live!

Get 1:1 Help Now