View Single Post
  #1 (permalink)  
Old Jan 24th, 2008, 13:16
cosmicbdog cosmicbdog is offline
Up'n'Coming Member
Join Date: May 2007
Location: northern nsw, au
Age: 27
Posts: 76
Thanks: 0
Thanked 0 Times in 0 Posts
[SOLVED] Refresh iFrame once this process has completed...

Hi there,

I have a small problem that a good search through the web hasn't helped me.

Basically, 2 iframes. 1 iframe lists a bunch of locations in a db. You can click one of these items in the list and then in the 2nd iframe, an edit box for that location will appear. That is A-Ok. The user can then save the details and the 2nd iframe refreshes and has the newly saved details.

The problem I have is that I don't know how to make the 1st frame refresh once that process is complete. Similar to the way phpmyadmin works, when you update the tablename in the right frame, it sends a refresh over to the list of tables you have so it displays the saved data. How do I do that?

The best solution I've found is a <meta> refresh every few seconds... but as you can imagine that is wasteful and not as effective as just refreshing the frame once its finished the process.

I did come across the javascript but these didn't work:
Code: Select all
<script type="text/javascript">
frames['lister'].location.href = frames['lister'].location.href;
frames['lister'].reload(true);
</script>
Any help on this would be really helpful.

Thanks anybody in advance.
Reply With Quote