Jump to content

preloading an image ready for displaying at later time


freelance84

Recommended Posts

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
_END;
if(!empty($save_success))
{
	if($save_success == 'yes')
		{
echo <<<_END
<META HTTP-EQUIV=Refresh CONTENT="2; URL=http://www.mysite.net/mct-s.php?name=$name[0]&number=$s1[9]&order=$s_order&s_ID=$s_ID">
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
_END;
		}
}

 

 

The above code changes the header depending on the value of a variable. It works fine.

 

However the NO-CACHE section: Will this prevent any images loaded on the page going into the browsers history? Therefore meaning that any unique images on this page will have to be loaded a fresh each time?

 

If so, is it possible to tell a different page to download the said image into the browsers history but without displaying it? Maybe load it into a hidden div or something?

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.