.submit

.submit

dclark5dclark5 Posts: 2Questions: 0Answers: 0
edited December 2010 in General
My table returns lists of links that trigger form submissions. An example looks like this:

[code]



Academic Search Complete








Database/Subscription title contains academic search complete


[/code]

Notice the link with a title="submit". Using JQuery submit function I tell the link to submit the form.

[code]
$("a[title=submit]").click( function(){
// it submits the form it is contained within
$(this).parents("form").submit();
});
[/code]


This works fine except for anything that is filtered by DataTables. The first page of results works fine, but if the filter is used or if the item is not on the 1st page then the form submission does not work.

Can you help/point me in the correct direction to overcome this issue?

Best,

Dana

Replies

  • dclark5dclark5 Posts: 2Questions: 0Answers: 0
    Issue resolved- sorry to clutter the board with a question that I eventually resolved myself.

    The issue was that I needed to assign the even handler *prior to* assigning a table to be sorted by DataTables- not after.

    Thanks for a great tool and best regards,

    Dana
This discussion has been closed.