Correction, Shai-Tan I have.

Pennison: Can you post the json?

Kicker: Hey everyone. I’m working on someone else’s code and I can’t for the live of my figure out why they’d does this?

Specken: If $’#box-discount button’.length { }

Schuring: Isn’t this just going to check the length of the button?

Scheets: WebDevB :it’s just checking for variable emptiness

Huegel: The sessions root

Nestel: WebDevB : i.e. if the selector gives any result

Monzingo: The shoots children

Martinson: Coraxx : isn’t that 1 level

Adhami: Coraxx : according to jstree docs: “Any nested nodes are supplied in the same manner in the children property of their parent.”

Bluford: Nxplus: I’m actually reusing the children from level 1 .in level 2 and so on.

Lillich: Well, like in the example “using json” on

Profit: I was thinking you could build a simple complete test structure up to 4 levels, like that. and try it out

Ventris: Nxplus: I don’t now the grammar .my attempt to deduce it has failed .using the examples from the pages you just sent wont help as none of them have more than 2 levels.

Strite: Going from your root example: just add another array of nodes like so

Lonon: Nxplus: just added your correction . now the tree wont expand.

Fitchpatrick: Nxplus: instead of looking at my failed code and interpreation . why not look at what I seek to accomplish .somebody have had to make an example of multilevel tree .where the content is loaded dynamically ?

Cosper: Hmm. i just realized that it might be better to try and get the lazy loading working right away

Guidetti: Like

Prutt: From the tutorial s34n posted

Lounsberry: Nxplus: interesting .how did it get node 3 and 4 ?

Nagano: I am ***uming you have the data somewhere accessible from an api

Schrank: Coraxx : it is defined by the json, parent id etc.

Mcnellis: Nxplus: yup .but can you point to the actual data that says “Child node 3” ?

Eon: Nxplus: — cant find the text or a reference to the text “Child node 3” in that.

Hastin: Coraxx : it’s in the http request, which node, id=2, like

Diliberto: You configure jstree to send the clicked node id with the ajax request

Colaizzi: Nxplus: SEE THAT WAS THE MISSING KEY I WAS LOOKING FOR . in non of the examples I’ve seen does it say that ‘id’ is POST’ed og GET’ed via HTTP !

Bolognese: Nxplus: so the next question naturally becomes . how you I send the “level” of the tree in the request. as to elements/nodes can have the some ID, but be two different types.

Grebel: Coraxx : yes, I think the do***enation is a bit ***ue on but it is mentioned under “Using AJAX”

Zukor: I think all nodes must be unique?

Matar: Hi there, I have a login function that seems to be posting twice, is anyone able to see why

Plath: Nxplus: it is in the do***entation ? .can you tell where what line in the section “using AJAX” it says the id is p***ed via HTTP ?

Majmundar: Nxplus: damn . then that would be a problem :-

Cesari: Like I said it seems ***uely described

Riches: Nxplus: totally agree . when you a writing in the context of javascript, then if nothing else is written its presumed that “p***ed” referers to variable given to javascript function .NOT post’ed via HTTP.

Coopwood: However, the tutorial seem to cover enough

Rozance: I have $’#last_name, #first_name’.blur functione{. How do I know which field the blur has occured on? this.something?

Filipek: Correction, Shai-Tan I have $’#last_name, #first_name’.blur functione{. How do I know which element the blur has occured on? this.something?