Reply
Old 10-25-2009, 08:22 PM Lightbox 2.04 Help!
Novice Talker

Posts: 8
Name: Gretchen
Trades: 0
Hello. I'm new to Lightbox and not so good of an expert to Javascript. I'm having trouble w/ the coding. I think its the problem with Javascript but I can't figure out whats the problem. When clicking on the thumb, it opens a new page. This is just a sample image size before I make better thumbnails. Here is the link:

http://creativepink.net/packaging.php

Thanks!
gretchi is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 10-26-2009, 10:07 PM Re: Lightbox 2.04 Help!
Novice Talker

Posts: 8
Name: Gretchen
Trades: 0
Is there a reason why no one is answering???! I'm getting a little irritated and I don't have time to wait! This is my portfolio site that I'm trying to get up and running! Thanks.
gretchi is offline
Reply With Quote
View Public Profile
 
Old 10-27-2009, 02:58 PM Re: Lightbox 2.04 Help!
World's Avatar
Extreme Talker

Posts: 165
Location: Santa Monica, CA
Trades: 0
Check your code.

One little typing error, and everything will blow up.

In this case, the suppression of the link didn't work, which is key for images on the same page.

But the typo could sit anywhere.
World is offline
Reply With Quote
View Public Profile
 
Old 10-27-2009, 08:37 PM Re: Lightbox 2.04 Help!
Novice Talker

Posts: 8
Name: Gretchen
Trades: 0
There's always a typo! But I can't find it, been looking for it all day, ugh!
gretchi is offline
Reply With Quote
View Public Profile
 
Old 10-28-2009, 01:59 AM Re: Lightbox 2.04 Help!
World's Avatar
Extreme Talker

Posts: 165
Location: Santa Monica, CA
Trades: 0
Do you have a book or an online tutorial that shows you how to do it?

I'm starting out in Javascript, too, and when those books or tutorials call something easy it usually means it's easy for a programmer.

If you have never done any Javascript at all, you need to learn what can be a typo.

If you write [ instead of ( or {, the whole program won't work.

Same goes if you leave out an ' or if you write a , instead of a ;.

I'm currently putting my first slide show/gallery in Javascript together, but I have already worked my way through 250 pages of a book.
World is offline
Reply With Quote
View Public Profile
 
Old 10-28-2009, 02:46 AM Re: Lightbox 2.04 Help!
Novice Talker

Posts: 8
Name: Gretchen
Trades: 0
I took Javascript 8 years ago for 6 weeks and I had a hard time learning that fast. I know it has to have those special characters but I'm still new at it. I'm not wanting to be a web developer, just a web designer. I'm just trying to show the best way to present my design work and show to employers.

The lightbox tutorial and download is from this site:

http://www.huddletogether.com/projects/lightbox2/

I dont know about you but this is probably not the best way to tell someone how to set it up, although it would be easy for web developers, obviously.

250 pages is a lot!! Good luck w/ that!!

Thanks for the little reminders and I'll have to look at these when I have no work at my job lol I need a break from looking my coding now! lol
gretchi is offline
Reply With Quote
View Public Profile
 
Old 10-28-2009, 03:16 AM Re: Lightbox 2.04 Help!
World's Avatar
Extreme Talker

Posts: 165
Location: Santa Monica, CA
Trades: 0
I can tell you, those 250 pages were from a "Missing Manual" Javascript book, that is so miserably written it's not helping a lot.

I am simply trying to get a web gallery as it written on my web page.

Doesn't work.

The problem has to do with the relationship of Javascript code and the CSS file connected to the html document in which the javascript code is embedded.

Missing manual writer Farland didn't even mention how Javascript and CSS has to work together.

Therefore, my images also open on a separate page.

But that's usual when you start this kind of thing. First you just fix and fix and it still doesn't work.

So, I'm currently examining the relation between the variables mentioned in the Javascript and the same variables mentioned in the CSS.

Too good, that slightly clueless missing manual writer McFarland spent endless pages on regular expressions (a kind of analytical, structural description of different kinds of file names), but forgets to bind CSS and Javascript together. After all, these two are very much connected, and JQuery is Javascript that's very CSS oriented.

But that's often the case with bad books. Endless pages of blablabla, and the key moments are brushed over, because these key moments are difficult to describe.

So, you may feel alone, but you're not alone.

Last edited by World; 10-28-2009 at 07:36 AM..
World is offline
Reply With Quote
View Public Profile
 
Old 10-28-2009, 07:35 AM Re: Lightbox 2.04 Help!
World's Avatar
Extreme Talker

Posts: 165
Location: Santa Monica, CA
Trades: 0
Got it to work.

I erased two lines of code of Farlands script.

Then I had an error of the special kind: the js gallery was in the wrong place.

So, this might be a problem you might have to.

Check the path to the jQuery library.

PS: not that it took me all those hours. I dropped it at midnight, watched two episodes of "Lost", and then returned and had it figured out within half an hour.

Last edited by World; 10-28-2009 at 07:37 AM..
World is offline
Reply With Quote
View Public Profile
 
Old 10-30-2009, 01:50 AM Re: Lightbox 2.04 Help!
Novice Talker

Posts: 8
Name: Gretchen
Trades: 0
so you're saying that i need all of the lightbox stuff in one folder and also put the gallery html/php/my style css in that same folder??
gretchi is offline
Reply With Quote
View Public Profile
 
Old 10-30-2009, 05:23 AM Re: Lightbox 2.04 Help!
World's Avatar
Extreme Talker

Posts: 165
Location: Santa Monica, CA
Trades: 0
You need the plug-in, the html and css for the page, and you need the jQuery library in your plug-in folder, and a link from your header to that library. Otherwise, lightbox couldn't function.
World is offline
Reply With Quote
View Public Profile
 
Old 10-30-2009, 11:23 AM Re: Lightbox 2.04 Help!
Novice Talker

Posts: 8
Name: Gretchen
Trades: 0
i'll have to look since its my first time running my own site and not being hosted by someone else.

but whats odd is that the tutorial i got it from, had their html of the tutorial in the zip file and it works. thats why i was asking about having the same organization of the folders. i'll check w/ the plugin and jquery. thanks!
gretchi is offline
Reply With Quote
View Public Profile
 
Old 10-30-2009, 11:37 AM Re: Lightbox 2.04 Help!
webcosmo's Avatar
Ultra Talker

Posts: 267
Location: Boston, MA
Trades: 1
One of the things I have noticed you have
rel='lightbox'

of your link. I think this should be rel="lightbox". try that please.
__________________
JOIN US * FAST GROWING WEBMASTER FORUM * JOIN US
Join the fun loving, helpful community of webmasters
Free Classified Ads
webcosmo is offline
Reply With Quote
View Public Profile Visit webcosmo's homepage!
 
Old 10-30-2009, 12:05 PM Re: Lightbox 2.04 Help!
Novice Talker

Posts: 8
Name: Gretchen
Trades: 0
Quote:
Originally Posted by webcosmo View Post
One of the things I have noticed you have
rel='lightbox'

of your link. I think this should be rel="lightbox". try that please.
i actually tried that last nite and didn't work. i just tried again and still not working. is that the only place to change the quotes?
gretchi is offline
Reply With Quote
View Public Profile
 
Old 10-30-2009, 05:18 PM Re: Lightbox 2.04 Help!
Super Talker

Posts: 100
Trades: 0
The error is in your <head></head>
the code
Code:
 
<script language="JavaScript">


<script type="text/javascript" src="http://creativepink.net/js/prototype.js"></script>
<script type="text/javascript" src="http://creativepink.net/js/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="http://creativepink.net/js/lightbox.js"></script>




</script>
is wrong.
Code:
<script type="text/javascript" src="http://creativepink.net/js/prototype.js"></script>
<script type="text/javascript" src="http://creativepink.net/js/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="http://creativepink.net/js/lightbox.js"></script>
should be out of <script type="text/javascript"></script>.

Last edited by weker; 10-30-2009 at 05:20 PM..
weker is offline
Reply With Quote
View Public Profile
 
Old 10-30-2009, 06:08 PM Re: Lightbox 2.04 Help!
webcosmo's Avatar
Ultra Talker

Posts: 267
Location: Boston, MA
Trades: 1
I don't know the details of your code. I did a quick test with the code below, and it worked.

Code:
<html>
<head>
    <!--lightbox2 script load start-->
    <script type="text/javascript" src="lightbox2/js/prototype.js"></script>
    <script type="text/javascript" src="lightbox2/js/scriptaculous.js?load=effects,builder"></script>
    <script type="text/javascript" src="lightbox2/js/lightbox.js"></script>
    <link rel="stylesheet" href="lightbox2/css/lightbox.css" type="text/css" media="screen" />
    <!--lightbox 2 script load end-->
</head>
<body>

<h2>lightbox test</h2>

<a href="http://www.creativepink.net/images/bag.jpg" rel="lightbox" title="my caption"><img src="http://www.creativepink.net/images/bag-thumb.jpg"></a>

</body>
</html>
__________________
JOIN US * FAST GROWING WEBMASTER FORUM * JOIN US
Join the fun loving, helpful community of webmasters
Free Classified Ads
webcosmo is offline
Reply With Quote
View Public Profile Visit webcosmo's homepage!
 
Old 10-30-2009, 06:11 PM Re: Lightbox 2.04 Help!
webcosmo's Avatar
Ultra Talker

Posts: 267
Location: Boston, MA
Trades: 1
I just noticed this on your head tag. You are enclosing your calls to some external javascript files within <javascript> tags. This is causing the page fail to load those lightbox scripts. thats why its not working.

Code:
<script language="JavaScript">
<script type="text/javascript" src="http://creativepink.net/js/prototype.js"></script>
<script type="text/javascript" src="http://creativepink.net/js/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="http://creativepink.net/js/lightbox.js"></script>
</script>
Take off the parts on bold above.
__________________
JOIN US * FAST GROWING WEBMASTER FORUM * JOIN US
Join the fun loving, helpful community of webmasters
Free Classified Ads
webcosmo is offline
Reply With Quote
View Public Profile Visit webcosmo's homepage!
 
Old 10-30-2009, 06:56 PM Re: Lightbox 2.04 Help!
Novice Talker

Posts: 8
Name: Gretchen
Trades: 0
OMG!! Its working!!!!!! lol thank you guys so much!!! i always thought every javascript had to start w/ those tags!!!! i had to stop and think how in the heck those got in there and i realized they were from dreamweaver. strange. i'm gonna have to learn what script needs an opening and closing tag! lol

thanks again!!!
gretchi is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Lightbox 2.04 Help!
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.18169 seconds with 13 queries