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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reload webpage content WITHOUT reloading images?

Status
Not open for further replies.

databasis

Programmer
Feb 18, 2002
23
GB
Is there any possible way to reload only the forms on a page and NOT the images? (so that the images just stay there)

The forms on a page contain continuously updating data but if a user returns to a page they've already been to, the latest database updates will not show until the refresh button is clicked (by the user, or by a button on the page).

HOWEVER, because I have many images on the page, I would like to be able to have the page reloaded automatically but WITHOUT reloading the images as well.

I've searched and searched but not found a solution. Is it a server-side issue and not a javascript one?

Maria
 
most people with proper cache settings don't download the images again from the server.

There is one way that is quite a lot of work in order to do server calls while keeping your main page present.

Using an hidden IFRAME you could do server calls and reformat your page using DHTML. This is quite a lot of work though and not meant for most web projects.

I use a form of this on my web site. Check it out if it fits your needs. The center frame is filled with content from the IFRAME. The whole page is not reloaded for each article or piece of text. You could do the same for your problem but it does bring a new level of complexity and demands a bit more work than conventional web sites. Gary Haran
 
Thanks Gary,

I specifically don't want to use iframes or any frames because I know the form content will be long and I want the whole page to scroll, not just the frame. But thanks for the suggestion. The funny thing is that originally I DID have frames and the content of the forms were ALWAYS updated each time.(But then I started to make it look more fancy and did away with frames!) I wonder did it work fine because a 'target' was defined? I don't have targets anymore and so it just looks for the most recent in the cache. Janey mac I don't know! But I'm going to keep messing around with it until I figure it out.

Thanks for the reply (and your web-site is cool)

Maria
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top