Skip to content

Ajax response to target #404

Answered by jiripudil
eydun asked this question in Support
Jul 8, 2024 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

Nette has a whole server-side thing for this, but the gist is that it sends a response like this:

{
  "snippets": {
    "snippet--id": "html content"
  }
}

Naja then finds the #snippet--id element and replaces (or appends/prepends) its content with what's in the payload.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@eydun
Comment options

@jiripudil
Comment options

Answer selected by jiripudil
@eydun
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Support
Labels
None yet
2 participants