Web Analytics Made Easy -
StatCounter opening a new window from asp - CodingForum

Announcement

Collapse
No announcement yet.

opening a new window from asp

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • opening a new window from asp

    Hi,

    I'd like to redirect from a certain page, to an external page(an external site), with certain parameters. of that window.

    There is nothing to do if using response.redirct,
    but is there another option?

    For example, I would like to open a new window, that will have a cerain dimensions, and that the url of that window is...
    In javascript it is not a problem of course.
    What shall I do in asp???

  • #2
    you use JavaScript....it is just that easy since ASP is server side and you can't do stuff more then redirect.

    just dynamically write out the info you need for the JavaScript window.

    Eric
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]

    Comment


    • #3
      Response.write to a function???

      You mean to use response.write I guess.
      I have a function in javascript that opens that window.
      But how can I use a response.write to get to this function,
      without a trigger.

      Comment


      • #4
        you just call the function and it will load when the page loads but pop up blockers will block it.

        response.write("<script>CallYourFunction();</script>")
        Tech Author [Ajax In Action, JavaScript: Visual Blueprint]

        Comment


        • #5
          Thanks. Not all pop-up blockers block all pop-ups

          Thanks.

          Btw- Not all pop-up blockers block all pop-ups.
          There are good blockers, that only block commercal pop-ups etc., and do not block just every window that is opened.

          But thanks for clarifying that.

          Comment

          Working...
          X