links inside the table are not working (link to the problem site is provided)

links inside the table are not working (link to the problem site is provided)

jamzjamz Posts: 4Questions: 0Answers: 0
edited October 2013 in General
Hello there,

my sample page is in : http://php_crud_mvc_site.byethost7.com/

the problem is:
the (update | delete) links inside the table are ONLY working in the first page;
when i go to the other pages the (update | delete) links are NOT working at all.

both links are associated to JQuery functions that work fine only in the first part of the pagination.

any advise ??

thanks

Replies

  • allanallan Posts: 63,534Questions: 1Answers: 10,475 Site admin
    See the top FAQ: http://datatables.net/faqs#events . You just need to use a delegated event rather than a static one.

    Allan
  • jamzjamz Posts: 4Questions: 0Answers: 0
    thanks indeed for you reply.

    actually i did not get exactly the problem.
    i attached the click event to links is shown following, but still not working:

    [code]$("a#update_link").on('click',function() {....})[/code]

    and in the table:

    [code]Update[/code]
  • jamzjamz Posts: 4Questions: 0Answers: 0
    nice ... i changed the code to the following and it did work :)

    [code]$("table").delegate("a#update_link","click",function()[/code]

    i will try to understand the difference between the codes.

    thanks a lot ..
This discussion has been closed.