ASP VBS: Equivalent of "self.close" ?

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default ASP VBS: Equivalent of "self.close" ?

    Hi,

    Simple question: how do I force, in a server-side script, the page to
    close ?

    I have this separate page which I create for special users making some
    data maintenance of the site, and I'd like the page to "kill itself"
    when the user is finished. I can detect that on the server, before the
    user sees the page and can close it, but I don't know how to do it.

    Thanks for help
    Bernard
    bthouin Guest

  2. Similar Questions and Discussions

    1. animation "open" onPress( animation "close" ) go to Frame "myFrame"
      I have searched hi and low for the answer and nothing has helped me as of yet. My Main timeline is sectioned off by keyframes that are 10 frames...
    2. Is there an equivalent for "alter session set NLS_DATE_FORMAT = 'dd-mm-yyyy'" in Informix?
      Hello everybody, does anybody know, if there exists an alternative for "alter session set NLS_DATE_FORMAT = 'dd-mm-yyyy'" in Informix? ...
    3. Equivalent of "friend" or package-level access?
      I have a group of related classes, and I would like them to have certain methods which can only be called by classes within the group. In C++ I...
    4. frontpage "shared borders" equivalent in Dw
      Hi, I'm trying out Dreamweaver MX and I'm adapting to the new environment after using Frontpage. Basically, I wanted to know if there's an...
    5. Debian Equivalent of Group "Wheel"?
      Dear List, Iım a newcomer and tried to find this topic in the archives, but I had trouble using Glimpse to filter out ³wheel mouse². I hope Iım...
  3. #2

    Default Re: ASP VBS: Equivalent of "self.close" ?

    i'm not sure what you mean. if a page doesn't have/generate HTML code,
    it'll never be seen by the user

    bthouin wrote:
    > Hi,
    >
    > Simple question: how do I force, in a server-side script, the page to
    > close ?
    >
    > I have this separate page which I create for special users making some
    > data maintenance of the site, and I'd like the page to "kill itself"
    > when the user is finished. I can detect that on the server, before the
    > user sees the page and can close it, but I don't know how to do it.
    >
    > Thanks for help
    > Bernard
    Manuel Socarras Guest

  4. #3

    Default Re: ASP VBS: Equivalent of "self.close" ?

    Try

    Response.Write "<scr" & "ipt>self.close()</script>"

    --
    Jules
    [url]http://www.charon.co.uk/charoncart[/url]
    Charon Cart 3
    Shopping Cart Extension for Dreamweaver MX/MX 2004



    Julian Roberts Guest

  5. #4

    Default Re: ASP VBS: Equivalent of "self.close" ?

    The page in question is a separate, "temporary" page, created by a main
    page, a croos between a MsgBox and a completely normal HTML page. That
    separate page, like every ASP page, consists of a lot of server-side
    scripts, and of an HTML part (also with some server-side scripts in it).
    When the user submits that page, in some cases the processing done on
    what the user entered tells the script: OK, the user is finished, the
    page should be "killed", i.e. there is no need to show the page to the
    user, because he is done, and he should "return" to the main page (which
    is still open underneath). I'm searching for a neat way for the page to
    "destroy itself" without the user having to click on the top right
    "kill" icon, that's all. And I don't know how to do it. But I think
    Julian has given me the answer. I'll try his suggestion.

    Regards
    Bernard

    Manuel Socarras wrote:
    > i'm not sure what you mean. if a page doesn't have/generate HTML code,
    > it'll never be seen by the user
    >
    > bthouin wrote:
    >
    >> Hi,
    >>
    >> Simple question: how do I force, in a server-side script, the page to
    >> close ?
    >>
    >> I have this separate page which I create for special users making some
    >> data maintenance of the site, and I'd like the page to "kill itself"
    >> when the user is finished. I can detect that on the server, before the
    >> user sees the page and can close it, but I don't know how to do it.
    >>
    >> Thanks for help
    >> Bernard
    bthouin Guest

  6. #5

    Default Re: ASP VBS: Equivalent of "self.close" ?

    Brilliant, Julian, it works ! What's the trick of separating "scr" and
    "ipt" ? I tried not separating, and it did not work anymore. Is it to
    fool the interpreter into thinking it's just a normal text ?

    Bernard

    Julian Roberts wrote:
    > Try
    >
    > Response.Write "<scr" & "ipt>self.close()</script>"
    >
    bthouin Guest

  7. #6

    Default Re: ASP VBS: Equivalent of "self.close" ?

    Yeah, for some reason, you can't have

    Response.Write "<script>"

    --
    Jules
    [url]http://www.charon.co.uk/charoncart[/url]
    Charon Cart 3
    Shopping Cart Extension for Dreamweaver MX/MX 2004



    Julian Roberts Guest

  8. #7

    Default Re: ASP VBS: Equivalent of "self.close" ?

    now i have a doubt, i have a page where i generate a JS array
    dinamically without problems with the <SCRIPT> tag. wich is the
    difference, the close() method?

    <%

    Response.Write "<SCRIPT>price = new Array("
    If ... Then
    ...
    Response.Write arrayValues & ");</SCRIPT>"
    Else
    ...
    Response.Write ");"
    Response.Write "price[0] = " & arrayValues & ";</SCRIPT>"
    End If
    %>



    Julian Roberts wrote:
    > Yeah, for some reason, you can't have
    >
    > Response.Write "<script>"
    >
    Manuel Socarras Guest

  9. #8

    Default Re: ASP VBS: Equivalent of "self.close" ?

    By golly, you're right. It must have been fixed in IIS5 and I never noticed,
    lol.

    --
    Jules
    [url]http://www.charon.co.uk/charoncart[/url]
    Charon Cart 3
    Shopping Cart Extension for Dreamweaver MX/MX 2004


    Julian Roberts Guest

  10. #9

    Default Re: ASP VBS: Equivalent of "self.close" ?

    Julian,

    It works, brilliant !

    But what's the trick with separating "<scr" and "ipt>" ? So that the
    compiler doesn't notice it's a script statement. I tried without
    separation, and it didn't work anymore, that's why I ask.

    Regards
    Bernard

    Julian Roberts wrote:
    > Try
    >
    > Response.Write "<scr" & "ipt>self.close()</script>"
    >
    bthouin Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139