7956 Posts in 1394 Topics by 945 members
Page: 1 2
|Go to End|
4 March 2010 at 6:59am
The only JS "error" is the warning: "reference to undefined property jQuery.cache[id][name]" in one of the jQuery library files.
Another look at the rendered code that Chrome sees, though, and I notice that only the opening anchor tag is created and filled. After that, it ends the list with neither the img tag nor the closing tag for the anchor. I assume this is a symptom, but it might give some insight.
4 March 2010 at 7:23am
There's a file called imagegallery_init.js that shows all of the images on body load. I suspect that's what's failing. The purpose of the script is to prevent people from clicking an image before the lightbox handlers have been attached. I would investigate that script and see if it's executing correctly.
4 March 2010 at 8:04am
Okay, this is interesting... I revisited the site using Chrome to see if I could see if that JS file was executing correctly, and this time, the code showed all of the images (and doesn't appear to be using my template), even though it only did one at a time earlier (I even tested with multiple images in the gallery). It generates the code for the entire list item, img tag and closing tags and all, when it does this.
I hadn't changed anything since I posted last, but had to clear Chrome's cache and do a ?flush=all on the page for it to use the right template (both for my last response and for now). And, of course, it's now generating the list item correctly, though sans the "gallery-layout loaded" class assignments.
So far, this has been an issue exclusive to Chrome. The imagegallery_init.js loads correctly in Firefox, but not in Chrome for some reason.
(On a side note, it appears that a line in your ImageGallery.css file is missing a semicolon. The color declaration in "#pagination-imagegallery a:link, #pagination-imagegallery a:visited".)
4 March 2010 at 8:39am
The single = is correct, because that line is testing whether the assignment is true. Do you have a link to the project?
4 March 2010 at 9:23am
Well, the image gallery demo works in Chrome, but yours doesn't. Yours works in every other browser I try, though.
It's gotta be a JS conflict of some sort. Try removing those two scripts, "menuGoto" and "selectItem"
4 March 2010 at 10:03am
That did it. Though it's interesting that those scripts loaded, as they shouldn't have (at least, it wasn't my intent to have them load).
Those scripts are part of a block of code that is set to only load if the URLSegment is one of a handful of specific segments (and the galleries aren't among that group of pages). Does the template JS call ignore template if, then?
Page: 1 2
|Go to Top|