7

I wrote a custom link in my page which created by views module, I want to click it to do something, then the page will refresh by ajax, how do I implement this?

I am sorry I didn't express myself clearly, I use Drupal 7, and the Views module to custom my own page.

Olivia Wang
  • 613
  • 6
  • 23

2 Answers2

1

You can use this module https://www.drupal.org/project/views_refresh or just use the code below in your JS to refresh the view.

$('.view-dom-id-403402eee35f68cd32fe87b45702dc63').triggerHandler('RefreshView');
heshanlk
  • 333
  • 3
  • 9
0

Attach an event to the link, and when that is fired, execute an AJAX request.

mustafa.0x
  • 1,476
  • 2
  • 17
  • 30