User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 374,006 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,845 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 1070 | Replies: 4 | Solved
Reply
Join Date: Dec 2007
Posts: 5
Reputation: Atticus is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Atticus Atticus is offline Offline
Newbie Poster

Help LightWindow thingies

  #1  
Jan 1st, 2008
I am setting up a gallery using LightWindow or ThickBox.
I've added all the js & css files but the gallery will not work properly.
When I click on a thumbnail, the LightWindow or ThickBox is suppose to open and display the image, instead the image opens into a new window.

Please can someone help? What did I miss?

Thanks
Last edited by Atticus : Jan 1st, 2008 at 3:45 pm.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Nov 2007
Posts: 23
Reputation: chrelad is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 3
chrelad's Avatar
chrelad chrelad is offline Offline
Newbie Poster

Help Re: LightWindow thingies

  #2  
Jan 1st, 2008
Hi Atticus,

Couple things you can check:
  1. Open the site/page in IE/Firefox and check for JavaScript errors
  2. If #1 produces no errors, add a simple alert('Hello') to a section of the lightbox script that runs first
  3. If it doesn't run, and the alert resides in a function, make sure the function is being called
  4. Make sure the file is properly included using a <script></script> tag, place the tag at the very bottom of your page right before the closing <body> tag, append an alert('Hello'); to the end of the included file and it should pop up when the page loads.
  5. If the aforementioned alert doesn't show up, make sure the <script> tag has the type="text/javascript" attribute, that the file has read permissions, that the file page in the src="..." attribute is correct, and the tag has a closing tag and see if it works.
Reply With Quote  
Join Date: Dec 2007
Posts: 5
Reputation: Atticus is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Atticus Atticus is offline Offline
Newbie Poster

Re: LightWindow thingies

  #3  
Jan 1st, 2008
Originally Posted by chrelad View Post
Hi Atticus,

Couple things you can check:
  1. Open the site/page in IE/Firefox and check for JavaScript errors
  2. If #1 produces no errors, add a simple alert('Hello') to a section of the lightbox script that runs first
  3. If it doesn't run, and the alert resides in a function, make sure the function is being called
  4. Make sure the file is properly included using a <script></script> tag, place the tag at the very bottom of your page right before the closing <body> tag, append an alert('Hello'); to the end of the included file and it should pop up when the page loads.
  5. If the aforementioned alert doesn't show up, make sure the <script> tag has the type="text/javascript" attribute, that the file has read permissions, that the file page in the src="..." attribute is correct, and the tag has a closing tag and see if it works.


Thanks very much. The gallery is now working fine. I did check the js files but missed the css href="css/lightbox.css". Thanks again.
Reply With Quote  
Join Date: Nov 2007
Posts: 23
Reputation: chrelad is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 3
chrelad's Avatar
chrelad chrelad is offline Offline
Newbie Poster

Re: LightWindow thingies

  #4  
Jan 2nd, 2008
Cool beans and glad to hear it!

I'll remember to check for dependant files when dealing with any future JavaScript issues, something easily overlooked.

Thanks for teachin' me somethin' new today Atticus
Reply With Quote  
Join Date: Dec 2007
Posts: 5
Reputation: Atticus is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Atticus Atticus is offline Offline
Newbie Poster

Re: LightWindow thingies

  #5  
Jan 2nd, 2008
Originally Posted by chrelad View Post
Cool beans and glad to hear it!

I'll remember to check for dependant files when dealing with any future JavaScript issues, something easily overlooked.

Thanks for teachin' me somethin' new today Atticus



Thank you for the help. I also learn something new today.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb JavaScript / DHTML / AJAX Marketplace
Thread Tools Display Modes

Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 10:33 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC