problem with frame levels
-
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
-
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
-
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.
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
-
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
-
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.
Brad, Of course: Aquarel
[](images/Schilderij I crop.jpg "Blauw<BR>Aquarel 2003 ca. 125x85") [](images/Schilderij II crop.jpg "Rood<br>aquarel 2003") [](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
-
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.
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
Hope this will help. Regards, William
-
Brad, Of course: Aquarel
[](images/Schilderij I crop.jpg "Blauw<BR>Aquarel 2003 ca. 125x85") [](images/Schilderij II crop.jpg "Rood<br>aquarel 2003") [](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
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.
-
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.
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
-
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
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.
-
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.
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