Solved

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

Posted on 2014-07-19
2
392 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
Comment Utility
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
Comment Utility
thanks gary, that works
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
How to build a simple, quick and effective accordion menu using just 15 lines of jQuery and 2 css classes
The viewer will learn how to dynamically set the form action using jQuery.
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)

743 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

18 Experts available now in Live!

Get 1:1 Help Now