Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jun 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question about using mulitple easy confirm modal boxes on one page

    Hello everyone!

    This is my first post as I'm a newbie to the site and to web developing. I am in the middle of a project where I have a list of links and for each link I want a confirmation box to open. I have the Jquery code working but even though I have specified which file is supposed to open in the <a> link, the first file that is in the list is the only one that opens. Is it possible to have a confirmation box to open for multiple links on a page? It has to be!!! I'm just not getting it! lol. Here is a snippet of my code....

    Code:
    <script src="jquery.min.js" type="text/javascript"></script>
    	<script src="jquery-ui.min.js"></script>
    	<link rel="stylesheet" href="jquery-ui.css" type="text/css" />
    	<script src="jquery.easy-confirm-dialog.js"></script>
    
    <script type="text/javascript">
    	$(function() {
    		
    		$(".customDialog").easyconfirm({dialog: $("#question")});
    		
    					
    	});
    	</script>
    
    <div class="dialog" id="question"><img src="question.png" alt="" /><span>Do you want to continue to this document?</span></div>
    		<li><a href="PreTheoCollegeBooklet.pdf" class="customDialog" target="_blank">Application and Admission Guidelines for College/Pre-Theology Booklet</a></li>

    Even though I change the href for each document, this first one pulls up for every link. Here is the sample page I am working on.

    http://www.pcj.edu/admission_files/t...l?confirm=true

    Also, when the user clicks "confirm" I want the PDF file to open in a new tab, which I can't figure out either. If ANYONE can provide ANY help I would greatly appreciate it!

    Thanks!
    Last edited by VIPStephan; 06-07-2011 at 12:20 AM. Reason: resolved

  • #2
    New to the CF scene
    Join Date
    Jun 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks for the looks. I figured it out. I was being way too wordy for what I wanted done.


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •