eldarion / eldarion-ajax

a library for adding declarative ajax functionality to your website
BSD 3-Clause "New" or "Revised" License
758 stars 153 forks source link

Add ability to replace contents of a container #21

Closed paltman closed 11 years ago

paltman commented 11 years ago

There have been a number of people (#12, #11, and perhaps others) who have suggested this and/or provided their own solutions.

I really want to limit how much is added to this library so as to keep it lean and avoid that bloat that happens to these types of libraries over time with all the tack-ons. However, this is a common enough one that my plan is to add the following additional attributes:

data-replace-inner
data-replace-closest-inner

These will use html() instead of replaceWith()