Topic: Issue with direct link api sv-pro v2.1.1

I just upgraded to version 2.1.1 (from v1.8) in order to use the direct linking feature, and I cannot get it to work. The number is being added to the end of the url, but changing the number, or trying to link to a specific number has no effect. For example, if you click this link http://www.eleventhframephoto.com/portf … ceptual/#2 it will still load the first image, instead of #2. Any advice?

Re: Issue with direct link api sv-pro v2.1.1

I've updated the direct link example to use the new v2.1.1 embed code. Please use this latest example code.

Felix Turner
SimpleViewer Support Team.

Re: Issue with direct link api sv-pro v2.1.1

Thank Felix,

One more question, am I supposed to do anything to the embed code used in the <body> section of the page? Is this script just in addition to that script?

Re: Issue with direct link api sv-pro v2.1.1

I updated my code with the example you provided, and made some progress, but it's still not completely working.

After the page loads, if I manually change #1 to #2 or #3, the image changes appropriately.

It still doesn't work for links though, a link to http://www.eleventhframephoto.com/portf … ceptual/#2 still loads to image #1

Re: Issue with direct link api sv-pro v2.1.1

You have 2 copies of the simpleviewer.load() function. Remove the 2nd one.

Felix Turner
SimpleViewer Support Team.

Re: Issue with direct link api sv-pro v2.1.1

I didn't think there were supposed to be two of those functions in the code, but I must have a mistake somewhere else, because when I remove the second function, simpleviewer doesn't load at all.

http://www.eleventhframephoto.com/portf … ndex2.html

Re: Issue with direct link api sv-pro v2.1.1

ok, the issue that caused simpleviewer not to load was that the svcore folder was outside the gallery directory, and i must have missed a redirect somewhere in the code. moving the svcore folder back into the gallery directory causes simpleviewer to load again, but i'm still having the same issue with the link not working as i said in the previous post.

Re: Issue with direct link api sv-pro v2.1.1

i took everything out of the code except for simpleviewer script, and i copied the script straight from the example. still having the same issue. the problem must be in an external file I assume.

http://www.eleventhframephoto.com/portf … ex3.html#3

Re: Issue with direct link api sv-pro v2.1.1

Try removing the firstImageIndex="0" from gallery.xml

Felix Turner
SimpleViewer Support Team.

Re: Issue with direct link api sv-pro v2.1.1

that seems to have fixed it, thanks.