Solved

wich jquery library do I need to use????

Posted on 2014-07-19
2
396 Views
Last Modified: 2014-07-19
Hi

I hope you can help me on this one

http://www.grupossc.com/ajax_test.php

In that example I use ajax to call php code from ajax_test.php and  use it in test.php when the I click under "1 edicion"

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
------------------------------------------------------------------------------------------------------------------------------
<script type="text/javascript">
$(function() {
$(".busqueda").click(function(){
var element = $(this);
var del_id = element.attr("id");
var del_name = element.attr("name");

var info = 'rID=' + del_id;

		

                function loadData(page,del_id,del_name){
                    $.ajax
                    ({
                        type: "POST",
                        url: "ajax_result.php",
						data: 'page='+page+'&rID='+del_id+'&tID='+del_name,
                        success: function(msg)
                        {
                            $("#"+del_name+del_id).ajaxComplete(function(event, request, settings)
                            {
                                $("#"+del_name+del_id).html(msg);
                            });
                        }
                    });
                }
                loadData(1,del_id,del_name);  
                $('.container .pagination1 li.active').live('click',function(){
                    var page = $(this).attr('p');
                    loadData(page,del_id,del_name);
                    
                });           

});
});		

        </script>
-------------------------------------
	<div id="I_23114121719" name="gal" class="busqueda fila" style="width: 1010px;"><a href="#"><font class="marcador2">1 edición</font></a></div>
		<ul class="container" id="galI_23114121719" style="display: table; width: 1010px;">
	       <div class="fila" style="text-align:left; width: 1010px;">
	           <div class="data" style="width: 1010px;"></div>	   
           </div><br>	   

	       <div class="fila" style="text-align:right; width: 1010px;">
	   	       <div class="pagination" style="width: 1010px;"></div>
	       </div>
        </ul> 

Open in new window

And It works without a problems.

But now I need to use it in other page that use the lastest version of jquery ui dialog and my code only works with the version 1.4.2 of jquery.min.js.

I would like to know what I need to do to use it the last version of jquery : http://code.jquery.com/jquery-latest.min.js with this code

Best regards
0
Comment
Question by:altariamx2003
2 Comments
 
LVL 58

Accepted Solution

by:
Gary earned 500 total points
ID: 40206777
Change
$('.container .pagination1 li.active').live('click',function(){

to
$(document).on("click",'.container .pagination1 li.active',function(){

There may be other issues but that is the most obvious problem
0
 

Author Comment

by:altariamx2003
ID: 40206937
thanks gary, that works
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

How to build a simple, quick and effective accordion menu using just 15 lines of jQuery and 2 css classes
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
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)
The viewer will learn the basics of jQuery including how to code hide show and toggles. 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…

867 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

17 Experts available now in Live!

Get 1:1 Help Now