This is a discussion on "help needed for non coder!" within the JavaScript Forum section. This forum, and the thread "help needed for non coder! are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
help needed for non coder!
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Hi, I am trying to implement lightbox2 on a site. I have installed all the files, set up a dummy image, included the relevant code in the href but it just opens in a new window. All the files can be found here www.treehuggercards.co.uk/lightbox.htm
any help would be appreciated |
|
|
|
||||
|
Re: help needed for non coder!
The only thing I can think of is that your page is .htm. Try making it .html. It's a long shot but apart from that I cannot see anything wrong and I myself have set up a lightbox. Hmm.
EDIT-Make the script links like they are in the lightbox test page.
Jack
__________________
Resources Administrator
Grilling Gurus - Interviews with the Best Web Designers and Developers in the Industry Got a Question for Ryan Carson and his Web Design/Development team Carsonified? Jack Franklin - My Blog (It's a Pen in My Mouth BTW)
Last Blog Entry: My Latest Project - Grilling Gurus... (Jun 11th, 2008)
|
|
|||
|
Re: help needed for non coder!
Hi, Thanks for the reply.
I have tried changing it to .html without any joy. I have also tried the links with and without the [ js/ ], no joy. I have all the files in the httpdocs folder as i have no access to the actual root on the server, is this the corect location? I removed the [ js/ ] element in the links because I asumed the example had the js files in a different location, however I will try replacing them. Fingers crossed UPDATE: No joy with [ js/ ] in the links! |
|
||||
|
Re: help needed for non coder!
if the JS files are in the root of your website
link like: /lightbox.js
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
||||
|
Re: help needed for non coder!
Are you sure that the files are being included? Are you getting any javascript errors? Have you configured everything like it says in the installation guide? (the lightbox version that I use needs a call to the "initLightBox()" funtion in the onload tag of the body...)
Systematic debugging! Eliminate possible errors systematically!
Last Blog Entry: 10 Reasons Why My Laptop Is Better Than Your Girlfriend (Dec 15th, 2007)
|
|
|||
|
Re: help needed for non coder!
Quote:
I am not sure the files are being included - everyone talks about the [root] of the site, as i am unable to get access to the server root the js files live in a folder called [ js ] which is in the httpdocs folder on the server along with the .css and lightbox.html file. The link from the .html file is constructed thus -<script type="text/javascript" src="js/prototype.js"></script>Is this correct? I am not getting any javascript errors [i wish] at least then i would know it was talking to the js files! How do I do the call to the "initLightBox()" funtion in the onload tag of the body? Do I have to add or change anything in the .js files? Thanks for the help guys |
|
||||
|
Re: help needed for non coder!
Quote:
See above. But before you just do that, read the documentation for your lightbox version. Like I said, that's just my version that requires that. I know that some others don't.
Last Blog Entry: 10 Reasons Why My Laptop Is Better Than Your Girlfriend (Dec 15th, 2007)
|
|
|||
|
Re: help needed for non coder!
Quote:
I have done the test with same result! The [js] files are now in a separate [js] folder, so is this path now correct with the .html file in httpdocs: <script type="text/javascript" src="js/prototype.js"></script> I have also added this <body onload="initLightbox()"> thanks |
|
||||
|
Re: help needed for non coder!
I'm using a modified version of v2....
Quote:
You could also use an absolute path:
Last Blog Entry: 10 Reasons Why My Laptop Is Better Than Your Girlfriend (Dec 15th, 2007)
|
|
|||
|
Re: help needed for non coder!
Quote:
Well progress if only small! The test js script gets called when page loads. So at least i know the path is correct because the test script works which means it has to be something in the javascript?? or do i need to call it in the body tag? thanks again |
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PHP Coder needed . . . | ajsiv | Job Opportunities | 0 | Jan 25th, 2007 19:32 |
| php coder needed!!! | iceman | Job Opportunities | 0 | Aug 2nd, 2006 15:09 |
| php coder needed | iceman | PHP Forum | 0 | Aug 2nd, 2006 15:03 |
| php coder needed | iceman | Introduce Yourself | 1 | Aug 2nd, 2006 00:53 |
| Needed Coder. | Ashleigh04 | PHP Forum | 0 | Jun 14th, 2006 19:09 |