-
Can naja make by default all hyperlinks and forms ajaxified - without adding class "ajax" in the "a" tag? Thank you. |
Beta Was this translation helpful? Give feedback.
Answered by
jiripudil
Mar 21, 2021
Replies: 1 comment 3 replies
-
Hello, yes, you can change the selector to an empty string which will cause Naja to match all links and forms. You should do this prior to calling naja.uiHandler.selector = '' Note that Naja only handles requests leading to an allowed origin, others are still handled natively by the browser. |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
trta911
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, yes, you can change the selector to an empty string which will cause Naja to match all links and forms. You should do this prior to calling
naja.initialize()
.Note that Naja only handles requests leading to an allowed origin, others are still handled natively by the browser.