You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to track "Ajax" requests in application.js as globally in my Ruby on Rails project but even though I used all the possibilities offered by jQuery and ujs ( ajax:complete, ajax:success, ajax:error, ajaxComplete() and ajaxSuccess ), I could not run it.
I observed that this problem usually occurs after js.erb response/requests.
Hi folks,
I want to track "Ajax" requests in application.js as globally in my Ruby on Rails project but even though I used all the possibilities offered by jQuery and ujs (
ajax:complete
,ajax:success
,ajax:error
,ajaxComplete()
andajaxSuccess
), I could not run it.I observed that this problem usually occurs after
js.erb
response/requests.application.js:
Ruby 2.7.8
Rails 6.0.3
jQuery: 3.5.1
Rails/ujs: 7.0.4
PS: I solved this problem using "Vanilla JS" by handling the "XMLHttpRequest" property.
The text was updated successfully, but these errors were encountered: