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. General Programming
  3. Visual Basic
  4. Pop ups

Pop ups

Scheduled Pinned Locked Moved Visual Basic
questionjavascripthelp
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.
  • I Offline
    I Offline
    ii_noname_ii
    wrote on last edited by
    #1

    Hello, working on an app for a buisness... Now that it's almost done, I'm going threw it again, fixing "details"... One of those "details" is causing me major problems: pop ups. I need pop up windows, which I made with the classic JavaScript window.open, because it's easy to specify all sorts of properties, like no toolbars, sizing... How can I make those pop ups WITHOUT JavaScript: it gets blocked by recent OS's like xp sp2... So, pop up windows without javascript, that won't ever get blocked, and where I can specify similar properties as I could with the evil javascript... (and it's hard to google a solution to this, because 99% of results are javascripts) Pleeeease help? :~

    G 1 Reply Last reply
    0
    • I ii_noname_ii

      Hello, working on an app for a buisness... Now that it's almost done, I'm going threw it again, fixing "details"... One of those "details" is causing me major problems: pop ups. I need pop up windows, which I made with the classic JavaScript window.open, because it's easy to specify all sorts of properties, like no toolbars, sizing... How can I make those pop ups WITHOUT JavaScript: it gets blocked by recent OS's like xp sp2... So, pop up windows without javascript, that won't ever get blocked, and where I can specify similar properties as I could with the evil javascript... (and it's hard to google a solution to this, because 99% of results are javascripts) Pleeeease help? :~

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      You simply use target="_blank" on a link. The page opens in a new window, but you can't specify any properties for how the window should look.

      --- b { font-weight: normal; }

      I 1 Reply Last reply
      0
      • G Guffa

        You simply use target="_blank" on a link. The page opens in a new window, but you can't specify any properties for how the window should look.

        --- b { font-weight: normal; }

        I Offline
        I Offline
        ii_noname_ii
        wrote on last edited by
        #3

        It's not just links, it's buttons, images, often inside datagrids... And, without javascript? To size window, remove menu, etc..? :confused:

        I G 2 Replies Last reply
        0
        • I ii_noname_ii

          It's not just links, it's buttons, images, often inside datagrids... And, without javascript? To size window, remove menu, etc..? :confused:

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

          Help pls!! Still stuck at this... It's IMPOSSIBLE to make a popup without javascript?!?!?!

          1 Reply Last reply
          0
          • I ii_noname_ii

            It's not just links, it's buttons, images, often inside datagrids... And, without javascript? To size window, remove menu, etc..? :confused:

            G Offline
            G Offline
            Guffa
            wrote on last edited by
            #5

            ii_noname_ii wrote:

            It's not just links, it's buttons, images, often inside datagrids...

            No, it's not. If you don't want to use Javascript, there are only one way of opening a new window, and there are only two elements that can do it. You use the target property, either on a link or on a form. When you use the link or post the form, the new page will open where you specified with the target property.

            ii_noname_ii wrote:

            And, without javascript? To size window, remove menu, etc..?

            As I said, you can't.

            --- b { font-weight: normal; }

            I 1 Reply Last reply
            0
            • G Guffa

              ii_noname_ii wrote:

              It's not just links, it's buttons, images, often inside datagrids...

              No, it's not. If you don't want to use Javascript, there are only one way of opening a new window, and there are only two elements that can do it. You use the target property, either on a link or on a form. When you use the link or post the form, the new page will open where you specified with the target property.

              ii_noname_ii wrote:

              And, without javascript? To size window, remove menu, etc..?

              As I said, you can't.

              --- b { font-weight: normal; }

              I Offline
              I Offline
              ii_noname_ii
              wrote on last edited by
              #6

              The client wants a popup window correctly sized... He also wants it to work for everyone, which is not the case atm with my javascript window.opens... So, am I gonna be forced to tell him "I can't do that" for the first time in my life.. :((:((:(( In any case, this really seems like a missing functionality in vb.net ... Why haven't "they" ever thought of getting rid of the javascript, so we can code a window opener without the javascript (I have come to HATE javascript with all my heart and feel sick every time I have to use it...) What about those nasty crack/serial, or porn pages that manage to open popups in your face, despite your popup blocker? PM or mail me a solution if anyone has one that should not be spread to evil minds... I'll do anything (lol), I really can't stand the thought of having to tell the client "not possible"..

              G 1 Reply Last reply
              0
              • I ii_noname_ii

                The client wants a popup window correctly sized... He also wants it to work for everyone, which is not the case atm with my javascript window.opens... So, am I gonna be forced to tell him "I can't do that" for the first time in my life.. :((:((:(( In any case, this really seems like a missing functionality in vb.net ... Why haven't "they" ever thought of getting rid of the javascript, so we can code a window opener without the javascript (I have come to HATE javascript with all my heart and feel sick every time I have to use it...) What about those nasty crack/serial, or porn pages that manage to open popups in your face, despite your popup blocker? PM or mail me a solution if anyone has one that should not be spread to evil minds... I'll do anything (lol), I really can't stand the thought of having to tell the client "not possible"..

                G Offline
                G Offline
                Guffa
                wrote on last edited by
                #7

                ii_noname_ii wrote:

                The client wants a popup window correctly sized... He also wants it to work for everyone, which is not the case atm with my javascript window.opens...

                That is not possible. To open a window at a specific size you need to use Javascript, but as you can disable Javascript or certain Javascript functions in the browser (or using a popup blocker), that can not work for everyone.

                ii_noname_ii wrote:

                In any case, this really seems like a missing functionality in vb.net ...

                It has nothing to do with VB.NET what so ever, as you are opening the popup in the browser.

                ii_noname_ii wrote:

                What about those nasty crack/serial, or porn pages that manage to open popups in your face, despite your popup blocker?

                Popup blockers may have settings for what popups it allows. If a site manages to follow these rules, it can use a popup. There is also the possibility that the popup is not a popup at all, but just a part of the page that looks like a popup.

                --- b { font-weight: normal; }

                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