Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes HTML, CSS and JavaScript and the fly likes Refreshing the portion of page Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "Refreshing the portion of page" Watch "Refreshing the portion of page" New topic
Author

Refreshing the portion of page

Mohan Panigrahi
Ranch Hand

Joined: Sep 28, 2001
Posts: 142
Hi,
We have a few elements dynamically generated by jsp in a jsp page. We have one table with expanding tree structure. We are facing a problem that when we want to refresh the expanding tree table, by using history.go(0), the whole page gets refreshed and this takes time as the control goes back to server. We want to refresh only the particular tree structure. Could any one suggest how can i refresh only a part of page, as for example my table with tree structure in the present problem.
Thanks
Randall Twede
Ranch Hand

Joined: Oct 21, 2000
Posts: 4089

this takes time as the control goes back to server

thats what refresh means. thats why netscape and mozilla call it reload. sure the browser will cache stuff, so it doesnt always actually reload, but you are talking about a dynamically generated page anyway. you could reload a portion by using frames. or perhaps these new i-frames which i know nothing about yet.


SCJP
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56183
    
  13

If you are only concerned with modern browsers (read: not Netscape 4.x) you can use iframes to easily embed "sub-pages" within your parent page. You'll need to deal with inter-frame communications issues for any client-side scripting, but it's not all that bad.
hth,
bear


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Refreshing the portion of page
 
Similar Threads
Problem using UI:Tree
use body onload refresh functionality only once
Jsp
Regarding join statement?
iframe refreshing another iframe