Results 1 to 6 of 6

Thread: Refresh Javascript?

  1. #1
    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?

  2. #2
    Join Date
    Apr 2008
    Posts
    2,005

    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.

  3. #3
    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

  4. #4
    Join Date
    Apr 2008
    Posts
    2,005

    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.

  5. #5
    Join Date
    May 2008
    Posts
    2,012

    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.

  6. #6
    Join Date
    Oct 2008
    Posts
    37

    Re: Refresh Javascript?

    I say thank you, it works.

Similar Threads

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

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,751,669,278.17883 seconds with 16 queries