Frage

How can I change Url for ajax response for children?

E.g. I have

onLazyRead: function (node) {
          $.ajax({
            url: "http://google.com"
            ...
})

and load any children. I want by clicking on children click also load by ajax, but from another action, not from "http://google.com". How can I change it for children nodes?

War es hilfreich?

Lösung

you can add url (or whatever you want) property to your child nodes and use as

onLazyRead: function (node) {
          $.ajax({
            url: node.data.url
            ...
})
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top