Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-30-2012, 11:13 PM   PM User | #1
lmorales
Regular Coder

 
Join Date: Mar 2011
Posts: 192
Thanks: 8
Thanked 1 Time in 1 Post
lmorales is an unknown quantity at this point
Image not loading on website

http://cfferns.com/products-page/ter...en-assortment/

The rest of the images on this site seem to load, but this one won't and Im not sure why. I thought it was the name of the file as this issue has popped up before and it was a conflict in naming, but renaming it doesnt seem to help.

Last edited by lmorales; 11-30-2012 at 11:55 PM..
lmorales is offline   Reply With Quote
Old 12-01-2012, 12:06 AM   PM User | #2
LearningCoder
Regular Coder

 
LearningCoder's Avatar
 
Join Date: Jan 2011
Location: The Pleiades
Posts: 849
Thanks: 67
Thanked 28 Times in 28 Posts
LearningCoder is an unknown quantity at this point
I've had this very same issue actually and when I finally got the the bottom of it, it seemed I was using someImage.jpg when it should have been someImage.JPG. As you can imagine it was such a hard mistake to find.

I know it is a long shot, but you never know.

Regards,

LC.
LearningCoder is offline   Reply With Quote
Old 12-01-2012, 12:13 AM   PM User | #3
aaronhockey_09
Regular Coder

 
Join Date: Dec 2010
Posts: 411
Thanks: 21
Thanked 55 Times in 55 Posts
aaronhockey_09 is an unknown quantity at this point
You have not told us which image is not loading, or where it is suppose 2 be.
aaronhockey_09 is offline   Reply With Quote
Old 12-01-2012, 12:56 AM   PM User | #4
LearningCoder
Regular Coder

 
LearningCoder's Avatar
 
Join Date: Jan 2011
Location: The Pleiades
Posts: 849
Thanks: 67
Thanked 28 Times in 28 Posts
LearningCoder is an unknown quantity at this point
Its the small thumbnail type image on the page, if you click it it's meant to come up in a box (kinda like a prettyPhoto effect) but it just keeps saying 'Loading', whereas if you browse the site and find any other image, they load ok.

Can you post the code to the images which pop up?

Regards,

LC.
LearningCoder is offline   Reply With Quote
Old 12-01-2012, 12:57 AM   PM User | #5
aaronhockey_09
Regular Coder

 
Join Date: Dec 2010
Posts: 411
Thanks: 21
Thanked 55 Times in 55 Posts
aaronhockey_09 is an unknown quantity at this point
ohh , so the image wont load in the lightbox,
i see now.

From his description i thought he meant an image just wouldn't display right on the page.
aaronhockey_09 is offline   Reply With Quote
Old 12-01-2012, 01:02 AM   PM User | #6
aaronhockey_09
Regular Coder

 
Join Date: Dec 2010
Posts: 411
Thanks: 21
Thanked 55 Times in 55 Posts
aaronhockey_09 is an unknown quantity at this point
I can only assume that somehow on this page the javascript isnt loaded properly. As if i try that exact picture on a different page, it loads fine.
aaronhockey_09 is offline   Reply With Quote
Old 12-01-2012, 01:03 AM   PM User | #7
LearningCoder
Regular Coder

 
LearningCoder's Avatar
 
Join Date: Jan 2011
Location: The Pleiades
Posts: 849
Thanks: 67
Thanked 28 Times in 28 Posts
LearningCoder is an unknown quantity at this point
I thought that spent a while thinking which image he meant

Judging by his src attribute it looks like he might be pulling the image from a database or definitely another source. And his href of where the image leads to is a directory.

I'm not totally sure of your cause but maybe check the image name in the 'href' against the image name which loads up in the lightbox.(which i'm sure it must be declared somewhere else)..

Regards,

LC.
LearningCoder is offline   Reply With Quote
Old 12-01-2012, 01:04 AM   PM User | #8
lmorales
Regular Coder

 
Join Date: Mar 2011
Posts: 192
Thanks: 8
Thanked 1 Time in 1 Post
lmorales is an unknown quantity at this point
Sorry I wasnt more specific, its a wordpress page, and I think its an issue with the shopping cart... Heres the code Im seeing

Code:
			<div class='breadcrumb'>
			<a href='http://cfferns.com/products-page/'>Central Florida Ferns</a> &raquo;
							 	   
					<a href='http://cfferns.com/products-page/terrariums/'>Terrariums</a> &raquo;
				 
							 
					2&quot; Terrarium &amp; Mini Garden Assortment				 
					</div>
		
		
	<div>
						<div>
				<div class="textcol">
										<div class="imagecol">
						 	   
								<a rel="2_Terrarium_&amp;_Mini_Garden_Assortment" class="thickbox preview_link" href="http://cfferns.com/wp-content/uploads/wpsc/product_images/Terranium_Assortment-2.jpg">
									<img class="product_image" id="product_image_85" alt="2&quot; Terrarium &amp; Mini Garden Assortment" title="2&quot; Terrarium &amp; Mini Garden Assortment" src="index.php?image_id=142&amp;width=128&amp;height=128"/>
								</a>
						 
					</div>
					 
		
					<div class="producttext">
						<h2 class="prodtitles"><span>2&quot; Terrarium &amp; Mini Garden Assortment</span><a class='wpsc_edit_product' href='http://cfferns.com/wp-admin/admin.php?page=wpsc-edit-products&amp;product_id=85'>Edit</a></h2>
lmorales is offline   Reply With Quote
Old 12-01-2012, 02:26 AM   PM User | #9
LearningCoder
Regular Coder

 
LearningCoder's Avatar
 
Join Date: Jan 2011
Location: The Pleiades
Posts: 849
Thanks: 67
Thanked 28 Times in 28 Posts
LearningCoder is an unknown quantity at this point
Where does this 'src' lead to?

Code:
src="index.php?image_id=142&amp;width=128&amp;height=128"
Because this is the initial image which is being shown on the page, so it could be that the 'correct' image name is located here, which could be different from this one:

Terranium_Assortment-2.jpg

Kind regards,

LC.
LearningCoder is offline   Reply With Quote
Old 12-01-2012, 07:08 AM   PM User | #10
lmorales
Regular Coder

 
Join Date: Mar 2011
Posts: 192
Thanks: 8
Thanked 1 Time in 1 Post
lmorales is an unknown quantity at this point
Im not sure, I did not write the code, this is a wordpress site, I just have to fix it . Thats one of the reasons its kinda tricky.
lmorales is offline   Reply With Quote
Old 12-01-2012, 01:33 PM   PM User | #11
LearningCoder
Regular Coder

 
LearningCoder's Avatar
 
Join Date: Jan 2011
Location: The Pleiades
Posts: 849
Thanks: 67
Thanked 28 Times in 28 Posts
LearningCoder is an unknown quantity at this point
Ahh it's kinda tricky to help you bud because without the access to where the lightbox file is located, I'm not sure if it is the file name. It could be something completely different to be honest but I remembered having a very similar issue so I thought I may be able to help you out.

Regards,

LC.
LearningCoder is offline   Reply With Quote
Old 12-01-2012, 01:58 PM   PM User | #12
DanInMa
Senior Coder

 
DanInMa's Avatar
 
Join Date: Nov 2010
Location: Salem,Ma
Posts: 1,307
Thanks: 12
Thanked 204 Times in 204 Posts
DanInMa is on a distinguished road
ok, you are getting an error in console ( if you have no idea what im talking about, check out some of the links in my sig one is a debugging tutorial)

PHP Code:
ErrorSyntax errorunrecognized expression: [rel=2_Terrarium_&_Mini_Garden_Assortment]
http://cfferns.com/wp-includes/js/jquery/jquery.js?ver=1.7.1
Line 3 
this means the object is being referenced incorrectly somehow or it could be an issue with the version of jquery, I'm trying to figure it out.
__________________
- Firebug is a web developers best friend! - Learn it, Love it, use it!
- Validate your code! - JQ/JS troubleshooting
- Using jQuery with Other Libraries - Jslint for Jquery/other JS library users
DanInMa is offline   Reply With Quote
Old 12-01-2012, 02:11 PM   PM User | #13
LearningCoder
Regular Coder

 
LearningCoder's Avatar
 
Join Date: Jan 2011
Location: The Pleiades
Posts: 849
Thanks: 67
Thanked 28 Times in 28 Posts
LearningCoder is an unknown quantity at this point
Just a thought but this line triggered my memory of prettyPhoto.
[rel=2_Terrarium_&_Mini_Garden_Assortment]

The array [rel=blabla] is used in the CSS of the prettyPhoto to determine the image to show. (or something similar, it's been a year or so since I last used prettyPhoto).

I'm clutching at straws but the error that Dan has found could well be the issue.

Good luck with it dude!

Regards,

LC.
LearningCoder is offline   Reply With Quote
Old 12-01-2012, 02:11 PM   PM User | #14
DanInMa
Senior Coder

 
DanInMa's Avatar
 
Join Date: Nov 2010
Location: Salem,Ma
Posts: 1,307
Thanks: 12
Thanked 204 Times in 204 Posts
DanInMa is on a distinguished road
try removing the rel attribute from the anchor link. I believe you should only be using a rel attribute with thickbox if it's part of a gallery, and this is a single image. Since your error is related to the rel attribute in the console, this must have something to do with it.
__________________
- Firebug is a web developers best friend! - Learn it, Love it, use it!
- Validate your code! - JQ/JS troubleshooting
- Using jQuery with Other Libraries - Jslint for Jquery/other JS library users
DanInMa is offline   Reply With Quote
Old 12-01-2012, 02:13 PM   PM User | #15
DanInMa
Senior Coder

 
DanInMa's Avatar
 
Join Date: Nov 2010
Location: Salem,Ma
Posts: 1,307
Thanks: 12
Thanked 204 Times in 204 Posts
DanInMa is on a distinguished road
Quote:
Originally Posted by LearningCoder View Post
Just a thought but this line triggered my memory of prettyPhoto.
[rel=2_Terrarium_&_Mini_Garden_Assortment]

The array [rel=blabla] is used in the CSS of the prettyPhoto to determine the image to show. (or something similar, it's been a year or so since I last used prettyPhoto).

I'm clutching at straws but the error that Dan has found could well be the issue.

Good luck with it dude!

Regards,

LC.
nope.


if you look at the thickbox.js code you will find it uses this.href to get the value of the the image to display, and the rel attribute to determine if the image is part of a gallery ( basically a group of links with the same rel attribute)
__________________
- Firebug is a web developers best friend! - Learn it, Love it, use it!
- Validate your code! - JQ/JS troubleshooting
- Using jQuery with Other Libraries - Jslint for Jquery/other JS library users
DanInMa is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 09:41 AM.


Advertisement
Log in to turn off these ads.