![]() |
|
reading the hash portion of the url on next/prev image - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: reading the hash portion of the url on next/prev image (/thread-11600.html) |
reading the hash portion of the url on next/prev image - onedimensional - 2014-01-25 I've been trying to get my previous and next links to load directly above the image instead of at the top of the page... Safari recognizes the following
reading the hash portion of the url on next/prev image - acrylian - 2014-01-25 You did assign the css ID "starthere" to some element? If not it is of course not working ;-) JS generated IDs might not work. Our links on user guide articles like these for example: As they are created by a JS script for the table of contents on the top right they do work in Webkit browser (Safari/Chrome) but not Firefox if directly accessed. Once you are on the page they do work. Probably because they are created after loading the page DOM. That is browser dependent. But if you statically assigned ids in html that should not be a problem. reading the hash portion of the url on next/prev image - onedimensional - 2014-01-25 Yes... I do have Safari honors it, but Firefox and IE do not... I also tried Another idea... Quote:The requested URL //index.php?album=cruisers/roadstar&image=IMG_8048.jpg was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. I hope there is a direct solution to this... if not, I may remove the header div from image.php and in this way force the image to be the center of the screen... The constant jumping up and down when navigating through images has to be eliminated. Thanks again for the feedback, it keeps me motivated. reading the hash portion of the url on next/prev image - acrylian - 2014-01-25 You cannot use parseURL (you don't want to parse anything) or rawurlencode here. I just tried with the Zenpage theme on its image page using the id "content-left" it has with prev/next image. Works in all browsers as expected with and without (like you apparently use) modrewrite links. Anyway, this is standard behaviour of html/browser Zenphoto has nothing to do with. The example I showed with the direct link is just because the ids and anchors are generated dynamically. This is not the case with plain html. If that doesn't work something else is wrong. You don't need to use reading the hash portion of the url on next/prev image - onedimensional - 2014-01-25 You're right "name" anchor is useless, and I only added it once "id" alone wasn't working... This is what the unmodified Zenpage theme div/link looks like: `` ...with the exception of me adding "#starthere" at the end of the href... reading the hash portion of the url on next/prev image - acrylian - 2014-01-25 I did the same using the "content-left" id. The link is dynamic but not that kind of dynamic I meant with the user guide example. That is JS dynamic created in the browser after loading hte page, this link is created before loading the page. reading the hash portion of the url on next/prev image - onedimensional - 2014-01-25 I'm catching on... So I moved that one back down to the footer, and of course it works just the way it's supposed. I am sorry for wasting yours and my time. Safari simply rendered it right at the "h4" tag where I had placed it, and firefox at the top of the "header" div since the "a" tag followed right after the "div" tag. I feel like crap. As a consolation for anyone else reading this, another method I learned through all this is the following JQuery: ``$(window).load(function() {
where the 300 is equivalent to 300px... |