SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Nov 2004
    Location
    Bulgaria
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    how to refresh another browser window ?

    does anybody know how to make a button in a browser window that refreshes another certain opened browser window.

    example: I have browser window and a button OnClick opens a new lottle popup window. After some info input in the popup window i want it to refresh (after button click) the main window with a certain new url.
    i.e.
    at first the main window shows this location:
    index.php?folder=user_files
    after this user click the popup button and imput in a field there "new_folder_name" then click the submit button on the popup window. the popup window should then refresh the main window with a new url like:
    index.php?folder=user_files&new_folder=new_folder_name

    or if anyone can tell me how to make JS with var = prompt that sends the prompt value to the php somehow (this maybe is the easyest sollution) ?

    please help me ! this is an emergency !

    P.S. my gratitude will be beyond imagination !

  2. #2
    SitePoint Evangelist
    Join Date
    Sep 2003
    Location
    San Diego, CA
    Posts
    591
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is it a popup window using the open method? If so, in your popup window, you can use
    Code:
    window.opener.document.location="index.php?folder=user_files&new_folder=new_folder_name";
    In the popup window


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
  •