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
//jquery function $(document).ready(function(){ var iframe = document.getElementById("FCKeditor1___Frame"); var url=iframe.src; var insert=Math.floor(Math.random()*110); var replaced = 'Random='+insert+'&Toolbar'; url = url.replace('Toolbar',replaced); iframe.src=url; });http://www.webdeveloper.com/forum/archive/index.php/t-64667.html