• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
JQuery CRUD stuck in JQuery Pagination

#1
[eluser]Krasser[/eluser]
Im try programming in JQuery Pagination and im adding CRUD function with JQuery too. But im no idea, Firebug display "$ is no defined", can every buddy help??

#2
[eluser]InsiteFX[/eluser]
You will need to show your code if you want help!

#3
[eluser]Krasser[/eluser]
I'm using Tohin's Jquery Pagination: http://tohin.wordpress.com/2008/10/07/co...guideline/

Almost PHP code is follow their guildline.

and JS in HTML side:

Code:
[removed]
    $(document).ready(function(){
        $(".delete_id").click(function(){
            alert(this.attr("id").val());
            $.ajax({
                type: 'POST',
                url: 'http://localhost/jpage/index.php/welcome/ajax_page/',
                data: 'delete_customer_id=' + this.attr("id").val(),
                success:
                    function(data){ $('#content').html(data); return false; }
            });
        });
    });
[removed]
[removed]
    function serialize_form() { return $("#myform").serialize(); }
[removed]

The firebug is point error to:
Code:
$(document).ready(function(){

and said "$ is not defined"

#4
[eluser]aquary[/eluser]
Did you put Jquery in you HTML ?

#5
[eluser]Krasser[/eluser]
[quote author="aquary" date="1329714297"]Did you put Jquery in you HTML ?[/quote]

Ya, im have double check in FireBuy, Jquery.min.js is loaded and store in cache too.

#6
[eluser]Krasser[/eluser]
Thank you for your all helping. I know the reason. Im adding "defer" element in JQuery include script.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.