Open Ciki opened 10 years ago
Well, a.ajax
is absolutely default behavior of the library. Just call $.nette.init()
and that should be it. It should work.
but what about when I create new links e.g. using jquery & inject them to DOM. SHould they be automatically ajaxified or is this my responsibility?
I see... then calling $.nette.load()
is now the right way :). But I see the disadvantage... there should be more streamlined way to make elements ajaxified. I will try to prepare solution soon.
OK, thanks
what is the best practice to automatically init all
a.ajax
links even those dynamically loaded?should I write custom init function, sth like
or manually call
$.nette.load()
or sth else?