Page 1 of 4 123 ... LastLast
Results 1 to 10 of 39

Thread: Light Box Question

  1. #1
    Join Date
    Jan 2007
    Posts
    181
    Thanks
    5
    Thanked 3 Times in 3 Posts

    Default Light Box Question

    1) Script Title: Light Box

    2) Script URL (on DD): http://dynamicdrive.com/dynamicindex...box2/index.htm



    I was wondering if this script could load a page in the light box effect, rather than just an image.


    thanks!!

  2. #2
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    You would want to look into using "Lightbox Gone Wild" for this.

    Demo: http://particletree.com/examples/lightbox/
    Code: http://particletree.com/features/lightbox-gone-wild/

    Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  3. #3
    Join Date
    Jan 2007
    Posts
    181
    Thanks
    5
    Thanked 3 Times in 3 Posts

    Default

    Hmm, i did everything right (at least i think i did) and it doesn't seem to be working...

    http://www.tangledinthe.net/indexnew.htm

    if you mouse over about and click on satisfaction you'll see what i mean

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    I'm not sure if it makes a difference, but in the demo, the relative path is used for links. You've used the absolute path:

    HTML Code:
    <a href="http://www.tangledinthe.net/satisfaction.html" class="lbOn">
    Also, I am assuming that you've used the distribution files for the 'gone wild' version and not kept any of the files from the regular lightbox hanging around.

    The demo uses this (which I have some problems with, but that's another story):

    HTML Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    But, your page uses just:

    HTML Code:
    <html>
    This may or may not make a difference. The use of other scripts on the page may be conflicting. The server may simply not allow this script, as am getting a server displayed error instead of the requested page:

    Method Not Allowed
    The requested method POST is not allowed for the URL /satisfaction.html.

    Apache/1.3.36 Server at www.tangledinthe.net Port 80
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Jan 2007
    Posts
    181
    Thanks
    5
    Thanked 3 Times in 3 Posts

    Default

    What do you mean the relative path is used, rather than the actual or direct path?

    They do it like this:

    Code:
    <a href="form.html" class="lbOn">Email This</a>
    isnt that the same?

  6. #6
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    This is a relative path (the part in red):

    Code:
    <a href="form.html" class="lbOn">Email This</a>
    and this is an absolute path:

    Code:
    <a href="http://www.domain.com/form.html" class="lbOn">Email This</a>
    Perhaps if you try using just a relative path that would fix the problem (although, it probably won't). Also, take the advise of John about the original lightbox script and other scripts conflicting with it.

    Anyways, hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  7. #7
    Join Date
    Jan 2007
    Posts
    181
    Thanks
    5
    Thanked 3 Times in 3 Posts

    Default

    I tried using a relative path before i used an absolute. As far as using other light box scripts, i only use the ones that were issued in the .zip file.

    Ill change it back to a rel path, but i dont think it will help.



    EDIT: Changed it to a rel path and it is still not working.

  8. #8
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    I just finished trying out the demo for this script locally and on three different servers. I also tried out the tangledintheweb version locally and on one server.

    Both the demo and the tiw version worked locally. Neither version worked on any server I tried them on. This leads me to believe that this is probably the result of some relatively new and generally adopted security measure or measures in use on servers. So, unless I am missing something, or there is a fix for this around, LBGW is dead for the time being. There is another implementation of this around, I think, but I will need to check it out first to be sure it works.
    Last edited by jscheuer1; 06-10-2007 at 03:20 PM.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  9. #9
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    OK, that other implementation was only a regular lightbox clone even though it was mentioned in the LBGW comments section as if it were a GW type implementation. However, reading further on in the comments section of the LBGW page yielded this:

    Hey all,
    First off, great code.

    Ive used it before on a apache based server and no problem, but I, unfortunatly, am running on IIS now and I am getting the HTTP Error 405 error. I read about a suggested fix, but I am unsure where to make this fix in the code.
    And this:

    The HTTP 405 error occurs because IIS is configured to disallow posting to HTML files. Possible workarounds:

    * ask your ISP to change their IIS configuration;
    * rename your files to .php instead of .html;
    * hack the lightbox.js file to use GET instead of POST ( line 126: change ‘post’ to ‘get’ )
    I chose the third (highlighted) option and this cleared up the problem, give it a shot.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  10. #10
    Join Date
    Jan 2007
    Posts
    181
    Thanks
    5
    Thanked 3 Times in 3 Posts

    Default

    How would i go about changing the js? i dont know much about js...

    Do just open it in dreamweaver and look for where it sais POSt and change it to GET


    thanks!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •