?
Solved

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

Posted on 2014-07-19
2
Medium Priority
?
407 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 58

Accepted Solution

by:
Gary earned 2000 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

PROBLEM: The other day I was working on adding an ajax request to a webpage that already had a dialog box on the page.  The dialog box was using relative positioning to be positioned next to a form field I had on the page.  Everything was working…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
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)
Suggested Courses

764 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