Go Back   CodingForums.com > :: Client side development > JavaScript programming

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 12-09-2012, 10:25 PM   PM User | #1
3591wjr
New to the CF scene

 
Join Date: Sep 2012
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
3591wjr is an unknown quantity at this point
"identical" only one works.

http://www.zootgeist.com/allhouston/wc1.htm

http://www.zootgeist.com/allhouston/wc2.htm

I copied #2 from #1, and, I thought, only changed the image names.
I know my code is amateurish, and I know #2 has 23 items in array but only 19 are linked. But #2 works fine!?

I am hoping someone will note - by viewing source code, the GLARING mistake I haven't seen in 2 days.

Thanks.
3591wjr is offline   Reply With Quote
Old 12-09-2012, 11:22 PM   PM User | #2
AndrewGSW
Senior Coder

 
Join Date: Apr 2011
Location: London, England
Posts: 2,120
Thanks: 15
Thanked 354 Times in 353 Posts
AndrewGSW will become famous soon enough
See screenshot. I haven't looked beyond this error.

You should also validate your HTML.
Attached Thumbnails
Click image for larger version

Name:	error1.png
Views:	38
Size:	9.0 KB
ID:	11781  
__________________
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
Validate your HTML and CSS
AndrewGSW is offline   Reply With Quote
Old 12-09-2012, 11:30 PM   PM User | #3
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,237
Thanks: 59
Thanked 3,998 Times in 3,967 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
I give up. What is your question?

And what does "only 19 are linked" mean?

And the two pages do *NOT* look the same. wc2 has 4 images slopping over outside the boundaries. wc1 does not.

And wc1 doesn't work right, in any case. Click on some of the images and the wrong large image shows up (right one shows of for others).
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
Old Pedant is offline   Reply With Quote
Old 12-11-2012, 04:28 AM   PM User | #4
3591wjr
New to the CF scene

 
Join Date: Sep 2012
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
3591wjr is an unknown quantity at this point
I apologize for presenting you with such a mess.
I have cleaned up the distractions.
I am using Dreamweaver MX 2004 - and both pages show no html errors.
My question was;
One page will show an image when a thumbnail is clicked, whether they match - a larger image will appear. That is on wc1.htm
On wc2.htm, not picture appears at all.


thanks for your help. It is appreciated.
3591wjr is offline   Reply With Quote
Old 12-11-2012, 05:35 AM   PM User | #5
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,237
Thanks: 59
Thanked 3,998 Times in 3,967 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
Okay, for starters, don't believe anything NightmareStalker (the correct name for DreamWeaver, most agree) tells you about JavaScript. And certainly never trust it to write JS code for you.

That having been said, the best thing you can do for yourself is learn to use a JavaScript debugger. I am (mildly) partial to the one in Chrome. It has a few niceties that MSIE and FireBug for FireFox don't have.

Try it sometime. Bring up your page in Chrome, hit the F12 key, and then explore.

In the meantime, I took my own advice. And the problem is obvious. As Chrome reports:
Failed to load resource: the server responded with a status of 404 (Not Found) http://www.zootgeist.com/allhouston/...pg/21_4RJ7.png
Failed to load resource: the server responded with a status of 404 (Not Found) http://www.zootgeist.com/allhouston/...g/22_5WHWC.png
Failed to load resource: the server responded with a status of 404 (Not Found) http://www.zootgeist.com/allhouston/...pg/23_b206.png
Failed to load resource: the server responded with a status of 404 (Not Found) http://www.zootgeist.com/allhouston/...owloffruit.png
Failed to load resource: the server responded with a status of 404 (Not Found) http://www.zootgeist.com/allhouston/...25_bwstudy.png
Failed to load resource: the server responded with a status of 404 (Not Found) http://www.zootgeist.com/allhouston/...26_church1.png
Failed to load resource: the server responded with a status of 404 (Not Found) http://www.zootgeist.com/allhouston/..._coffeecup.png
Failed to load resource: the server responded with a status of 404 (Not Found) http://www.zootgeist.com/allhouston/...8_coffeet2.png
Failed to load resource: the server responded with a status of 404 (Not Found) http://www.zootgeist.com/allhouston/...eamRouleau.png
Failed to load resource: the server responded with a status of 404 (Not Found) http://www.zootgeist.com/allhouston/.../30_forest.png
Failed to load resource: the server responded with a status of 404 (Not Found) http://www.zootgeist.com/allhouston/...useandtree.png
Failed to load resource: the server responded with a status of 404 (Not Found) http://www.zootgeist.com/allhouston/..._landscape.png
Failed to load resource: the server responded with a status of 404 (Not Found) http://www.zootgeist.com/allhouston/...landscape2.png
Failed to load resource: the server responded with a status of 404 (Not Found) http://www.zootgeist.com/allhouston/...4_Luseland.png
Failed to load resource: the server responded with a status of 404 (Not Found) http://www.zootgeist.com/allhouston/...5_palesilo.png
Failed to load resource: the server responded with a status of 404 (Not Found) http://www.zootgeist.com/allhouston/..._redchurch.png
Failed to load resource: the server responded with a status of 404 (Not Found) http://www.zootgeist.com/allhouston/...7_redtrees.png
Failed to load resource: the server responded with a status of 404 (Not Found) http://www.zootgeist.com/allhouston/..._redtrees2.png
Failed to load resource: the server responded with a status of 404 (Not Found) http://www.zootgeist.com/allhouston/...hinesecamp.png
Failed to load resource: the server responded with a status of 404 (Not Found) http://www.zootgeist.com/allhouston/..._study0904.png
Failed to load resource: the server responded with a status of 404 (Not Found) http://www.zootgeist.com/allhouston/..._teaandcup.png
Failed to load resource: the server responded with a status of 404 (Not Found) http://www.zootgeist.com/allhouston/.../42_teaset.png
Failed to load resource: the server responded with a status of 404 (Not Found) http://www.zootgeist.com/allhouston/.../43_tncup2.png

In other words, NOT ONE SINGLE ONE of your larger images can be *FOUND*!

Go ahead. Try it youself. Just hit the uRLs. SUch as
http://www.zootgeist.com/allhouston/...pg/21_4RJ7.png

Did you forget to upload those images to your server?
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
Old Pedant 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 05:59 PM.


Advertisement
Log in to turn off these ads.