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. problem with frame levels

problem with frame levels

Scheduled Pinned Locked Moved Web Development
helpc++javajavascripthtml
10 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.
  • W Offline
    W Offline
    Wim Engberts
    wrote on last edited by
    #1

    Hi all, I am a newbe to the html/java scene. I am trying to build a website that shows paintings. I found a nice java popup mechanism called "lightbox" This obscures the screen and displays the chosen image over it. Hoever, my site uses frames and when I do that, the display is only relative to the current frame and not the entire screen. In the FAQ list for lightbox, there is someone with a solution to that, however I do not understand what he is doing there. As I see it, I should either het the javascript to run under the main window rather than in the current frame, or I need to be able to pass a reference to the top window to the java script. Could anyone help me in how to achieve something like that (as I said: I am an absolute novice in this area, but I do have a vast experience in programming in general and C/C++ specifically) Thanks in advance, William

    B 1 Reply Last reply
    0
    • W Wim Engberts

      Hi all, I am a newbe to the html/java scene. I am trying to build a website that shows paintings. I found a nice java popup mechanism called "lightbox" This obscures the screen and displays the chosen image over it. Hoever, my site uses frames and when I do that, the display is only relative to the current frame and not the entire screen. In the FAQ list for lightbox, there is someone with a solution to that, however I do not understand what he is doing there. As I see it, I should either het the javascript to run under the main window rather than in the current frame, or I need to be able to pass a reference to the top window to the java script. Could anyone help me in how to achieve something like that (as I said: I am an absolute novice in this area, but I do have a vast experience in programming in general and C/C++ specifically) Thanks in advance, William

      B Offline
      B Offline
      Bradml
      wrote on last edited by
      #2

      Mind giving a link to the solution given by the other person?


      Brad Australian By contacting your lawyer you negate the right to sue me.

      W 1 Reply Last reply
      0
      • B Bradml

        Mind giving a link to the solution given by the other person?


        Brad Australian By contacting your lawyer you negate the right to sue me.

        W Offline
        W Offline
        Wim Engberts
        wrote on last edited by
        #3

        Hi Brad, I do not mind at all of course. The other guy's solution can be found at: http://www.huddletogether.com/2006/01/10/lightbox-js-update/#comment-1638 Regards, William PS: I just checked this link: it does not directly point to the relevant comment; the comment I am referring to is comment #220 by Sean K. William

        B 1 Reply Last reply
        0
        • W Wim Engberts

          Hi Brad, I do not mind at all of course. The other guy's solution can be found at: http://www.huddletogether.com/2006/01/10/lightbox-js-update/#comment-1638 Regards, William PS: I just checked this link: it does not directly point to the relevant comment; the comment I am referring to is comment #220 by Sean K. William

          B Offline
          B Offline
          Bradml
          wrote on last edited by
          #4

          Thanks, could you give me an example of your implementation of the script?


          Brad Australian By contacting your lawyer you negate the right to sue me.

          W 2 Replies Last reply
          0
          • B Bradml

            Thanks, could you give me an example of your implementation of the script?


            Brad Australian By contacting your lawyer you negate the right to sue me.

            W Offline
            W Offline
            Wim Engberts
            wrote on last edited by
            #5

            Brad, Of course: Aquarel [![](thumbnails/Schilderij I crop.jpg)](images/Schilderij I crop.jpg "Blauw<BR>Aquarel 2003 ca. 125x85") [![](thumbnails/Schilderij II crop.jpg)](images/Schilderij II crop.jpg "Rood<br>aquarel 2003") [![](thumbnails/Schilderij III crop.jpg)](images/Schilderij III crop.jpg "Engel<br>aquarel 2005<br>met 24kt bladgoud") In itself, this works just fine. The only problem is that this html file is within a frame (which is within another frame within yet another frame) and that the function of "lightbox" is only within the current frame, where I would like it work within the entire window and to center the image on the entire window. Regards, William

            B 1 Reply Last reply
            0
            • B Bradml

              Thanks, could you give me an example of your implementation of the script?


              Brad Australian By contacting your lawyer you negate the right to sue me.

              W Offline
              W Offline
              Wim Engberts
              wrote on last edited by
              #6

              Brad, To be complete, I also give you the main "index.htm", from which the html that I just posted is called: Margo Engberts The call to "Aquarel/index.htm (which I posted earlier) is done when the menu-item "Aquarel" is selected from menu.htm: Margo Engberts

              • Home
              • Biografie
              • Olieverf
              • Aquarellen
              • Links
              • Kontakt

              Hope this will help. Regards, William

              1 Reply Last reply
              0
              • W Wim Engberts

                Brad, Of course: Aquarel [![](thumbnails/Schilderij I crop.jpg)](images/Schilderij I crop.jpg "Blauw<BR>Aquarel 2003 ca. 125x85") [![](thumbnails/Schilderij II crop.jpg)](images/Schilderij II crop.jpg "Rood<br>aquarel 2003") [![](thumbnails/Schilderij III crop.jpg)](images/Schilderij III crop.jpg "Engel<br>aquarel 2005<br>met 24kt bladgoud") In itself, this works just fine. The only problem is that this html file is within a frame (which is within another frame within yet another frame) and that the function of "lightbox" is only within the current frame, where I would like it work within the entire window and to center the image on the entire window. Regards, William

                B Offline
                B Offline
                Bradml
                wrote on last edited by
                #7

                I am a little slow tonight. From what I can see from that script (and im sure I missed something) is that you have a collection of flames that make up your page. You then have images that, when clicked, will show the full image. Is this correct. Please note that I'm not familiar with the Java product you said you were using earlier.


                Brad Australian By contacting your lawyer you negate the right to sue me.

                W 1 Reply Last reply
                0
                • B Bradml

                  I am a little slow tonight. From what I can see from that script (and im sure I missed something) is that you have a collection of flames that make up your page. You then have images that, when clicked, will show the full image. Is this correct. Please note that I'm not familiar with the Java product you said you were using earlier.


                  Brad Australian By contacting your lawyer you negate the right to sue me.

                  W Offline
                  W Offline
                  Wim Engberts
                  wrote on last edited by
                  #8

                  Brad, You are absolutely right. What I am trying to do is to have page as follows: +---------------------------------------------------------------------+ | header frame | +---------+------------+---------------------------------+------------+ | | Menu frame | Main image and info frame | | | blank | | | blank | | frame | | | frame | | | | | | +---------+------------+---------------------------------+------------+ | footer frame (just to leave some space at the bottom) | +---------------------------------------------------------------------+ All these frames remain the same, but for the main image and info frame. Based on selections from the menu buttons in the menu frame, I select different html pages in that frame. One of those is a page with a number of thumbnails on which the user may click. When he does that, I would like to show the full image pertaining to that thumbnail, using this lightbox mechanism. And again: it does work, but it only works in this main image frame whereas I would like it to work on the full window. regards, William

                  B 1 Reply Last reply
                  0
                  • W Wim Engberts

                    Brad, You are absolutely right. What I am trying to do is to have page as follows: +---------------------------------------------------------------------+ | header frame | +---------+------------+---------------------------------+------------+ | | Menu frame | Main image and info frame | | | blank | | | blank | | frame | | | frame | | | | | | +---------+------------+---------------------------------+------------+ | footer frame (just to leave some space at the bottom) | +---------------------------------------------------------------------+ All these frames remain the same, but for the main image and info frame. Based on selections from the menu buttons in the menu frame, I select different html pages in that frame. One of those is a page with a number of thumbnails on which the user may click. When he does that, I would like to show the full image pertaining to that thumbnail, using this lightbox mechanism. And again: it does work, but it only works in this main image frame whereas I would like it to work on the full window. regards, William

                    B Offline
                    B Offline
                    Bradml
                    wrote on last edited by
                    #9

                    hmm.. Well I do not have an extensive knowledge of how lightbox works, are you able to specify a target for the image? Can you please (if possible) give me a link to your current project so I can get a better feel for the implementation.


                    Brad Australian By contacting your lawyer you negate the right to sue me.

                    W 1 Reply Last reply
                    0
                    • B Bradml

                      hmm.. Well I do not have an extensive knowledge of how lightbox works, are you able to specify a target for the image? Can you please (if possible) give me a link to your current project so I can get a better feel for the implementation.


                      Brad Australian By contacting your lawyer you negate the right to sue me.

                      W Offline
                      W Offline
                      Wim Engberts
                      wrote on last edited by
                      #10

                      Brad, Thanks for your reply. I unfortunately do not yet have anything of this all on-line, it still resides on my d: disk (which I cannot open to the outside world) I would be happy to send you a zipfile with the complete content 357 kb). If you would like me to do that, then please send me an email to: wim.engberts@centric.nl to which I can then reply with this zipfile. Thanks in advance William

                      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