CookieMonster
Posts: 25
Joined: Sun Feb 15, 2015 6:03 am

Highslide id problem

Should Highslide have a problem if an img tag contains an id ? I'm experiencing this problem whereas when I click the image it loads, not in a highslide window ?
MisterNeutron
Posts: 440
Joined: Sun Aug 18, 2013 11:20 am

Re: Highslide id problem

No, that's no problem at all. In fact, in my standard implementation of Highslide, all of the <img> tags have ID's
CookieMonster
Posts: 25
Joined: Sun Feb 15, 2015 6:03 am

Re: Highslide id problem

It shouldn't be a problem, I can't figure out why, when clicking on an image, the image doesn't load in a highslide window, instead full screen. I've got the script in the head, and gave the img src the class=highslide ? Arghh.
MisterNeutron
Posts: 440
Joined: Sun Aug 18, 2013 11:20 am

Re: Highslide id problem

With the information that you've provided, my conclusion is that there's something else wrong on the page.
CookieMonster
Posts: 25
Joined: Sun Feb 15, 2015 6:03 am

Re: Highslide id problem

I removed highslide from one img tag, and attempted to try another lightbox, after failed attempts as some of these lightboxes are, well, it appears as though the author releases them, and don't care about them afterwards.

Anyhow, I had to revert back to highslide and now it isn't working as it should.

highslide.js is before highslide.css followed by my script. Even if my script is not working, which I strongly believe at this point, highslide should still work regardless.
MisterNeutron
Posts: 440
Joined: Sun Aug 18, 2013 11:20 am

Re: Highslide id problem

Sorry, but I'm not going to spend my time guessing.
CookieMonster
Posts: 25
Joined: Sun Feb 15, 2015 6:03 am

Re: Highslide id problem

Right, code example :)

Code: Select all

<p class="imgbox left">
                  <a href="images/paperpilelarge.jpg" class="highslide">
                   <img src="/wdp/wip/images/paperpile.png" id="img_a" alt="PaperPile Image" title="Click to enlarge">
                </a>
                <span>&nbsp;</span>
            </p>
MisterNeutron
Posts: 440
Joined: Sun Aug 18, 2013 11:20 am

Re: Highslide id problem

You're posting only one code snippet, because you're assuming that the error is in that. The error that's making Highslide JS fail could be in any one of a dozen different places. It could be a problem with resource loading, caused by path errors - a code snippet doesn't tell me anything about that.

A link to an actual page, or nothing.

Why are you making this so difficult? Do you simply not want any help?
MisterNeutron
Posts: 440
Joined: Sun Aug 18, 2013 11:20 am

Re: Highslide id problem

There are bunches of 404's on that page.
CookieMonster
Posts: 25
Joined: Sun Feb 15, 2015 6:03 am

Re: Highslide id problem

Hrm... Let me tinker.
MisterNeutron
Posts: 440
Joined: Sun Aug 18, 2013 11:20 am

Re: Highslide id problem

While you're tinkering, put a closing slash on the graphics path:

Code: Select all

hs.graphicsDir = '/wdp/wip/highslide/graphics/';

Return to “Highslide JS Usage”