Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Include files when pressing links

 
Trond Kristiansen
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello I have a page with a nav section on the left. I apply a template to the page so that header footer and navigation section is steady. Is it possible to include pages i the main content area based on what links is pressed. Thanks kritro
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65225
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, but not using JSP technology. JSP sends the HTML to the browser. What happens after that is the domain of HTML and Javascript.

This topic has been appropriately moved.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65225
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can either make the content area an iframe and load new "sub-pages" into it as the nav bar is clicked upon, or you can use Ajax to fetch the new content from the server and replace the content area with the newly retrieved content.

In the first scenario you have two separate pages. In the latter, only one page (that can share script -- not a trival advantage).

I find myself using the Ajax approach almost exclusively these days.
[ March 12, 2007: Message edited by: Bear Bibeault ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic