coolguy
coolguy

Reputation: 7954

Jquery treeview and Ajax

Im using Jquery tree view for a tree structure on my website..The tree structure is big..so initially 10 nodes are displayed and on each click of the ('+') more nodes are fetched from the db using ajax it is then wrapped in an anchor tag and displayed under the ul > li..My question is when clicking the anchor tag it will redirect to a new page with the initial 10 nodes only (Obviously yes)..anyway to keep this tree structure as is on the new page ?

Any help techie guys ??

This is what im using http://bassistance.de/jquery-plugins/jquery-plugin-treeview/

Upvotes: 1

Views: 1734

Answers (1)

Nicolas C.
Nicolas C.

Reputation: 335

If you are willing to prevent your tag from changing the location of your page so that your treeview works fine, then you have at least 2 ways of doing this:

  1. Do not use the a tag if you do not want to link to somewhere else ;).
  2. in the href attribute, write: void(0);

Fake hyperlink

There must be much other cleaner ways of doing this, but at least it works fine. I'd be glad to learn the best way though ;)

Upvotes: 1

Related Questions