Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 27-04-2009
Member
 
Join Date: Oct 2008
Posts: 37
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?
Reply With Quote
  #2  
Old 27-04-2009
Member
 
Join Date: Apr 2008
Posts: 2,001
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.
Reply With Quote
  #3  
Old 27-04-2009
Member
 
Join Date: Oct 2008
Posts: 37
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\">&AElig;ndre</a>
It is put together with php all / 's
Reply With Quote
  #4  
Old 27-04-2009
Member
 
Join Date: Apr 2008
Posts: 2,001
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.
Reply With Quote
  #5  
Old 27-04-2009
Member
 
Join Date: May 2008
Posts: 2,008
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.
Reply With Quote
  #6  
Old 27-04-2009
Member
 
Join Date: Oct 2008
Posts: 37
Re: Refresh Javascript?

I say thank you, it works.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Refresh Javascript?"
Thread Thread Starter Forum Replies Last Post
XPS Line Refresh? Jensen Ackles Portable Devices 6 09-09-2010 04:42 AM
Refresh with the help of countdown timer Sheravat Software Development 5 08-09-2010 10:01 PM
How to Refresh the TCP/IP in Win 7? Its_Macy Networking & Security 3 26-11-2009 04:38 PM
Windows XP Cannot Refresh Automatically Abbudin Operating Systems 2 11-02-2009 01:08 PM
Refresh Library in WMP 11? GunTher Media Player 2 26-03-2007 08:55 AM


All times are GMT +5.5. The time now is 05:01 AM.