-
Refresh Javascript?
I have made the script that on a page, press a link, a little box pops up with an html code in. Once you've written what you want in the textarea which is in the opposite box and press "OK" then close the box down. But can it be that the page itself as you click the link to get to the box, refresh when the box is closed? Via javascript or something?
-
Re: Refresh Javascript?
Hmm... I must admit that I have never seen it before. It is of course possible to refresh it when you click on the link to open your pop, but am not sure that it is possible to make it the first refresher when you close.
-
Re: Refresh Javascript?
Oh it is okay. For just doing something clear, this is how I do
Code:
<a href=\"#\" onclick=\"javascript:popup_window=window.open('edit_comment.php?CommentID=".$comment_row['id']."&EntryID=".$_GET['id']."','','width=400,height=230,top=400,left=400,scrollbars');popup_window.focus()\" class=\"AdminOptions\" style=\"color:#030\">Ændre</a>
It is put together with php all / 's
-
Re: Refresh Javascript?
Hehe... It was now just to external, I doubt that it is possible. It was more so you do not random and looking for ways to do it if others could break the theory.
You have not given to make your function in flash? There are at least addressed.
-
Re: Refresh Javascript?
In your popup window, you can probably just make a onunload?
Something like:
Code:
<script type="text/javascript">
window.onunload=function(e) {
if (opener) opener.location.reload();
}
</script>
Have just tested with a popup window and it works at least in firefox.
-
Re: Refresh Javascript?
I say thank you, it works. :thumbup1:
Page generated in 1,717,390,449.41050 seconds with 10 queries