Book Section
-----
TY JavaScript 3rd Ed.
Teach Yourself JS 1.5
Teach Yourself DHTML
Teach Yourself JS 1.3
LLWW: JavaScript

General Section
-----
Discussion Forum
Articles / Tips
JavaScript Links
About the Author
Privacy Policy
Contact Me



Other Sites
-----
Website Workshop
JavaScript Weblog

JavaScript Workshop Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
ajax jsp treeview

 
Post new topic   Reply to topic    JSWorkshop Forum Index -> HTML and Web Design
View previous topic :: View next topic  
Author Message
diem
Member
Member


Joined: 18 Aug 2006
Posts: 69

PostPosted: Thu Aug 27, 2009 12:36 pm    Post subject: ajax jsp treeview Reply with quote

Hi,

I'd like to define the navigation for a website using xml - fairly simple arrangement of tree nodes and leaf nodes.

I'd like to display the navigation to users of the website as a treeview using ajax to create a dynamic experience (expanding/collapsing nodes).

Website will be java based so navigation will ultimately be displayed from within jsp.

Never used ajax before...can anyone get me started...?

Advice for a beginner and tips on how to approach the problem in general much appreciated.
Back to top
View user's profile Send private message
sohnee
Senior Member
Senior Member


Joined: 17 Jul 2002
Posts: 2077
Location: UK

PostPosted: Fri Aug 28, 2009 2:38 am    Post subject: Reply with quote

If you're new to AJAX, you might want to consider using a library like jQuery to do the hard work...

This would put your AJAX navigation straight into a div tag with an id of "nav"...

Code:
$("#nav").load("myNav.jsp");


One word of warning. If you want crawlers to index your site, make sure there's some navigation for non JavaScript users too!
_________________
I also work on... Steve Fenton's Blog and contribute to The Enhance PHP Unit Testing Framework
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    JSWorkshop Forum Index -> HTML and Web Design All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
(c) 1997-2002 Starling Technologies and Michael Moncur. Portions (c) Sams Publishing.