Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Keeping a background image constant

Status
Not open for further replies.

aleci

Programmer
May 22, 2001
40
GB
Hi,
I have a cfm page which calls a background image the in the <body> tag.
Within the template is a query which outputs data depending on a variable set on the page.
I have NEXT and PREVIOUS links on this page to either increase/decrease this variable, and the href of the links is the same page.

Each time the NEXT/PREV link is clicked the page reloads (with the new variable value displaying different information) including the background image.

Problem: since the links take the user to the same page and load exactly the same background image each time they are clicked, this is not a very efficient use of bandwidth.

Does anybody know of a way to keep this image constant (only loading once at the beginning) as a kind of background layer.
Im being pointed towards using DHTML but if there is a solution in CF that would be better.

I was thinking if there was a way that i can, using the next/prev links, to just execute the section of code containing the query, therefore not reloading the whole page???

Sorry if this is not clear
any help MUCH appreciated

 
I wouldn't worry about the bandwith issue. Images are typically cached by the user's browser so the image file is not repeatedly requested from the server.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top