Hi,
I am pretty new to web development but one issue I can't get around is with iframe caching.
I have a php page that submits to itself and the database captures the data inside the FCK editor. When the page reloads the content is still the same.
I hit refresh on the browser manually, the content inside the FCK editor will update. This is to do an update.
I have explored javascripts that try and reload the iframe or change the src of the iframe to another page and switch back again but this doesn't seem to work.
I have also seen in other post on the site the idea of using a php header script to prevent caching. That doesn't seem to work either.
Currently the workaround I have is that when a user updates content inside of the editor and hits submit and page reloads with the Phpself command to capture the data to the database and then inside that same operation I set a metafresh to reload the page again ( so here the user sees two refreshes ). That works but it is a pretty crap way of getting around it.
Advice would appreciated greatly,
Thanks.
I am pretty new to web development but one issue I can't get around is with iframe caching.
I have a php page that submits to itself and the database captures the data inside the FCK editor. When the page reloads the content is still the same.
I hit refresh on the browser manually, the content inside the FCK editor will update. This is to do an update.
I have explored javascripts that try and reload the iframe or change the src of the iframe to another page and switch back again but this doesn't seem to work.
I have also seen in other post on the site the idea of using a php header script to prevent caching. That doesn't seem to work either.
Currently the workaround I have is that when a user updates content inside of the editor and hits submit and page reloads with the Phpself command to capture the data to the database and then inside that same operation I set a metafresh to reload the page again ( so here the user sees two refreshes ). That works but it is a pretty crap way of getting around it.
Advice would appreciated greatly,
Thanks.
Re: iframe caching issues
I've added this to the head of the document with the page reloads
I have systematically gone through all these steps here to no avail http://www.webdeveloper.com/forum/archive/index.php/t-64667.html.
Surely it can't be this hard to get a refreshed iframe happening!