CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   JavaScript programming (http://www.codingforums.com/forumdisplay.php?f=2)
-   -   "identical" only one works. (http://www.codingforums.com/showthread.php?t=283865)

3591wjr 12-09-2012 10:25 PM

"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.

AndrewGSW 12-09-2012 11:22 PM

1 Attachment(s)
See screenshot. I haven't looked beyond this error.

You should also validate your HTML.

Old Pedant 12-09-2012 11:30 PM

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).

3591wjr 12-11-2012 04:28 AM

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.

Old Pedant 12-11-2012 05:35 AM

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?


All times are GMT +1. The time now is 08:27 PM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.