Answers.Body: <p>Your first line of debugging is probably to look at your &quot;console&quot; for a javascript error. An ajax request is normally intercepted by some javascript before it gets handled as a POST - in your case, it appears it's not getting intercepted. You may also see a difference if you turn off javascript aggregation. Different browsers handle javascript errors in different ways as well ...</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-12-03T03:46:13.350Z
Answers.Text: Thank you for the feedback. I will have to search more on that.
Answers.UserDisplayName: david
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-12-02T15:14:45.937Z
Answers.LastActivityDate: 2024-12-02T15:14:45.937Z
Answers.UserDisplayName: Alan Dixon
Body: <p>I have a page that have multiple sections of activities in datatables that can edit/add activities as popup. When submitting, it refreshes the whole page and loads everything again. I just need a specific section to refresh or let me handle the refresh on success. I tried using some events here, but could not prevent it. It seems refreshParent comes first before others.</p>
  <p><a href="https://docs.civicrm.org/dev/en/latest/framework/ajax/" rel="nofollow noreferrer">CiviCRM AJAX</a></p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-11-28T14:54:46.923Z
Comments.Text: Can you say more about the page? Is it a SearchKit display, or actually the old jQuery Datatables?
Comments.UserDisplayName: Coleman
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-12-03T03:36:14.100Z
Comments.Text: @Coleman Thank for the feedback. It is the jQuery DataTables using ajax to populate the rows.
Comments.UserDisplayName: david
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-12-03T03:44:44.680Z
Comments.Text: The button had classes: "action-item crm-hover-button". The page is basically the Case Page.
Comments.UserDisplayName: david
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-12-03T13:27:51.353Z
Comments.Text: Still trying to understand the exact context. Is this like your personal copy of the CiviCase code that you've put into an extension? Or is it literally CiviCase?
Comments.UserDisplayName: Coleman
Tags: <activities><forms>
Title: Can I disable refreshParent when I submit a popup form?
ThreadText: # Can I disable refreshParent when I submit a popup form?
  
  (Asked by: username_0 on 2024-11-28)
  
  I have a page that have multiple sections of activities in datatables that can edit/add activities as popup. When submitting, it refreshes the whole page and loads everything again. I just need a specific section to refresh or let me handle the refresh on success. I tried using some events here, but could not prevent it. It seems refreshParent comes first before others.
  
  [CiviCRM AJAX](https://docs.civicrm.org/dev/en/latest/framework/ajax/)
  
  **Tags:** activities, forms
  
  > **Comments:**
  > **username_1**: Can you say more about the page? Is it a SearchKit display, or actually the old jQuery Datatables?  
  > **username_0**: @username_1 Thank for the feedback. It is the jQuery DataTables using ajax to populate the rows.  
  > **username_0**: The button had classes: "action-item crm-hover-button". The page is basically the Case Page.  
  > **username_1**: Still trying to understand the exact context. Is this like your personal copy of the CiviCase code that you've put into an extension? Or is it literally CiviCase?  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2024-12-02. Score: 1
  
  Your first line of debugging is probably to look at your "console" for a javascript error. An ajax request is normally intercepted by some javascript before it gets handled as a POST - in your case, it appears it's not getting intercepted. You may also see a difference if you turn off javascript aggregation. Different browsers handle javascript errors in different ways as well ...
  
  > **Comments:**
  > **username_0**: Thank you for the feedback. I will have to search more on that.  
  
  ---
  
  