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!!
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!!
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
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
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:
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.HTML Code:<a href="http://www.tangledinthe.net/satisfaction.html" class="lbOn">
The demo uses this (which I have some problems with, but that's another story):
But, your page uses just: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">
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:HTML Code:<html>
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
What do you mean the relative path is used, rather than the actual or direct path?
They do it like this:
isnt that the same?Code:<a href="form.html" class="lbOn">Email This</a>
This is a relative path (the part in red):
and this is an absolute path:Code:<a href="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.Code:<a href="http://www.domain.com/form.html" class="lbOn">Email This</a>
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
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.
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
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:
And 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.
I chose the third (highlighted) option and this cleared up the problem, give it a shot.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’ )
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
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