Topic: Mobile Page - open image in new window goes to: 404 Not Found

First question:

I am not sure if this is the same issue as discussed here:
http://www.simpleviewer.net/forum/viewt … p?id=12704

Note:  Opening an image in a new window works fine in a desktop browser, but not from the full-screen version of the mobile version of the page.  It works on an initial page viewed on my iPhone, but not when I go to the full-screen option.

Here's an example of a page to see what happens:  http://www.nondairycreamer.com/gallery/ … index.html

My browser goes to a new page, but it looks for the image here:  svcore/images/name_of_image.jpg
And because the images folder is not there, it delivers the 404 page.

Here's the folder hierarchy for the actual full URL of the image:

http://www.MyWebsite.com/gallery_folder … _image.jpg

Here is where the program is unsuccessfully looking for the image:

http://www.MyWebsite.com/gallery_folder … _image.jpg

When I check the gallery.xml file, I see that the imageURL is the same as the linkURL.  Not sure if that's any clue.

Question:  Any suggestions on how to make this "open in new window" function work?

I am working from the Vertical Resizable Gallery with Header template.  Not sure if that is affecting things.

- - - -

Second Question about configuration options, while I'm here on the forum:

For viewing on a Mobile page: Is there a way to eliminate the image count that displays at the lower right of the page below the image?

NOTE:  In the customize window for configuration options, I have deselected the option under Caption > Show Image Number.

For example, for image #6 of 9 total images, I will see "6/9".

I believe that I am out of luck, if I go with your answer to that question here:  http://www.simpleviewer.net/forum/viewt … p?id=12801

Thanks!

Last edited by mrpooh (2013-02-12 05:03:18)

Re: Mobile Page - open image in new window goes to: 404 Not Found

Any suggestions on how to make this "open in new window" function work?
Try removing the following code from your 'index.html' page:

<script type="text/javascript">
    var svCoreURL = 'svcore/';
</script>

This is no longer required with the current version of SimpleViewer.
If this does not work, try leaving your linkURL entries empty and SimpleViewer will use the imageURLs for the linkURLs by default.

For viewing on a Mobile page: Is there a way to eliminate the image count that displays at the lower right of the page below the image?

showImageNumber is a Flash-only configuration option. The options available to the Mobile Player can be found here.
There is no configuration option to hide the image number in the Mobile Player but you can hide it from view by adding the following CSS code to the end of the 'svcore/css/simpleviewer.css' file:

.sv-paging {
    display: none;
}
Steven Speirs
SimpleViewer Support Team.

Re: Mobile Page - open image in new window goes to: 404 Not Found

Thank you Steven. 

I just have two more questions (see below).

Steven Speirs wrote:

Try removing the following code from your 'index.html' page:

<script type="text/javascript">
    var svCoreURL = 'svcore/';
</script>

This is no longer required with the current version of SimpleViewer.

Unfortunately, this did not do the trick.

Question #1:  Would there be any harm in deleting that line of JavaScript code from my index.html files, or does it serve some function in some circumstances?

Steven Speirs wrote:

If this does not work, try leaving your linkURL entries empty and SimpleViewer will use the imageURLs for the linkURLs by default.

This did work.

Question #2: is there a way to configure this (having an empty entry for linkURL) as an option in svBuilder-Pro?

- - - - - - -

Regarding my second question:

Steven Speirs wrote:

showImageNumber is a Flash-only configuration option. The options available to the Mobile Player can be found here.
There is no configuration option to hide the image number in the Mobile Player but you can hide it from view by adding the following CSS code to the end of the 'svcore/css/simpleviewer.css' file:

.sv-paging {
    display: none;
}

Thanks. This did the trick!

Cheers.

Re: Mobile Page - open image in new window goes to: 404 Not Found

Question #1:  Would there be any harm in deleting that line of JavaScript code from my index.html files, or does it serve some function in some circumstances?

The requirement for the svCoreURL variable was removed from SimpleViewer several versions ago and it now serves no purpose at all in the current version. The code should be removed.

Question #2: is there a way to configure this (having an empty entry for linkURL) as an option in svBuilder-Pro?

You can empty the linkURLs for individual images by deleting the entries on the 'Images' tab.
Leaving the linkURLs filled in with the imageURLs (as they are by default) should work fine and I am unable to replicate the problem you experienced.
Perhaps re-uploading your gallery's 'svcore' folder (to ensure that all files are up-to-date, present and correct) would help (though I realise that you now have a suitable workaround for the problem by having empty linkURLs).

Steven Speirs
SimpleViewer Support Team.

Re: Mobile Page - open image in new window goes to: 404 Not Found

Steven Speirs wrote:

Perhaps re-uploading your gallery's 'svcore' folder (to ensure that all files are up-to-date, present and correct) would help (though I realise that you now have a suitable workaround for the problem by having empty linkURLs).

Thanks, Steven.

Regarding the functioning of the Mobile Player and opening images in a new window:

Strangely, when I upload a freshly-created folder of files that is automatically generated by svBuilder-Pro (when I publish a gallery), all works fine with the Mobile Player.  The only difference between that kind of gallery and what I have on my site is that I am using an Index file with various DIV sections, including this code for the gallery:

<div id="flashContent">
        <div id="sv-container"></div>
    </div>

I tried to see if the SimpleViewer Vertical-Resizable-Gallery-with-a-Header Template files (taken directly from the SimpleViewer website) would duplicate the problem, and sure enough, I found that they did have the same problem.

I uploaded the sample files to a folder on my website for you to check it out. 

Will you check to see if you experience the same problem on your end, with a mobile device?

If you go to this folder:  http://www.nondairycreamer.com/x_testin … -template/
And then click the links for either of the gallery folders, you will call up the page.

Best,

David

Re: Mobile Page - open image in new window goes to: 404 Not Found

If you go to this folder:  http://www.nondairycreamer.com/x_testin … -template/
And then click the links for either of the gallery folders, you will call up the page.

I have been able to replicate the problem (opening an image in a new window from a fullscreen gallery in the Mobile Player with a relative linkURL leads to an error 404).
I have logged a bug report and this should hopefully be fixed in the next version of SimpleViewer.
Thank you for reporting this issue.

Workarounds would be to leave the linkURLs empty (if you wish to use the imageURLs for the linkURLs) or to use absolute paths for the linkURLs, e.g. http://www.example.com/gallery/images/image01.jpg

Steven Speirs
SimpleViewer Support Team.

Re: Mobile Page - open image in new window goes to: 404 Not Found

Thanks.

Yes, the problem only happens when opening an image in a new window from a fullscreen gallery in the Mobile Player  (... with a relative linkURL leads to an error 404)

Mr. Pooh