subwindow - refresh parent

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Wolf Grossi

    subwindow - refresh parent

    Greetings,

    how to refresh a parent window after processing forms from the subwindow?

    Currently I have a solution (see below) which works with IE and
    Konqueror, but not with Firefox, so I assume it's not a clean solution.



    ParentWindow:
    ==============
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <body onLoad="self.na me='MainWindow' ;">
    Date: <!--#exec cmd="date" --><hr>
    <a href="t2.html?p ass=1" target='SubWind ow'>Open SubWindow</a>
    </body>
    </html>



    SubWindow
    =========
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <body>
    <form action="t1.html " target="MainWin dow"
    onClick="window .close();" method="post">
    text: <input type="text" value="" name="text">
    <input type="submit" value="OK">
    <input type="hidden" name="pass" value="2">
    </form>
    </body>
    </html>




    Thanks for reading and hints
    Wolf
  • Neredbojias

    #2
    Re: subwindow - refresh parent

    Well bust mah britches and call me cheeky, on Mon, 23 Jul 2007 06:56:18
    GMT Wolf Grossi scribed:
    Greetings,
    >
    how to refresh a parent window after processing forms from the
    subwindow?
    >
    Currently I have a solution (see below) which works with IE and
    Konqueror, but not with Firefox, so I assume it's not a clean
    solution.
    >
    >
    >
    ParentWindow:
    ==============
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <body onLoad="self.na me='MainWindow' ;">
    Date: <!--#exec cmd="date" --><hr>
    <a href="t2.html?p ass=1" target='SubWind ow'>Open SubWindow</a>
    </body>
    </html>
    >
    >
    >
    SubWindow
    =========
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <body>
    <form action="t1.html " target="MainWin dow"
    onClick="window .close();" method="post">
    text: <input type="text" value="" name="text">
    <input type="submit" value="OK">
    <input type="hidden" name="pass" value="2">
    </form>
    </body>
    </html>
    Why don't you have the script file just reload the main page?

    --
    Neredbojias
    Half lies are worth twice as much as whole lies.

    Comment

    • Wolf Grossi

      #3
      Re: subwindow - refresh parent

      Neredbojias wrote:
      Well bust mah britches and call me cheeky, on Mon, 23 Jul 2007 06:56:18
      GMT Wolf Grossi scribed:
      >
      >Greetings,
      >>
      >how to refresh a parent window after processing forms from the
      >subwindow?
      >>
      >Currently I have a solution (see below) which works with IE and
      >Konqueror, but not with Firefox, so I assume it's not a clean
      >solution.
      >>
      >>
      >>
      >ParentWindow :
      >============ ==
      ><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
      ><html>
      ><body onLoad="self.na me='MainWindow' ;">
      >Date: <!--#exec cmd="date" --><hr>
      ><a href="t2.html?p ass=1" target='SubWind ow'>Open SubWindow</a>
      ></body>
      ></html>
      >>
      >>
      >>
      >SubWindow
      >=========
      ><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
      ><html>
      ><body>
      ><form action="t1.html " target="MainWin dow"
      > onClick="window .close();" method="post">
      >text: <input type="text" value="" name="text">
      > <input type="submit" value="OK">
      > <input type="hidden" name="pass" value="2">
      ></form>
      ></body>
      ></html>
      >
      Why don't you have the script file just reload the main page?
      >
      Well, this is an excerpt only.
      The main page contains a form, so when reloading, a popup
      'confirm resend...' appears, which is not desired.

      Wolf

      Comment

      • rf

        #4
        Re: subwindow - refresh parent


        "Wolf Grossi" <ng-wg@magro-soft.comwrote in message
        news:5b27f$46a4 5117$55c71c0e$6 002@news.inode. at...
        Greetings,
        >
        how to refresh a parent window after processing forms from the subwindow?
        Could you please explain why you need that "subwindow" ?

        Remove the popup, problem solved.

        --
        Richard


        Comment

        • Wolf Grossi

          #5
          Re: subwindow - refresh parent

          [snip]
          Could you please explain why you need that "subwindow" ?
          >
          Remove the popup, problem solved.
          >
          C'mon, this does not answer the question.
          If it's not possible from YPOV, say it.
          Wolf

          Comment

          • Bergamot

            #6
            Re: subwindow - refresh parent

            Wolf Grossi wrote:
            >
            how to refresh a parent window after processing forms from the subwindow?
            Why don't go ask in a more appropriate newsgroup?
            comp.lang.javas cript is over there -->

            --
            Berg

            Comment

            • Wolf Grossi

              #7
              Re: subwindow - refresh parent

              Bergamot wrote:
              Wolf Grossi wrote:
              >how to refresh a parent window after processing forms from the subwindow?
              >
              Why don't go ask in a more appropriate newsgroup?
              comp.lang.javas cript is over there -->
              >
              yes of course, tnx.
              Wolf

              Comment

              Working...