window.open

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

    window.open

    Hi, I need an help please.

    I open a new window with javascript using
    nomefinestra=wi ndow.open(..... );

    Insert then HTML code with
    nomefinestra.do cument.write('. .....');

    Then I close the document
    nomefinestra.do cument.close();

    But I rise this:
    IE fast connection, all right.
    NN, Mozilla, Opera fast connection, all right but the hourglass remains.
    Slow connection (anolgue) window opens but remain empty.

    Can you help me to understan where i make the mistake? Thanks

    The page that calls javascript is:

    And the code is in:



    --
    FastFede on WinMx
    (eliminare NOSPAM dall'indirizzo)
  • Jan Gregor

    #2
    Re: window.open

    I did something similiar ...
    Hourglass probably means that browser waits for another html code -
    guess that browsers simply don't trust </html> as end of page.
    I found that processing of page generated by document.write isn't same
    as loading page from server - for ex. opera 6.03 and mozilla 1.5 didn't
    accept encoding provided in <head> section - so doing things this way
    isn't probably what browsers were made to.
    Slow or fast connection shouldn't matter - you do client-side
    programming. Maybe javascript code is executed when whole page isn't
    loaded - wait for onload event with processing.

    Jan

    In article <Xns945DED23A6C 8CFastFede@213. 140.2.16>, FastFede wrote:[color=blue]
    > Hi, I need an help please.
    >
    > I open a new window with javascript using
    > nomefinestra=wi ndow.open(..... );
    >
    > Insert then HTML code with
    > nomefinestra.do cument.write('. .....');
    >
    > Then I close the document
    > nomefinestra.do cument.close();
    >
    > But I rise this:
    > IE fast connection, all right.
    > NN, Mozilla, Opera fast connection, all right but the hourglass remains.
    > Slow connection (anolgue) window opens but remain empty.
    >
    > Can you help me to understan where i make the mistake? Thanks
    >
    > The page that calls javascript is:
    > http://www.out-cast.org/htm/dipalmaIT.htm
    > And the code is in:
    > http://www.out-cast.org/htm/winopen.js
    >
    >[/color]

    Comment

    Working...