window.open in asp

Discussion in 'C#' started by nithin.gujjar, Sep 11, 2008.

  1. #1
    Hi,
    Can anyone tell me what is wrong in the following code:

    Response.Write("<script>");
    Response.Write("window.open("http://111.111.111.111:8000/Pages/ValidateUser.aspx?JVId=PW0000001&SessionId=1000&IsAdmin=Y&RoleName=Self","scrollbars=yes,resizable=yes,toolbar=no,location=n o,directories=no,dependent=no,fullscreen=no,status =yes,left=0,top=0,height=" +screen.height-60 + ",width="+screen.width-5");");
    Response.Write("</script>");

    the IP address is of course a dummy.But its a real url i am working on.I keep getting this error
    Error Type:
    Microsoft JScript compilation (0x800A03EE)
    Expected ')'
     
    nithin.gujjar, Sep 11, 2008 IP
  2. yugolancer

    yugolancer Well-Known Member

    Messages:
    320
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    110
    #2
    Response.Write("<script>window.open('http://111.111.111.111:8000/Pages/ValidateUser.aspx?JVId=PW0000001&SessionId=1000&IsAdmin=Y&RoleName=Self', 'myWindow', 'scrollbars=yes,resizable=yes,toolbar=no,location=n o,directories=no,dependent=no,fullscreen=no,status=yes,left=0,top=0,height=120,width=200');</script>");
    
    Code (markup):
    You were missing the second param which is name of the new window and you were also using misusing the quotes.

    HTH
    Regards :)
     
    yugolancer, Sep 11, 2008 IP
  3. knisarmughal

    knisarmughal Peon

    Messages:
    54
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hello Freinds!

    What's meaning of this script and how can it use. if want use in my asp file than how is possible.................. please give me complete detail

     
    knisarmughal, Sep 12, 2008 IP
  4. yugolancer

    yugolancer Well-Known Member

    Messages:
    320
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    110
    #4
    Well, this is a script that allows you to open a new browser window for the viewer to use. It is also known as POPUP. You can use that for different purposes but mostly it is used for displaying large images or such.
     
    yugolancer, Sep 13, 2008 IP
  5. knisarmughal

    knisarmughal Peon

    Messages:
    54
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    hello yugolancer!


    how can i get this script "Learn by Display" i want to learn because my website already design in asp........
     
    knisarmughal, Sep 13, 2008 IP
  6. yugolancer

    yugolancer Well-Known Member

    Messages:
    320
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    110
    #6
    Learn by Display ???
     
    yugolancer, Sep 14, 2008 IP
  7. knisarmughal

    knisarmughal Peon

    Messages:
    54
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Hello Yugolancer!

    How can i learn online this script. ONLIN USES THIS SCRIPT, because i want to use this script my website where it necessary...........

     
    knisarmughal, Sep 14, 2008 IP