I can think of one more way to do this using div as Jeroen suggested.
Ex. When the first time page is loaded , get all the texts from database corresponding to each text item in list. This will typically be in each different div block.
Now using javascipt make visible any default text and invisible all other text. Now when item is selected from the list, make corresponding
text visible and other invisible. This way i think we should be able to
refresh data without sending request to server. I have not tested it so
not so sure.
But this is advisable if we have few items in the list and has small corresponding data. Otherwise it would increase page load time.
I think Eric should be able to give some javascript tricks.
Originally posted by Jeroen Wenting:
you can in fact refresh part of a page by using quite elaborate Javascript code which loads new content into a named html element (usually a div or span).
Can't show the code we use as it's proprietary, it's about a hundred lines of Javascript calling a servlet that forwards to a jsp that returns html with predetermined formatting to the javascript which then inserts it into an html control.