Jquery with Ajax not working

Jquery with Ajax not working

xionhackxionhack Posts: 5Questions: 0Answers: 0
edited November 2010 in General
Hello. I'm very new at using javascript and ajax. I'm using datatables and jquery ui Tabs. The problem is that I have 6 tabs, but only the first one would load. I dont understand what is the problem, I imagine is something with ajax that I dont understand. Anybody has any idea? Thank you

Replies

  • xionhackxionhack Posts: 5Questions: 0Answers: 0
    edited November 2010
    My Code looks like this:

    1st File

    [code]

    $(function() {
    $("#tickets_tabs").tabs({

    ajaxOptions: {
    error: function(xhr, status, index, anchor) {
    $(anchor.hash).html("For security reasons, your session has expired. \n\
    Please press F5 to log in again .");
    }
    }


    });
    });


    [/code]

    [code]



    My Open
    My Closed
    My All
    Open
    Closed
    All


    [/code]

    2nd File

    [code]





    $(document).ready(function() {
    $('#example').dataTable( {
    "bProcessing": true,
    "bServerSide": true,
    "bJQueryUI": true,
    "sAjaxSource": "table_server.php?tickets_type=<?php echo $_GET['tickets_type'] ?>"
    } );
    } );






    Ticket #
    Store
    Issuer
    Date
    Status
    Subject
    Priority
    Assigned






    Loading data from server




    Ticket #
    Store
    Issuer
    Date
    Status
    Subject
    Priority
    Assigned




    [/code]
This discussion has been closed.