Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. window.open not functioning

window.open not functioning

Scheduled Pinned Locked Moved ASP.NET
7 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    LovelyHelp
    wrote on last edited by
    #1

    I trying to have a window.open function when i click on my hyperlink. something like the code below (code line 1) hyperlink.Text += "* [" + Title("link_title") + "](" + Title("link_url") + ")

    " But that is still not what I want. I want the type of window open is like the window with the function at below (line 2). hyperlink.Text += "* " + Title("link_title") + "

    " + vbCrLf but when i replace my first line of code with the second line of code, my hyperlink don't function at all. With i use the line at below, so how am i going to show my Title("link_title") hyperlink.Attributes.Add("onclick", "window.open('" + Title("link_url") + "','pic','width=420,height=520')")

    I 1 Reply Last reply
    0
    • L LovelyHelp

      I trying to have a window.open function when i click on my hyperlink. something like the code below (code line 1) hyperlink.Text += "* [" + Title("link_title") + "](" + Title("link_url") + ")

      " But that is still not what I want. I want the type of window open is like the window with the function at below (line 2). hyperlink.Text += "* " + Title("link_title") + "

      " + vbCrLf but when i replace my first line of code with the second line of code, my hyperlink don't function at all. With i use the line at below, so how am i going to show my Title("link_title") hyperlink.Attributes.Add("onclick", "window.open('" + Title("link_url") + "','pic','width=420,height=520')")

      I Offline
      I Offline
      Ista
      wrote on last edited by
      #2

      add "javascript: " to the beginning 1 line of code equals many bugs. So don't write any!!

      L 1 Reply Last reply
      0
      • I Ista

        add "javascript: " to the beginning 1 line of code equals many bugs. So don't write any!!

        L Offline
        L Offline
        LovelyHelp
        wrote on last edited by
        #3

        hyperlink.Text += "* " + Title("link_title") + "

        " + vbCrLf i try this line of code and it showing syntax error on javascript -- modified at 0:06 Tuesday 4th April, 2006

        I 1 Reply Last reply
        0
        • L LovelyHelp

          hyperlink.Text += "* " + Title("link_title") + "

          " + vbCrLf i try this line of code and it showing syntax error on javascript -- modified at 0:06 Tuesday 4th April, 2006

          I Offline
          I Offline
          Ista
          wrote on last edited by
          #4

          well you dont need a vbcrlf can you print out the what it shows when you click View Source from IE? 1 line of code equals many bugs. So don't write any!!

          L 1 Reply Last reply
          0
          • I Ista

            well you dont need a vbcrlf can you print out the what it shows when you click View Source from IE? 1 line of code equals many bugs. So don't write any!!

            L Offline
            L Offline
            LovelyHelp
            wrote on last edited by
            #5

            Yes it showing the link as below. <^a class='lesson' href='javascript:window.open('Tutorial/Lesson1/createLayer.htm','pic','width=420,height=520')'>Create Layer

            • and my file is at inetup/wwwroot/fyp/tutorial/lesson1/createLayer.htm wherby my page is at inetup/wwwtoor/fyp/tutorial.aspx -- modified at 22:12 Friday 21st April, 2006
            I 1 Reply Last reply
            0
            • L LovelyHelp

              Yes it showing the link as below. <^a class='lesson' href='javascript:window.open('Tutorial/Lesson1/createLayer.htm','pic','width=420,height=520')'>Create Layer

              • and my file is at inetup/wwwroot/fyp/tutorial/lesson1/createLayer.htm wherby my page is at inetup/wwwtoor/fyp/tutorial.aspx -- modified at 22:12 Friday 21st April, 2006
              I Offline
              I Offline
              Ista
              wrote on last edited by
              #6

              yeah but can you paste in the entire line. below the text wind are < and > signs that convert them so we can see the text 1 line of code equals many bugs. So don't write any!!

              L 1 Reply Last reply
              0
              • I Ista

                yeah but can you paste in the entire line. below the text wind are < and > signs that convert them so we can see the text 1 line of code equals many bugs. So don't write any!!

                L Offline
                L Offline
                LovelyHelp
                wrote on last edited by
                #7

                <^a class='lesson' href='javascript:window.open('Tutorial/Lesson1/createLayer.htm','pic','width=420,height=520')'>Create Layer

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups