Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implementing search in jstree #1

Closed
assafwo opened this issue May 13, 2011 · 4 comments
Closed

implementing search in jstree #1

assafwo opened this issue May 13, 2011 · 4 comments

Comments

@assafwo
Copy link

assafwo commented May 13, 2011

hello,
we implemented search using jstree. it works only in case the f12 is open. you may see this in action:
http://www.mdn.co.il/learning5/?SubjectId=895
you may run this link a few times.
sometimes it opens correctly, sometimes it stops half way, sometimes is only opens the root and nothing else.
please help us.

assaf

@vakata
Copy link
Owner

vakata commented May 13, 2011

Sorry, I cannot view the link ... at all - I get a 404 error. Anyway - the search plugin will be reenabled soon (in branch v.1.0)
Please say when the page is up again.

Kindest regards,
Ivan

@vakata
Copy link
Owner

vakata commented May 13, 2011

Hi again, I see what you mean by search, but I do not get the idea behind it - sorry - please explain further. Why aren't you using the native jstree search?

@assafwo
Copy link
Author

assafwo commented May 14, 2011

the native jstree search searches for a string in the existing tree.
we need to search an integer - subject id.
and the subtree might not be on the local browser yet.
*
my next question is:
i am retrieving from my server a json array representing the path to a
subject that i would like to expand. how would you go about it?*

2011/5/13 vakata <
reply@reply.github.com>

Hi again, I see what you mean by search, but I do not get the idea behind
it - sorry - please explain further. Why aren't you using the native jstree
search?

Reply to this email directly or view it on GitHub:
#1 (comment)

אסף ווידסלבסקי,
www.mdn.co.il

@vakata
Copy link
Owner

vakata commented May 15, 2011

Hi, the search method can work with the server (async). Anyway - I would return the array of IDs to expand ... and then expand them one by one (loading from the server as needed) - btw - this is exactly what the search plugin does - see the code for examples.

@vakata vakata closed this as completed May 16, 2011
vakata pushed a commit that referenced this issue Mar 23, 2017
vakata pushed a commit that referenced this issue Jul 8, 2018
Removed 0 length units in css.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants