| View previous topic :: View next topic |
| Author |
Message |
diem Member

Joined: 18 Aug 2006 Posts: 69
|
Posted: Thu Aug 27, 2009 12:36 pm Post subject: ajax jsp treeview |
|
|
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 |
|
 |
sohnee Senior Member

Joined: 17 Jul 2002 Posts: 2077 Location: UK
|
Posted: Fri Aug 28, 2009 2:38 am Post subject: |
|
|
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 |
|
 |
|