LightWindow Support

This is where you can ask questions, get answers, and anything else regarding the lightwindow library.

You can find the library project page here: LightWindow v1.2

The current version is 1.2

Comments are now disabled, use the Forum and there is a New Article regarding the latest release.

Colophon

Kevin Miller I love Ruby on Rails, Prototype and Scriptaculous. Together we can do wonderful things, stick around and lets make some really cool stuff!

Links


Syndicate

stickmanlabs feedburner

Activity

203 total comments, leave your comment or trackback.
  1. lee ting
    Mar 27th 2007

    how should I get the post value from the form? i’ve tried alot time but it seems doesnt work… - -

  2. kevin.miller
    Mar 28th 2007

    So be sure to include the param lWForm for the name of the form in your submit button as I show on the page (and the link to the php file as well). Note, it wants the name attribute of the form, not the id, so set both. Also the data is passed to your php script in the $_POST array, what you do form there is up to you ;)

  3. lee ting
    Mar 28th 2007

    i check my form again… but it still doesnt work… perhaps i’ve done something wrong somewhere

    here’s the form…(I follow the form you used in the example)

    What is your name?

    
    Submit
    
    and this is the hello.php
    
    echo $_POST[’name’];
    print_r($_POST);
    

    i wonder did i collect the post value in a wrong way?

  4. kevin.miller
    Mar 28th 2007

    Check out this file for how to build the form and the button.

    http://www.stickmanlabs.com/lightwindow/form.html

    Also the way you are grabbing the php $_POST should be fine. One thing I have noticed though is that some web hosts won’t let you POST with ajax, this being said you may have to change the method used to GET.

  5. leeting
    Mar 28th 2007

    i’ve tried to change to GET and copy your form… it doesnt work… >

  6. leeting
    Mar 28th 2007

    i’ve tried to change to GET and copy your form… it doesnt work…

    one thing i realize that the download file comes with the lightWindow.js not lightbox.js so i changed my include path to lightWindow.js…. does it affect?

    and… do i need to change the ‘post’ to ‘get’ in the js file?

  7. kevin.miller
    Mar 28th 2007

    ahhhh… yeah its supposed to be lightWindow.js, I have fixed the site. Got a url?

  8. lee ting
    Mar 28th 2007

    hm.. ok.. you’ve fixed the url… but my problem still there…. is there a possibility that… to put a download with all the files and a working form sample php script ?? so that i can check on all the script to make sure im not wrong? please…

  9. kevin.miller
    Mar 28th 2007

    I will post up the full sample without some of the media files sometime tomorrow.

  10. lee ting
    Mar 28th 2007

    ^^ cool… thx anyway

  11. kevin.miller
    Mar 28th 2007

    Download the zip file again, I have included a sample that will work out of the box. All you need to do is make sure that the form.txt is writable by your server for my form example to work. If you have a demo link you can post I would be more than happy to take a look.

  12. lee ting
    Mar 29th 2007

    wow… i’ve try… it works ^^” now i know i it doesnt work just now…

    should be …. effect.js

    am i right? (_ _)||

    im working on the localhost… just to try the things out… ^^

  13. kevin.miller
    Mar 29th 2007

    Yes, you need prototype.js, effects.js, and lightWindow.js in that order and then just set up the links.

  14. lee ting
    Mar 29th 2007

    remember to change your link….. in the demo tutorial…. it’s still scriptaculous.js?load=effects

  15. kevin.miller
    Mar 29th 2007

    If you have the whole scriptaculous library the link ’scriptaculous.js?load=effects’ will only load the effects lib rather than all of them. One of the little known but n ice things about scriptaculous.

  16. I’m having trouble getting LightWindow (even your online demos) to work in Internet Explorer 7. Doesn’t seem to want to play ball at all!

  17. kevin.miller
    Mar 29th 2007

    Can you be more specific? I have it working fin eon my version of ie7 win xp downloaded 3 days ago.

    –UPDATE–

    Just tried it on another ie7 and ie6 and both work as expected. The only problem I have was the Quicktime video and not having the mime types associated with the browser. Can you send a system spec on what you have as far as OS, Browser, Plugins, etc and maybe a screenshot?

  18. I’ve tried resetting IE7 (on my main PC) back to the defaults and it still doesn’t work. I’ve tried IE6 and IE7 in XP SP2 on a virtual machine - both work fine. I’ve tried IE7 on my laptop, also works fine. It just won’t work on this particular machine. :(
    PC: Intel Core 2 Duo E6400, 1GB RAM, XP Professional SP2
    Useragent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)

    The only plugins now installed are Java and Flash.

    What actually happens is this… I click on one of the links on the demo. The lightwindow starts to appear and I briefly see the loading message/graphic. Then IE loads the actual content in the MAIN browser window instead of within the lightbox. Like the page was refreshed or something.

  19. OMG, this is exactly! exactly! exactly! what I am looking for over last 3 month!. Man You Rock!!!!!!!!!

    But I got a little question, how can I disable the function that allow ” Click anywhere on the overlay to close the window “. By all means, I would only like the user to close the forced windows by click the “Close Me” link or the “Esc ( A brilliant idea ) ”

    Also, is this support PHP dynamic content? I haven’t see you include PHP in your sample code.Let’s say, I have a memberList.php which use to display all the member dynamically, so should I just use View Members List?

    Thanks

  20. Correction and addition of my last post.

    1. On the last paragraph when I said ” so should I just use View Members List?” I mean this ” so should I just use  a href=”blank.html” class=”lWOn” > View Members List “.$_GET[’name’].”"; // this return nothing
    echo “Post Value –>”.$_POST[’name’].”"; // this return nothing

    $myFile = “form.txt”;

    if ($_POST) {
    $fh = fopen($myFile, ‘a’) or die(”can’t open file”);
    $stringData = $_POST[’name’].”\n”;
    fwrite($fh, $stringData);
    fclose($fh);
    } else {
    $fh = fopen($myFile, ‘r’);
    $theData = fread($fh, filesize($myFile));
    fclose($fh);
    echo “”.$theData.”";
    }

    ?>

  21. Addition and Correction from my last post

    1. In the last paragraph,“ so should I just use View Members List?  “ I really mean this ” so should I just use View Members List?

    2. About the form, I can not echo out the $_POST value that I input in the form? Any idea how to make that happen?
    Here is what I do on the hello.php file:
    I add this two lines, but it won works.

    echo “Post Value –> “.$ _ GET [ ‘name’ ] . ” “.$ _ POST [ ‘name’ ] . ”

  22. Johnny
    Mar 30th 2007

    The post values are also not working for me. I’m going crazy trying to figure out why the demo works but when I simply want to echo $stringData it doesn’t work.

    Kevin, are we all just stupid?

  23. kevin.miller
    Mar 30th 2007

    That’s a loaded question, hehe.

    I need one of you guys to post up a URL and txt files of your php code, from that I can answer you guys. Most likely your web hosts won’t let you do POST so GET might have to be the way you go.

    Gimme a url :)

  24. Johnny
    Mar 30th 2007

    It’s not on a public box, so here’s the code. Thanks for looking into it!!

    Just add your files in something.html and create an to page1.php…

    page1.php

    Preferences

    Name

    Submit

    Close

    page2.php

    Hello! Join our club ;)

    “;
    var_dump($_POST);
    echo “”;
    }
    ?>

  25. Johnny
    Mar 30th 2007

    arggg, it formatted my code…

    how can i post code =(

  26. rojaro
    Mar 31st 2007

    The script does not recognize “http://beta/system.view?id=432″ as a URL and throws an exception … i think “external” should be default for everything that can not be recognized. Or there should be a optional parameter to specify the URL type.

  27. Johnny
    Mar 31st 2007

    Kevin,

    Simply try to var_dump($_POST) or echo $_POST instead of writing it to a file in hello.php

  28. Kevin, here is the URL you required:

    http://nanomedia.ca/lightbox/

    Hope you can see what I don’t see.

    Thanks man

  29. kevin.miller
    Apr 1st 2007

    Firstly, your forgiven for calling it ‘lightbox’ ;)
    Second I think I know now what the problem is, I will work up some tests later today and will most likely make v1.1

    Thanks for posting the url, it was helpful!

  30. What you mean by forgiven for calling it ‘lightbox’? Is that the problem that make mine not working?

    Hope the version1.1 wil coming soon.

  31. Johnny
    Apr 1st 2007

    Kevin,

    LOL. Tony, look at the URL you are current at to see why he said that.

    Anyways, thank you for the future fix.

    I tried to figure it out and submit a patch but but limited ajax knowledge made all my attempts worthless.

    Looking forward to v1.1!

  32. LOL hahahaha Ys I think too much coding hahaha

  33. In IE, if the browser isn’t maximized and a lightwindow is launched, if you then maximize the window the overlay div dose not stretch and remains the same size as the original browser window.

    Does anyone know a way around this?

    thanks.

  34. also, is there any way so specify some of the options from the href?

  35. Sanjeev Kapoor
    Apr 6th 2007

    getDomain function donot work correctly if port is also mentioned.
    The following code corrects the behavior.

    getDomain : function(url) {
    var leadSlashes = url.indexOf(’//’);
    var domainStart = leadSlashes 2;
    var withoutResource = url.substring(domainStart, url.length);
    var nextSlash = withoutResource.indexOf(’/');
    var nextColon = withoutResource.indexOf(’:');
    if (nextColon > -1 && nextColon

  36. Sanjeev Kapoor
    Apr 6th 2007

    getDomain : function(url) {
    var leadSlashes = url.indexOf(’//’);
    var domainStart = leadSlashes 2;
    var withoutResource = url.substring(domainStart, url.length);
    var nextSlash = withoutResource.indexOf(’/');
    var nextColon = withoutResource.indexOf(’:');
    if (nextColon > -1 && nextColon

  37. Sanjeev Kapoor
    Apr 6th 2007

    getDomain : function(url) {
    var leadSlashes = url.indexOf(’//’);
    var domainStart = leadSlashes 2;
    var withoutResource = url.substring(domainStart, url.length);
    var nextSlash = withoutResource.indexOf(’/');
    var nextColon = withoutResource.indexOf(’:');
    if (nextColon > -1 && nextColon

  38. Ram Singla
    Apr 6th 2007

    Hi Kevin,

    Nice library. There is one particular behavior that IMHO needs improvement. When we are posting to a form. There are two requests being made (one Post and one Get). The post one with the parameters of the form.

    In the example shown by you it looks okay that you are storing just the name without any validations.

    If we are to do complex form processing with validations and to report back to the user if error then the above proposed method won’t work.

    The solution is to do one request and the POST request handle the output behaviour. I hope I am making some sense.

    I have changed the code that is working in this case. It would be great if that gets incorporated into the library. Mail me so that I could mail you back the changed code.

    Regards,
    Ram

  39. kevin.miller
    Apr 6th 2007

    Thanks!

    It makes me so happy that you guys are finding the same things I am. I am releasing 1.1 here this weekend and I have already addressed all of these problems (ran into them myself on a site I am working on). Keep the suggestions and problems coming in!

    Kevin

  40. hi,
    I got this script up and running, but I’m wondering how to make lightWindow making XHR calls instead of regular GET.

    This is needed since in Rails we can differentiate the content to show based on the kind of request, request.format, request.js.

    Apparently every request I made is straight html, I would make the call to show the box content via JS.

    Thanks.

  41. Even with:


    Show Profile

    will show the current page in lightbox because of ‘#’, so I think there are no ways to make an Ajax.Request.
    I’m wrong?

  42. Hey Kevin,

    Thanks for a great library. I am sure that it will become a kickass one, once the minors issues is solved.

    Here is my findings and requests:

    In IE6, there is scrollers with the lightWindow activated. Is there a padding/margin issue? I tried doing padding: 0; and margin: 0; for the body part, with no success.

    I would like to be able to use the external method for an internal URL. I have a webapplication that is currently using popups to do some signup mehods and other advanced forms submitted to another page. I see your methods for that, but it is just so much eaiser to integrate it with the use of an iframe, so a way to determine the launch method in the params would be great. Currently I had to hardcore the constant use of external, to get this working, which I find unnice.

    In this same webapplication I have some situations where I need to launch the modul directly from JavaScript. Can you suggest a hint on how to do this directly currently or tell me when you plan to have this made as an API?

    I am primarily using FF on Mac, but my clients is using IE, and both positioning of the closing link and such seems not so perfect as on FF.

    Talking about the close link. Could this be a value that can be configured, like the loading text. And when that is done, at the same time also the “Cancel” - next to “Loading” should be as well.

    Again, thanks a lot for releasing this nice piece of code ;)

  43. Also, I don’t think it is necessary to hide the below iframes in IE, but I am not 100% sure. In my webapplication it takes away some of the glance, because the webapp is using some of them.

    The perfect way for hiding/showing these different problematic elements would also to only “re-show” the ones, that was made invisible by lightWindow. The is not the way it is done currently. In some scenarios, there might be some invisible elements which is wrongfully being made visible by lightWindow.

  44. Johnny
    Apr 6th 2007

    I noticed that when I close a full-screen lightWindow, it exposes my hidden-via-css dropdown menu:

    12

    *Only* that is exposed, the hidden text input field is still hidden. I can e-mail you a simple html-only page that you will be able to reproduce this problem with since I can’t post code on here. I just need your email addy.

  45. kevin.miller
    Apr 7th 2007

    You can reach me at stickmanlabs@gmail.com. Get it to me asap as I am releasing a v1.1 really soon and would like to incorporate a fix if it is needed.

  46. Johnny
    Apr 7th 2007

    Sent!

  47. I am trying to learn how to use lightWindow, and after some playing around, I got it to open the web page, and even modified the size of the popup window (by clicking on “VIDEOS: Green Pastures …watch the video” link at the bottom.

    However, for some reason it turns my original site black when it pops open the new window instead of fading it like your demo. When I close the window, my site comes back immediately, but I like the faded out look.

    Also, when I click the Close command in the upper left corner of the popup, the sound from the video keeps playing. How do I turn that off?

    Thanks for the help and a GREAT website tool!
    Don

  48. oh… I see the website wasn’t included: http://www.sandyeldred.com/don2/

  49. kevin.miller
    Apr 8th 2007

    Interesting bug, but I think I know how to fix it, I actually need to destroy the iframe….

    As for your site by default the system hides and flash, select boxes etc to make sure their is no competition on the zIndex. if you have your wmode set to transparent on your flash you can comment out the appropriate lines in the script, I will add the ability to do this in the config in v1.1 which will be out by Tuesday sometime.

  50. Designerno1
    Apr 9th 2007

    I am looking forward to 1.1 your script is realy great but i tried to center the loding dialog but i cannot find where i can cnfigure this, can you help me?

  51. Designerno1
    Apr 9th 2007

    Also a problem for me was, if i edit for example the form.html, and only reload the page, then click on the link that brings the form lightwindow the changes won’t appear in the form lightwindow. only if i close the browser and restart it then the changes will appear. is there somewhere a cache header or something?

    greet Jens

  52. Designerno1
    Apr 9th 2007

    This was in browser (IE7,Firewox newest, Opera, and Netscape) OS Vista Ultimate

  53. Hi Kevin,

    I am not able to work the scriptaculous ‘drag n drop’ work with the overlays.
    It gives the elements and they r draggable as well as droppable but the elements are messed up as in i have to drop it 2 places above where i want to drop .. something like this.

    It would be great, if you would provide some suggestions how to fix this?

    Regards
    Ram

  54. Hi people.Can anybody tell me if it is possible for a lightwindow gallery to be run from an in the whole page.Because I have an gallery in an iframe and when i try to open a pic in lightWindow it opens up in the iframe.

  55. Hi Kevin.

    I appreciate your work very much. Lightwindow is the best js I’ve found. Hoever I still got some problems when installed it on my blog.

    http://wondereye.blogspot.com/

    If I use class=”lWOn” to show lightwindow, the window will extend as wide as the browser is. I have to set the window size by param=”width=300″ etc. But I think it should fit the image size without any parameter?

    anyway, thanks for your work, I love it.

  56. Hello Kevin,

    Thanks for all the amazing work. My Javascript is on a scale of 1 to 10 is -30000! It works great BUT when a switch the page to rtl as in the link it falls apart. Select the Arabic script in the change language dropdown the click test modal window. Excuse the revolting colours and initial ignoring the stylesheets the IP to language conversion is disabled (cannot resolve 127.0.0.1:)). Please tell me there is a simple fix.

    In case here is the link again http://www.vehicle-web.net/template2colfixed.php

    Thanks again a great tool.

  57. kevin.miller
    Apr 11th 2007

    UPDATE:

    I will need a few more days to add a few features to the system like image sizing from external sites. I have added/fixed a number of things and version 1.1 will solve some headaches ;)

    Simon-
    If you load it in an iframe you will get it in an iframe, you may want to think about instantiating it in the parent window and in v1.1 you will be able to do this window by window on the fly.

    Rob-
    Your layout needs some work, the lightWindow is positioning itself correctly according to the document size. Look out in the next few days for a post I am putting up on a Holy Grail Layout (yeah I am making fun of ALA) and try it out, this should solve your problem.

    Ram-
    Can I get an example, its an idea I hadn’t considered and will probably need to be a v1.2 to get it to play nice.

    Wondereye-
    watch out for v1.1, the problem is the images are not on the same domain and are being shown as type ‘external’ hence teh large window, I am adding a solution for this for images only.

    Designerno1-
    I tried doing this and to be honest since my system centers on the screen the loading dialog has to constantly keep centering itself which looks a little choppy, it can be done in the css but the effect is not the best.

    I hope I answered everyone, if not, post again and I will ;)

  58. 10x for the fast reply man. I’ll see what i can do :).BTW this script is the coolest sh*t I’ve seen in a while. :)

  59. Hi Kevin,

    I found the fix for that. It is simple. I am using a iframe inside the overlay display. Iframe has the scrollbars with some css trickery to show just the vertical iframe and the drag n drop works without any errors now.

    Regards,
    Ram.

  60. Johnny
    Apr 12th 2007

    Hey Kevin,

    Just curious if v1.1 will resolve the issue I had with javascript using hidden div with exposed dropdown menu.

    Thanks!

  61. Hi Kevin,

    I’m having a problem when using LightWindow with AJAX.

    My application uses the innerHTML property to dynamically change the content of an element. When I include links with the lWOn class in that content they load in the browser rather than in the window.

    An example will probably be more helpful than my explanation:)
    Please see http://axses.net/test/test.htm.

    I’d really appreciate you taking a look and letting me know what I’m doing wrong.

    Thanks,
    Kathy

  62. Kathy,

    This is because the lightWindow is being started with the DOM method. In other words. After the page is loaded, the lightWindow code looks for anchors with the class “lWOn” and attaches the onlick events for the element. When you dynamically inserts a new anchor, the lightWindow code is not run to attach the needed onclick events and you see the result, which is that the link is treated completely normal, opening in the main window.

    I do believe (and hope) that lightWindow will have some solution to this in the upcoming version, where you are able to attach these events when doing the dynamic anchor.

    @Kevin: I hope I am correct here and is answering to give you more time to concentrate on programming than answering questions ;)
    - Lars

  63. Thanks Lars.

  64. kevin.miller
    Apr 13th 2007

    Lars
    danke!

    I have updated and fixed and added stuff, check out the project page for more details. Let Round 2 of requests and bug reports commence!

  65. Hey Kevin,

    Thanks for the new release and your hard work.

    You are not doing much IE testing, are you? I am on Mac as well, but do use IE in Parallels. My first load of the new project page, resulted in a error:

    ‘myLightWindow’ is null or not an object. The 1 on 1 is also not working in IE, but FF is doing fine.

    I am sure that the code is not cached…

    I will test more… ;)

  66. kevin.miller
    Apr 14th 2007

    Actually I knew about it, just didn’t care because I wanted to get it out to you guys. The function works its the way I am calling it onload with Event.observe that it doesn’t like it, which is not how it was intended, i will be changing the example later today so it works. I am pretty sure the order of events being fired is the problem.

  67. kevin.miller
    Apr 14th 2007

    I updated the project page with a button instead, apparently Event.observe has an ordering problem in IE so the second event was firing first…. ugh a bug to report I guess.

  68. Hi Kevin,

    Nice javascripting, is it possible to have in the same class, like multiple images, to mix images and avi, and simple html pages.
    Vladimir

  69. newtrax
    Apr 16th 2007

    The FireFox extension “AdBlock Plus” seems to be blocking the quicktime & flash content in your examples, which work fine when the extension is disabled.

    Is anyone else finding this? Workaround?

  70. kevin.miller
    Apr 16th 2007

    Mijin Vladimir
    You just had to go and give me an idea didn’t you… At the moment the answer is no and the reason is because the prev/next tabs cant float above a media. Though now that you have me thinking, let me see what i can come up with for the next version.

    newtrax
    I had noticed this but don’t really see a way to override the extension and not quite sure why it would block anything anyways? Its just media in an iframe? Anyone else have any thoughts?

  71. So, can I drop that prev/next link, and put at the bottom/top, and still have the functionality, because the float problem.

  72. I just had a look through the code of the new version.

    How about making the library more flexible by giving the user the possibility to define the method of rendering in the params, like I suggested in #41. This would make it possible to run advanced popups in the external iframe. Maybe a new method named “iframe”, could re-use the external method, so that advanced code with multiple forms could be run using lightWindow.

    - Lars

  73. Hi, first thanks for the lightWindow.

    How can i call de lightWindow from a swf button or a swf file?

    Many thanks.

  74. Where is the link to the Crossfader documentation? The link in the main article does not work.. This looks very interesting.

  75. kevin.miller
    Apr 16th 2007

    Lars
    This is my intention, 1.2 will be more open to you developer guys and i will also include an api of sorts.

    Jose
    I am sure you can, though I try to avoid flash I will look into some actionscript goodness for ya.

    Scott
    I knew someone was going to ask…, I will have it back up by weeks end, I need to re-factor a few things and address some bugs. BTW it is pretty kewl, especially for news sites and such (coming soon to yakimaherald.com’s new website :) )

  76. Another job well done, congrats doode, keep up the good work!

  77. You rock. This is an amazing JS and you are a rockstar for the support. Thanks very much!

  78. I am trying to use the Forms demo on your page, but when I enter a value and click the ‘Submit’ button, nothing happens. I’m using Firefox 2.0.0.3, if that helps!

  79. kevin.miller
    Apr 16th 2007

    krogebry
    Thanks man ;)

    Josh
    I try ;)

    Steve
    Sorry, me being lame, the file permissions weren’t correct and there was a typo in the lib, erg. All fixed. Everyone else, re-download it if you are going to use the form functions.

  80. Would be good to see a preloader on the galleries, so it preloads the next and previous images, then doesnt need to display the loader.

  81. swf and pdf examples would not work in FF 2.0.3 on vista 32bit, only got a blank white square, they worked fine in IE7 though on the same platform/PC…how come??

  82. Alidad Modjtabai
    Apr 16th 2007

    kevin;

    Hi, your site is great about the lightwindow, I’m just learning for myself to upgrade myself.

    When I was working on the lightwindow, I followed your direction of how to use it and for some reason is not working right.

    The preview that I’m getting is redirect to one of your favorit website at www.rubyonrails.com without External Sources lightwindow.

    I would appreication if you could please take few minutes to check the code and see what did I missed or went wrong. PLEASE. thanks.

    Website Example - Preview any website from yours!

  83. kevin.miller
    Apr 16th 2007

    Mal
    It does :) But I can make it load more, let me see how far I want it to go, maybe I will make it configurable in 1.2

    tom
    I am looking into this, enough people have brought it up and I have been able to reproduce it, this will be addressed soon.

    Alidad Modjtabai and anyone else with a problem
    URL please :)

  84. Wow, this is great. I’ve been looking for something that is this versatile for a while. One thing I observed. Using Firefox on WinXP, just after an image or a file loads in the Lightbox script, the image “jumps”/moves up quickly and then goes back to its intended spot. This happened on multiple occasions. Not sure if others are seeing this.

  85. Hi Kevin,

    You rock man! awesome script!

    I have a page that loads in an IFrame, I want to open the lightbox from this iframe… at the moment it will open within the iframe…

    You mentioned earlier, that 1.1 would be able to configure this… can you help with an example? i dont know much of scripting :(
    Thanks in advance

  86. Kevin,

    Nice script, I’m finding all sorts of uses for it.

    One issue I had was with IE7 throwing an object not defined error. I tracked it down to this line:

    container = url.substring(url.indexOf(’#') 1);

    in the initialize function. I changed it to this to fix it:

    if(url.indexOf(’#') > -1)
    {
    container = url.substring(url.indexOf(’#') 1);
    if($(container)) $(container).style.display = ‘none’;
    }

    Not sure if it is just my setup doing this but I thought I’d let you know.

    Regards
    J

  87. Mike G
    Apr 17th 2007

    I’m having problems in IE too - works fine in Firefox, but IE7 when I try and open a webpage in it, seems like it’ll open then closes itself back down with a red ‘x’ in the window, even though the URL is correct

  88. Kevin,

    Where is the Crossfader documentation, the link on the blog post is broken.

    Thanks,
    Scott

  89. Hi Kevin! I’m trying to install LightBox in my WordPress based Weblog, but I dont’ manage to run the javascript correctly: if I try to put the javascript and css files in another part of my webiste (with no WordPress) it just works. Is there any specific detail to change or adopt them in order to work properly in WP?

    These are the links:
    my weblog: www.pulmonar.org.br/blog (click “Link Name”) or http://www.pulmonar.org.br/blog/tuberculose/manoel-dias-de-abreu/ (the second image)
    my test page (with no WP): www.pulmonar.org.br/blog/teste.html

    Many thanks!

  90. Well done, well done indeed!

  91. Form Problem!!!

    FF 2.0.0.3

    Here is the issue after I click the “Submit” button.

    Warning: fread() [function.fread]: Length parameter must be greater than 0. in /home/albanyvc/public_html/stickmanlabs.com/lightwindow/hello.php on line 16

    Plus, the submit process will work even if I have no text type into the form.

  92. I want to not have the fade in of the image but a fast ways to it…
    where can I stop it
    thanks

  93. kevin.miller
    Apr 17th 2007

    Scott
    It will be up in the next few days, I am rewriting it and refactoring it.

    Tony
    Fixed, I changed the form method I was using but forgot to do so in the php file. As for inputs, this is meant to be an example, I don’t validate squat here nor do I care what ends up on the results page (as long as its not obscene :))

    Mike G
    I have not been able to reproduce this, can you give an example or maybe a screen shot?

    Johnny
    I haven’t seen this happen, though I will look into it, if its there i will update the code and throw credit where credit is due :)

  94. I have included all the js files and link to image like so

    however it just opens the images in a blank screen and when i click the back button it says ;

    Line:18
    Char:3
    Error: Exception thrown and not caught

    Any ideas what this could mean? never seen it before, line 18 btw is ;

  95. Gordon
    Apr 18th 2007

    Kevin. I didnt dig too deep into how to use this yet, but I noticed in your examples, that you use the attributes author, caption, title and params on the lightbox links. With the exception of title, these are not part of any XHTML DTD. Though you could build a custom DTD that includes those attributes, which is not advised at the time, your markup will not validate with the standard DTDs. I am curious why no one brought this up yet. Maybe I am missing something. Is there anyway around this, because the functionality is fantastic and I really would like to use this.

  96. I saw the thrown and not caught thing, but it was because I hadn’t included scriptaculous.

    I think we’ve tracked our problem down in IE7 - does it require XHTML?

  97. Works well in firefox except if the lightwindow has new/different css that it changes the background css display.

    Lightwindow by itself works fine but gives an error in IE7 “Object doesn’t support this property or method” when using combine.php @ 3308 after I include some other scripts which is breaking the functionality.

  98. Dahn II
    Apr 18th 2007

    Hi Kevin,

    ¿Can you post a example for a inline window? I tried with “class=’lWOn’” but it doesn’t work in IE. In Firefox and Opera works perfectly.

    (Sorry, but my english is very poor (i’m spanish)… :P)

  99. kevin.miller
    Apr 18th 2007

    Will
    Include effects.js

    Gordon
    I am a believer that tags/attributes should be used as they are intended. If you want it to validate, please make a custom DTD. I know its not ‘recommended’ but if we waited for the W3C to get anything doesn’t I would have to attach my laptop to my walker. I have no intention of changing the tags at this time, sorry. I develop in STRICT and imho I get my stuff to validate when I can but the W3C’s support is so lax I don’t kill myself by it.

    Jin
    If you are using inline content your CSS could conflict, remember that unless its an external resource its all on the same page.

    Dahn II
    URL please, my demo page has an example and it works.

  100. Dahn II
    Apr 18th 2007

    Hi Kevin!

    This is the code of the link:
    ———-
    programador
    ———-

    …and there are the JS and CSS includes:

    ———-

    ———-

    With “effects.js” the result is the same. This isn’t the problem. :S

    By the way, awesome script! ;)

  101. Dahn II
    Apr 18th 2007

    OMG, this WP allow HTML on comments!! :O

  102. Andy Smith
    Apr 18th 2007

    To elaborate on Mike G’s problem. LightWindow seems to only work in IE if the doctype puts the browser into standards mode i.e. uses the following:

    If you use a doctype that puts the browser into quirks mode it screws up i.e.:

    I tested this in IE7 but from what I have read could be a problem in previous versions. Is there a workaround as I am limited in the app I am using as to what DOCTYPE I can use.

  103. Kevin;

    Thank you for your response from last Monday, I have installed files for lightwindow on my server and please take look the sample at http://www.alidad.net.

    I have followed your direction and setup everything but for some reason i’m not sure why is not working right. I really appreication if you can help me of what did went wrong please!

    Alidad Modjtabai
    Alidad@comcast.net

  104. Hod Sweeney
    Apr 18th 2007

    Hi Kevin,

    Great work. LightWindow is working well on Rails. I have not been able to figure out how to place the window at an exact location on the page, however (over a text box near the bottom of the page). I’ve adjusted the .css without results. I’m sure this is something simple that I am missing. Any assistance will be very appreciated.

  105. hey there:

    lightwindow is sweeeet… :)
    that said, i’m having some issue with it in safari. i haven’t installed it anywhere, but was just going thru the demos at your site.

    * the instantiate button doesn’t seem to do anything?
    * the monster fixed page’s scroll bars don’t work at all (but do in IE7 on Win)
    * is it possible to have a previous along with a next?

  106. kevin;

    I send you my preview message that i gave you wrong my wrong url address, the correct one is www.alidad.com, can you please one more time to check what went wrong thanks so much.

    Alidad

  107. Hi, Kevin! any suggestion about my doubt published at comment n.88? Thanks!

  108. nice work. This is better than all the light-whatevers out there. how ever the xhtml doesn’t validate. are there any work arounds? thanks

  109. I have added efffects.js, see below for my header but no joy, same problem. I have no ’scriptaculous.js’ in my javascript folder, its not available as one of the files in your zip download. is that the problem?

  110. –>

  111. header doesnt show here it is again without opening ”
    script type=”text/javascript” src=”javascript/scriptaculous.js?load=effects”>
    script type=”text/javascript” src=”javascript/lightWindow.js”>
    script type=”text/javascript” src=”javascript/effects.js”>
    link rel=”stylesheet” href=”css/lightWindow.css” type=”text/css” media=”screen” />
    link rel=”stylesheet” type=”text/css” href=”mainstyle.css” />

  112. Well done. Current version doesn’t work with prototype 1.5.1 rc2. Any plan to fix that?

  113. This is so funny,I never had problme like this before, I have done many javascript and php, and base on your site “lightwindow” site is cool, but for some how is not working on mine. I know you are great programmer but we all do too.

    There must be something going on with .JS files, even old version or latest version but STILL not working right.

    Kevin, you the man, but it would be nice if you include the sample file in the zip file that would help for people to understand from html editor.

  114. Great job Kevin,
    I have a question:
    is there a way to have a gallery of mixed media types?
    In particular I am trying to have a gallery that let you flip between images, text , audio and video (flv).

    Any insight will be appreciated.

  115. Hello,
    first of all: great work!

    I played with forms and discovered something (what I want to accomplish is to send mails from this form with a confirmation message)…. when I post a form with your code and then inspected the log files, I discovered two lines:

    A POST on the file, and then immediately a GET.

    How can I display a status of the action (”mail successfully sent” etc.)… the output of the first POST and the status gets lost with the second GET.

    Do I have to save the result in PHP session to retrieve it, or is there a way to supress the second GET?

    How do I close a lightwindow from within a HTML script?

    Thanks,
    Armin

  116. Hi again:

    Got things up and running quickly and smoothly. :)
    I notice in IE7 that the semi-transparent background stops resizing with the window at some point.

    http://www.cheathamlane.net/index2.php?section=gallery

    (thumbnails at righthand side currently linked properly)

    Cheers,

    Patrick

  117. Another comment regarding my previous post… here is the log file from Apache. I have a file “compose.php” with the form, a file “send.php” which actually takes the POSTed variables and send out the email display status message, and index.php which is the main script that displays a list of emails and a button to compose a new email.

    This log extract is from the point after pressing “Submit” in compose.php

    xxx.xxx.xxx.xxx jose [19/Apr/2007:19:08:54 0200] “GET /compose.php HTTP/1.1″ 200 311 “-” “Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050923 Fedora/1.7.12-1.5.1″
    xxx.xxx.xxx.xxx jose [19/Apr/2007:19:08:58 0200] “POST /send.php HTTP/1.1″ 200 124 “-” “Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050923 Fedora/1.7.12-1.5.1″
    xxx.xxx.xxx.xxx jose [19/Apr/2007:19:08:58 0200] “GET /send.php HTTP/1.1″ 200 46 “-” “Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050923 Fedora/1.7.12-1.5.1″
    xxx.xxx.xxx.xxx - - [19/Apr/2007:19:08:58 0200] “GET /images/ajax-loading.gif HTTP/1.1″ 403 - “http://my.host.name/index.php?action=send&c_from=&c_to=&c_subject=&c_body=&Submit=Submit” “Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050923 Fedora/1.7.12-1.5.1″
    193.170.74.125 - - [19/Apr/2007:19:09:21 0200] “GET /images/ajax-loading.gif HTTP/1.1″ 403 - “http://my.host.name/index.php?action=send&c_from=&c_to=&c_subject=&c_body=&Submit=Submit” “Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050923 Fedora/1.7.12-1.5.1″

  118. Hello,

    Great work on lightWindow. Very impressive!

    Here’s what I’m doing. I have what I’ll call the “main” page. It’s a report menu page, where clicking on a link for a specific report opens a little popup via Ajax (NOT using lightwindow) where the user can edit the report criteria and click a button to run the report, which is rendered as a PDF.

    Clicking the button submits a form, and the response is the PDF report. I want to redirect the PDF report to lightwindow as shown in the example, but I’m having trouble getting it to work.

    It looks like under the covers lightwindow creates an iframe, so I’m trying to redirect the PDF output to that iframe. The iframe doesn’t appear to have a name or id attribute, so I supply one. The form’s target attribute has the name given to the iframe, but it still opens the report in a new window, and the lightwindow appears but is empty and says “loading.”

    Here’s the JavaScript I’m using:

    mylightWindow.name = “lightWindow-iframe”;
    mylightWindow.id = “lightWindow-iframe”;
    reportForm.target = “lightWindow-iframe”;

    //post the form
    reportForm.submit();

    mylightWindow.displayLightWindow(true);
    mylightWindow.setupDimensions(true);
    mylightWindow.monitorKeyboard(true);

  119. Hi there, nice script. Wanted to suggest that the viewer be Mac-aware and not bother loading the light window for PDFs on Mac. Unlike the Windows version of the Acrobat Reader plug-in, Mac browsers are just going to download the files anyway. Cheers.

  120. Regarding Macs and PDFs — I don’t think that’s always the case, James. Using the lightWindow demo here, the Adobe Reader kicked in and everything opened as expected in the lightWindow.

    This is Safari 2.0.4 (419.3), OS X 10.4.8.

    On my Intel Mac running OS X 10.4.9 & Safari, I don’t have the Adobe Reader, but it also loads the PDF into the lightWindow. Neither case downloaded the file.

  121. Hi Kevin:

    OK, last post honest! :)
    All is working great until I try to load an external page containing a Flash movie, into the lightWindow.

    If you go to: http://www.cheathamlane.net/index2.php?section=gallery , and follow the link to “Full screen Flash panoramas”, you will get a lightWindow with an empty gray box. this is where the Flash content should be. In Safari, you get all sorts of flashing and odd redraw vefore it fully resizes.

    For this application, it’s not possible to load just the SWF into the lightWindow… Have I missed something obvious?

    Cheers,

    P

  122. Patrick M.
    Apr 19th 2007

    Hello, just want to say great script.

    I also, like many, have a question. In the site I am working on we use a frameset that has three frames, one along the top and one on the left. The last frame is for the main content. I use the following like to open up my form for people to login, is there any way to tell lightwindow to open in the target instead of the current frame?

    Login/Orders

    please note that target=”pages” is referring to the frame where all of the content loads which is called pages :-)
    Thanks in advance

    -Patrick M.

  123. Patrick M.
    Apr 19th 2007

    whoops, noticed the link didn’t get put in correctly…

    here we go

    a class=”lWOn” params=”lWWidth=150,lWHeight=150″ href=”Login_System/main.php” target=”pages”>Login/Orders /a

    just pretend the a and /a have tags around them ;-)

  124. Great script - just noticed one bug on it. If you are doing a gallery, if you close the gallery and reopen it, the title of the previously viewed picture shows instead of the first one in the gallery.

    Thanks again for sharing your work with the community.

  125. Patrick said: “Regarding Macs and PDFs — I don’t think that’s always the case, James. Using the lightWindow demo here, the Adobe Reader kicked in and everything opened as expected in the lightWindow.”

    Thank Patrick, I stand corrected on Safari. Firefox on Mac still tries to download the file.

  126. Very impressive, good job !! I make a little page in french to present LightWindow, you can download sources in french (menu, navigation and boutons…).
    I use Rapidweaver and i modify the CSS source to resolve a text justification problem when i use a theme in float center presentation (IE option - text align center for container). Author, caption and title are not in left position.

    Regards

    PS : sorry for my poor english :)

  127. Hi!
    How can I use TimyMCE with lightWindow?

  128. I cannot get the form to send data via post or get. They both submit, but result in empty arrays. Does anyone have a working example, or is there something special I need to do. I copied directly from the sample and the target php file currently is only set to spit out the get and post arrays.

  129. Awesome, Awesome, Awesome!

    I really like your script. I’m having a problem with getting it to display in Internet Explorer. It shows up fine in Firefox, but if I open it in IE, I get a flash of white that closes all the way, then my page title and the “close” tag show up in the middle of the original (darkened) page like this…

    This
    is
    my
    title
    Close

    Any ideas what I’ve done wrong? It has to be something I’ve done. All your demos show up fine for me in both FF and IE.

  130. How do I activate on pageLoad?
    could not resolve this.
    Thanks

  131. How do I activate automaticllay from page OnLoad?
    thanks

  132. discret
    Apr 22nd 2007

    hi,
    I use this for my playlist mp3 : http://www.jeroenwijering.com/extras/javascript.html
    and i control the mediaplayer with a function : pause play

    and when i launch a video with a lightwindows like this :
    video

    I would like my mp3 player to pause when the windows shows up, and the mp3 player will automatically restart when the user will close the lightwindows (by clicking on the close button)

    i would be glad if someone could explain me how to reach this…

    Thanks

  133. Never mind my previous post about the script not working on IE7. I had a weather script in the page where the “type” wasn’t defined. I happened to spot it while looking through the code trying to figure out why this wasn’t working. I put in type=”text/javascript” and VIOLA! It works now. Funny how Firefox ignored it and continued on with everything and IE decided to not let anything at all run because it didn’t understand one part. :( Thanks again for the great code!

  134. Hello,
    As the comments, questions etc. are growing, couldn’t you switch to a forum or so? It’s very hard now to follow comments, questions and answers…

    just my 2 cents :)

  135. ownage! fantastic work.

  136. Artur Sudnik
    Apr 23rd 2007

    Hello,

    I have a problem. It is also present at demo page of lightWindow.

    When opening page in IE and scrolling it down, when one clicks link that opens a gallery, page is scrolled back to the top until one closes the opened gallery. It is confusing for visitors.
    Is there any possibility to avoid this?

    Regards,

    Artur

  137. Just trying the demos, I notice a really annoying vertical “bounce” on most of them right after the image or whatnot loads that seems to do with the title text appearing. I’m getting this behavior on both FF2 and IE7 on a brand-new XP box.

  138. Sorry, correction - only getting the problem on Firefox.

  139. Rino Montiel
    Apr 23rd 2007

    Hi! It looks pretty great!

    But I’m having problems from IE6 and 7, but only with certain pages full of graphics and such… not with html without images.

    Have anyone else had this problem?

    Thanks!

  140. dandesigns
    Apr 23rd 2007

    hi! thanks for the great work. i’m just wondering when the bug in media types in FF will be fixed.

  141. Rino M
    Apr 23rd 2007

    My problem is the same one that Mike G published a while ago, if you need code samples let me know, cheers.

  142. Constantin Ionescu
    Apr 24th 2007

    Hello, first of all great work!

    Please tell me if there is any way to start the script when the page is loaded. Something like body onload=…

    Thanks in advance,
    Constantin

  143. abhishek
    Apr 24th 2007

    lightbox working in mozilla but not IE?What’s the problem Kevin?

  144. ric h.
    Apr 24th 2007

    had the same problems with the IE, I get a run time an error at line 1064.
    wenn i set a doctype functions it in the IE, but in my project cannot use doctypes.

    nice work :-)

  145. Hey, thank you so much for your work on lightWindow. I love it!. One quick question. I am using it to serve an ajax contact form that is built on another page and loaded throught a lightwindow when the user clicks ‘contact me’. I noticed that the ‘close’ button disappears from the upper left corner of the screen when you use lightwindow to serve up a page, as opposed to a photo or gallery. Is there any way I can get the ‘close’ button to come back? Thanks.

  146. I am using the following code taken from your examples. It works fine in FireFox but not in IE.

    In IE the overlay appears and the white box appears for the content but instead of growing to the size of the content, it shrinks down to nothing and the overlay remains. Then I can hear the audio from the movie playing but all I can see is the gray overlay. Clicking on the overlay makes it go away, but the movie is still playing. I have to refresh the page to make it stop.

    Link Name

  147. Ok. Here’s the code again.

    Link Name

  148. Well it seems no matter what I do to show the code it formats it. I tried putting it in a textarea, but the forum keeps changing it. It’s exactly the same code unaltered on the examples page for showing the quicktime movie. It works in FireFox, but not IE. I can play other quicktime movies in IE just fine.

  149. Rino M.
    Apr 25th 2007

    The problem with the lightwindow closing was definitely the doctype, but now I’m having problems displaying PDF, I can display just about any PDF on the web but not the ones on my server, it’s still great though…

  150. Hi great work. Im having trouble with my page, when i open the page by itself it works fine, but when i put inside a frame it does not work, it gives me this error (”Object doesen’t support this property or method”). Im trying to load an external page inside the lightWindow, is wierd because it does work with images but with external or local page it doesn’t.

  151. Chris Tracy
    Apr 25th 2007

    First, this is a great script and has filled a very significant need in my code library.

    Now, keeping in mind I’m a relative novice in the javascript world, I think I found something significant. In IE (any version) I kept getting an error message that Jin and Jonny reported (“Object doesn’t support this property or method”). It worked perfectly in Firefox, Opera, etc.

    After many, many hours of staring at the code and debugging I realized something: I had a div in my site with an id of “container.” This is fairly standard and lots of sites have the same thing. However, this causes LightWindow to bug out because in the window init and link setup functions it uses the $ function of Prototype to reference an undeclared variable ‘container’. This causes LightWindow to attempt to assign the style.display=”none” to that element instead of the intended target.

    I changed the id on my div and everything now works correctly in IE and FF/Opera. Hopefully my experience will help others with the same issue. Also, Kevin, please consider changing variable names in future versions to avoid this issue and/or write more explicit references into the code.

    Thanks again for a great script! I’m looking forward to future versions.

  152. Love the script, but I’ve got one problem. When the script loads and the mov or page loads all is well, if I want to close it though and I click anywhere on the page whatever just loaded won’t close, the black backround goes away, but the image/page/mov stays there and I need to refresh the page to get rid of it.

    Any ideas why?

  153. Hi!

    How can I open a lightwindow on page load (onload)?

    thanks a lot!

  154. I to along with a few others on here are having problems with IE opening the light window, the shrinking it right down so its displayed in the said format of :

    This
    is
    my
    window

    I do not have any other js on the page or css, only the required files.

  155. kevin.miller
    Apr 25th 2007

    Alright guys, here is the deal…. I want to help all of you but I am swamped with making new libraries and other work. This being said, help me out and I will help ALL of you out. I have a list of bugs but going through the comments is painful. So I have put up a bbpress forum. Post and Re-Post all your stuff and it will get prompt attention, I promise… Boy Scouts honor… even though I was never a Boy Scout.

    Forum

    PS. I am releasing another library in a few days that will be just as useful as the LightWindow. Keep checking back!

  156. Hello..

    I seem to have a problem where the first window that pops up can only be closed by hitting escape. Any other ones are fine!!!

    Help!! I cant figure it out!

    Thanks!

  157. hi,
    i have a link(which loads a dynamic php page) in a div whose content is loaded via ajax and lightbox doesn’t work with that. Has anyone tried this before? has anyone got an idea about that?
    the page i’m working on is:

    http://office.azero.it/fitoben.it/prodotti/prodotti.php

    (choose something from the first and second select:
    1 - if you click on the bottle image it open a working lightwindow page (when it’s on its own http://office.azero.it/fitoben.it/prodotti/index.html)
    12 - if you click on the zoom image it should open an image with lightwindow but it doesn’t..

    many thank
    Vitto

  158. ops, sorry meant lightwindow

  159. What size is blank.gif? Didn’t seem to be included in images folder. Referenced in css below:

    #lightWindow-previous,
    #lightWindow-next {
    width: 49%;
    height: 100%;
    background: transparent url(”../../../images/blank.gif”) no-repeat; /* Trick IE into showing hover */
    display: block;

    Thanks

  160. http://dev.jessewm.com/test.cfm

    I’ve been trying to get this implemented with my picasa web albums. I can get the lightwindow to work if I program it directly into the page; however, I am unable to get it to work when I using an onclick.

    Premise:
    1. Display Albums (default view)
    2. Onclick of Album displays photos in Album
    3. Onclick of Photo loads photo in lightwindow

    The above link will show you basically that the script works for the bottom which is coded directly, and it does not work for the top - which loads the photo via onclick of the text. Is there something that I’m missing? Is there anyway to call the lightwindow javascript directly from within the anchor tag besides using the class=lWOn? Is what I’m trying to do even possible with this script? Any help would be appreciated…..I’ve been trying to figure this out for a few days and have been going crazy over it.

    Jesse

  161. awesome script, i’ve been fiddling around with this for awhile now.

    however, i haven’t figured out why this is happening to me everywhere on any site. whenever i try to open a page in the same domain in your lightwindow, it will freeze on the loading screen.

    ex. from default.html, if i click on the link to load new.html, lightwindow will fire but will get stuck in the loading screen. i do not encounter problems if i try to load an external site(not on the same domain) like yahoo.

    i’ve been forced to use another(dummy/test) domain to host new.html in the past but i’m now working on a project which unfortunately does not allow me to use that workaround.

    i have followed directions religiously and i didn’t modify lightwindow.js. i’ve also tried using relative and absolute links still with the same result.

    if any of you encountered the same problem or if you know of a possible solution, any help will be appreciated.

    thanks!

  162. oh cr@p, nevermind.

    looks like its been fixed in the new version.

    one quirk though, another site i’m developing requires i pass filenames as parameters for a page.
    ex. edit_img.php?img=pic.jpg
    this breaks lightwindow cause its probably trying to load it as a jpg. just a heads-up i ncase somebody else is trying to do the same.

    you’re awesome man!

  163. hi,
    Is there an installation guide for people less experienced ( like me ! ) with what files go where, and how, in the installation of lightwindow ? The explanation on the lightwindow page assumes some experience of script install and placement………much appreciated, paul

  164. …and what is meant by ” instantiate ” a window please ? thanks, paul

  165. You got a really nice script :-) Just one questions, I’m not getting it to work with clean urls. When I try this: Link Name it works great. And the same goes for www.mysite.com but I have clean urls activated via .htacess so to get to my gallery I have this url http://www.mysite.com/gallery/main and it works in the browser but your script only stays at “Loading”… is this something you are aware of?

  166. I just left a question on your forum. It seems that the posts don’t format nicely.
    This is a great alternative to the other boxes.
    Thank you.

  167. I have a site that is primarily flash except my nav is written in HTML. I tried your LightWindow v1.1 and I was wondering why when a LightWindow is launched it makes all of the Flash elements disappear on the page. Is this so it works on the mac browsers? Those were the browsers i had problems with trying to implement a modal window…they cause extreme flicker and overlap issues. So this solves that problem, but what if i don’t want the Flash elements to disappear. Is their a way to make it work cross browser and not make the Flash elements behind the window disappear?

  168. Wonderful script! Am so glad I found this.

    One question: is there a way to have the LightWindow close itself after a predefined amount of time has passed? I would like to have a movie link come up in a LightWindow, then automatically close itself after the movie is over.

    thank you!

  169. Hey
    I’m Having trouble getting this to work.

    Ok heres my code:

    New Document

    Link Name

    Could someone please tell me what I’m doing wrong. Really want to use this on my website.
    Thanks

  170. HEAD
    TITLE New Document /TITLE
    script type=”text/javascript” src=”javascript/prototype.js”/script
    script type=”text/javascript” src=”javascript/scriptaculous.js?load=effects”/script
    script type=”text/javascript” src=”javascript/lightWindow.js”/script
    link rel=”stylesheet” href=”css/lightWindow.css” type=”text/css” media=”screen” /
    /HEAD
    a class=”lWOn” href=”http://www.rubyonrails.com/” title=”Ruby on Rails” caption=”One of my favorites, and really it should be one of yours.” Link Name /a
    /BODY
    /HTML

  171. Designerno1
    Apr 28th 2007

    Hello, first of all nice script, and then, how can i make the lightwindow dynamic in height an weight, so that i can switch inline contents by display=block within the lightwindow?

    this could be a nice feature for me, but the overflow is hidden in the lightwindow, and it doesnt resize.

    greet jens

  172. I am trying to get this work, it really wonderfull but i get a little problem.
    In IE6 it works perfectly but in Firefox2 I get the lightwindow behind the overlay layer.
    What’s wrong?
    this is the page
    http://www.korenymotos.com/html/BASE-Koreny2.html
    thanks a lot

  173. I have the same problems that many of this comment participant have. The FORM method doesn´t work form me. My code:

    contact.html

    Name:
    Email:
    Send or Cancel

    process.php

    The process.php prints nothing. How can I fix this problem? Thanks.

  174. I have the same problems that many of this comment participant have. The FORM method doesn´t work form me. My code:

    contact.html

    Name:
    Email:
    Send or Cancel

    process.php

    The process.php prints nothing. How can I fix this problem? Thanks.

  175. Does the SWF popup work on top of other Flash content in all browsers, or will they fight for attention frame by frame?

    Cheers for a great library. If it works for Flash, I will be set.

  176. Instantiate 1 by 1:

    Necesito crear un vinculo en una animacion flash que me abra una ventanita de lightwindow, y no se como hacerlo con el flash con el getURL? porfavor ayudenme.

    Gracias

  177. I am unable to view movies on the example page in firefox(2.0.0.3) on xp. Other than that, it’s great. Also, I had the same issue as Cris Tracy with the naming of the ‘container’ div/variable conflict. Didn’t track it down till I started over with a simpler test page with no divs.

    Great job and I hope the movie support becomes more robust!
    -shawn

  178. As someone else mentioned I think, to produce this bug open the site in firefox 2 and click the movie link (it should play), then open another tab same site and click the same movie link on the new tab and it’s just white… :(
    -shawn

  179. hi,
    do you have some manual of installation more appropriate for persons with basic knowledge of html?
    I am very interested in use this in my personal site but …
    The explanation on the lightwindow page assumes some experience of script install, and placement, thats is not my case,
    I use Dreamweaver.
    Can you help me?

    ps.sorry my english! ;)

  180. Jacob
    May 1st 2007

    I’m having trouble with long captions (on movies and images - I haven’t tested otherwise) being cutoff. The third line of the cation is cut in half, and nothing appears underneath that. I’ve tested with the same result in Omniweb, Camino, and Firefox. Is there any way around this?

    I realize it probably isn’t an issue for most, but the captions are entered by other folks on my site, so I’d like to be as flexible as possible.

    Thanks in advance for your help.

  181. Sicky
    May 1st 2007

    hello!

    sorry for my lang… is not perfect but ;)
    thanks for this big work… and kilobytes of code