Re: Page Refresh problem

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Dave Methvin (news0110_at_methvin.com)
Date: 11/16/04

  • Next message: Randy Webb: "Re: Reload Browser"
    Date: Tue, 16 Nov 2004 10:08:55 -0500
    
    

    Are you sure this is your working code?

       obj = eval('window.opener.document' + 'Events');

    that would be the same as

      obj = window.opener.documentEvents;

    Assuming that is a typo, perhaps the problem is a race condition where the
    page is being refreshed before the insert is complete? It would depend on
    what the rest of the code looked like.

    "Marc Walgren" <marcmittenATyahoo.com> wrote in message
    news:O9bETV1yEHA.908@TK2MSFTNGP11.phx.gbl...
    Greetings

    I have an ASP page that uses a JavaScript openwindow call to pop-up a new
    windows. The new window has a field for the use to fill.

    The pop-up uses method=get and targets itself. The page process an insert to
    a SQL base and then does uses the following

    <script>
    function submitpage(url)
    {
        obj = eval('window.opener.document' + 'Events');
        obj.method="post";
        obj.action=url;
        obj.target="";
        obj.submit();
    }
    </script>
    <body onLoad="closeWindow()" onUnload="submitpage('<%=url%>')" >

    The problem I experience is on two machines, the page that starts the pop-up
    page does not refresh it's drop list (of the table that was successfully
    inserted.) after the pop-up page has closed. I have more than 100 machines
    that the code runs properly including my own development equipment. And I
    have not been able to discover a browser setting that seems to "break" this
    function.

    Any help is gratefully accepted.

    Marc


  • Next message: Randy Webb: "Re: Reload Browser"

    Relevant Pages

    • Re: Access is denied with window.open
      ... My Windows Professional XP workstation stopped allowing window.open to ... > Our web application starts up as a pop-up for authentication. ... > We ran spyware tools on both machines and nothing came up. ...
      (microsoft.public.scripting.jscript)
    • Re: IE browser: how to refresh it?
      ... I want to add an entry to the pop-up menu and then "refresh" all windows so ... Steve Easton ... I have found out that normal 'Refresh' is not what I need. ...
      (microsoft.public.vb.general.discussion)
    • Page Refresh problem
      ... I have an ASP page that uses a JavaScript openwindow call to pop-up a new ... windows. ... The problem I experience is on two machines, the page that starts the pop-up ...
      (microsoft.public.scripting.jscript)
    • Page refresh problem
      ... I have an ASP page that uses a JavaScript openwindow call to pop-up a new ... windows. ... The problem I experience is on two machines, the page that starts the pop-up ...
      (microsoft.public.inetserver.asp.general)
    • Re: Sweet Marias web site
      ... many of their links it opens a new browser. ... including IE7 and FF2 on windows as well as Safari and Camino on Mac OS X ... If it does for you on IE7 then either you have your pop-up settings too ...
      (alt.coffee)