Solved

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

Posted on 2014-07-19
2
401 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Introduction JSON is an acronym for JavaScript Object Notation.  It is a text-string data transport mechanism, capable of representing simple or complex data structures in a consistent and easy-to-read manner.  Similar in concept to XML, but more e…
This article discusses how to create an extensible mechanism for linked drop downs.
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…

856 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