David Crisler

Member Since 04 Dec 2009
Offline Last Active Dec 04 2009 10:04 AM
-----

Topics I've Started

Ch1 - Where Does "imageid" Come From?

04 December 2009 - 10:04 AM

The first part of thumbnails.js takes care of the thumbnails/larger image relationship. I don't see "ImageID" mentioned in that part of the code. The next chunk of code deals with creating the request object. Again, no "ImageID". The 3rd part configures the request object and all of a sudden we have "ImageID", which is pretty important as it gets passed via GET in the url to the server-side script to identify which image needs the description.

My question is where did it come from? Is it a variable or some kind of JavaScript method/object? I see it referenced in the PHP file, but I don't understand how it is created from thin air in the JavaScript.

Any help solving this issue would be greatly appreciated.

David C.

"