Pass the results of a SearchBuilder query to a PHP script

Pass the results of a SearchBuilder query to a PHP script

MoebiusMoebius Posts: 12Questions: 3Answers: 1

Not meaning to cross post, I just realized this should be under SearchBuilder instead of Free Support and didn't know how to change my previous post.

Link to test case:

http://live.datatables.net/suyipupu/1/edit

In the test case I was to create a modal form that uses SearchBuilder. In my application I was able to achieve the same thing and it displays a PHP table. That data is proprietary, so I can't display it, but the test data works fine.

When the search is complete and the submit button is clicked, I'd like to pass the first value of the table ("Name" in the test case data), to another php script via Ajax.

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,177Questions: 1Answers: 2,590
    Answer ✓

    The first entry in the table would be $('tbody tr:eq(0) td:eq(0)').text(). I'm not familiar with the BS modals, but I'd imagine you could either post if on click event for the button, or a modal closing event,

    Colin

Sign In or Register to comment.