Quantcast

Remote Pagination Plugin - How to call JavaScript after sorting of table column

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Remote Pagination Plugin - How to call JavaScript after sorting of table column

Dean Del Ponte-2
The Remote Pagination plugin is great.  

I'm currently using it to perform Ajax sorting of table columns.

My question is, how can I call a JavaScript function after the page is updated?

So here's what I'd like:
  1. User clicks table column
  2. Ajax call is made to the server
  3. Sort is performed
  4. New sorted model is returned
  5. Div with proper id on page is updated with new sort order
  6. -- Everything up to this point works fine --
  7. Now I would like to make a call to a JavaScript function.  What's the best way to hook into the events and do this?
Thanks!

- Dean Del Ponte
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Remote Pagination Plugin - How to call JavaScript after sorting of table column

Dean Del Ponte-2
Never mind.  Got it.  RTFM.  Sometimes I rely too heavily on my editor's autocomplete.

Use the onSuccess attribute.

:)

- Dean Del Ponte

On Sat, Jun 16, 2012 at 1:00 PM, Dean Del Ponte <[hidden email]> wrote:
The Remote Pagination plugin is great.  

I'm currently using it to perform Ajax sorting of table columns.

My question is, how can I call a JavaScript function after the page is updated?

So here's what I'd like:
  1. User clicks table column
  2. Ajax call is made to the server
  3. Sort is performed
  4. New sorted model is returned
  5. Div with proper id on page is updated with new sort order
  6. -- Everything up to this point works fine --
  7. Now I would like to make a call to a JavaScript function.  What's the best way to hook into the events and do this?
Thanks!

- Dean Del Ponte

Loading...