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.