viewer_size_image: page reload on size selection?

viewer_size_image is a terrific plugin, but I suspect that some users will be confused when they select a new image size and nothing happens.

Does anyone know how to get the page to reload when a new image size is selected?

That would make it much clearer to the user what the function actually does, and that it isn't broken.

Comments

  • ???

    There is no page reload from required for this plugin, at least in the current version.

    What version of Zenphoto are you using?
  • Hi sbillard, thanks for your response. I'm using version 1.3.1.2 [5831] (Official Build)

    Am I interpreting you correctly that the expected behaviour is for the photo to reload, at the new size, immediately after the user selects the new size using the radio button?

    I've got a test site up at

    http://hughstimson.org/photos

    if you'd like to have a look. I've tested it in IE9, Chrome8, FF3.6 and Safari5 and in all cases the page has to be manually reloaded before the image size changes.

    Maybe I've configured something wrong on the back end?
  • You have interpreted correctly. The image uri is changed via JavaScript and the browser should be automatically re-displaying the image.

    Your theme is missing the <div id="image"></div> tags around the image, so the JavaScript cannot make that change.

    NOTE: it is always a good idea to try to see if you can reproduce problems on standard distributed themes. That way you can quickly discern between Zenphoto issues and custom theme issues.
  • Thanks much sbillard, that resolves my issue nicely.

    And that sounds like good general advice too.
Sign In or Register to comment.