Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Stefan Kip 1614 posts 4131 karma points c-trib
    Nov 18, 2009 @ 19:16
    Stefan Kip
    0

    Bug with image preview?

    Hi there!

    Just installed this nice package and started using it, but the preview of a selected image did not work.
    The javascript code, which should do this, is:
    imageViewer.reloadPage(id);
    But imageViewer is never defined...

    So I changed it to this and it works:
    $("#imageViewer")[0].contentWindow.reloadPage(id);

    Am I the only one experiencing this issue?

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Nov 19, 2009 @ 10:54
    Jeroen Breuer
    0

    I haven't experienced it yet, but i'll look into it.

  • Stefan Kip 1614 posts 4131 karma points c-trib
    Nov 20, 2009 @ 10:01
    Stefan Kip
    0

    Well, could you tell me where the imageViewer var should be defined? I can't find it anywhere.

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Nov 25, 2009 @ 21:55
    Jeroen Breuer
    0

    The imageViewe didn't need to be defined because it was the id of an iframe. I've now update to code to this:

    document.getElementById(

    "imageViewer").contentWindow.reloadPage(id);

    You can download v1.1 of the Tribal Yet Another Media Picker 4  here.

Please Sign in or register to post replies

Write your reply to:

Draft