Weird, it loads another aspx page

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • sweetpotatop@yahoo.com

    #1

    Weird, it loads another aspx page

    Hi,

    Recently, I came across a very strange issue.

    I was trying to open an aspx page called "test.aspx" by using

    Response.Write( WindowOpen(
    "<script>window .open('" & "test.aspx" & "','" & "test" &
    "','resizable=y es,toolbar=yes, scrollbars=yes, menubar=yes,lef t=0,top=0,'
    + 'width=' + (screen.availWi dth - 20) + ',height=' +
    (screen.availHe ight-110));</script>")

    For some reason, it opened another aspx page. Before the page is even
    loaded, I can see it was trying to load the page that I want, that is
    "test.aspx" as I can see the caption of the page. But then it opens
    the code of the other page when I debuged it. And a totally different
    page is opened.

    Any idea? Please advice. You help would be greatly appreciated.
  • George

    #2
    Re: Weird, it loads another aspx page

    Javascript is executed as browser sees it.
    So if you have
    WindowOpen(test .apx) in first line in your HTML then browser will open the
    test.aspx right then, before it will render the original HTML to you

    George.

    <sweetpotatop@y ahoo.comwrote in message
    news:04faa94f-b7c2-4998-8014-4b488a84a126@26 g2000hsk.google groups.com...
    Hi,
    >
    Recently, I came across a very strange issue.
    >
    I was trying to open an aspx page called "test.aspx" by using
    >
    Response.Write( WindowOpen(
    "<script>window .open('" & "test.aspx" & "','" & "test" &
    "','resizable=y es,toolbar=yes, scrollbars=yes, menubar=yes,lef t=0,top=0,'
    + 'width=' + (screen.availWi dth - 20) + ',height=' +
    (screen.availHe ight-110));</script>")
    >
    For some reason, it opened another aspx page. Before the page is even
    loaded, I can see it was trying to load the page that I want, that is
    "test.aspx" as I can see the caption of the page. But then it opens
    the code of the other page when I debuged it. And a totally different
    page is opened.
    >
    Any idea? Please advice. You help would be greatly appreciated.

    Comment

    Working...