We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 14066
    • 37 Posts
    <img src="[*image*]" alt="name of image" onclick="MM_openBrWindow(’[*image*]’,’mypopup’,’width=800,height=800’)" />

    I can’t get this working...there must be a solution but i don’t know? Can someone help?
      • 25483
      • 741 Posts
      ronaldlokers Reply #2, 15 years ago
      Hi jevdo wink

      Did you load the javascript that is needed to get MM_openBrWindow? I also can recommend to use a "lightbox" to pop up your images right inside your site instead of using a popup.

      There are tons of lightbox scripts on the web, just search on google for "lightbox jquery" and it will get you started smiley
        with regards,

        Ronald Lokers
        'Front-end developer' @ h2o Media

        • 14066
        • 37 Posts
        Yes i did wink but the effect i get is like this:

        <img src="
        ----------------------------------
        | |
        | |
        | |
        | This is the image, but no link on it |
        | |
        | |
        | |
        ----------------------------------
        ’,’mypopup’,’width=800,height=800’)" />

        So it seems that the tag [* *] isn’t working with javascript.
          • 7231
          • 4,205 Posts
          Take a look at the source that is being generated, there may be a syntax issue.
            [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

            Something is happening here, but you don&#39;t know what it is.
            Do you, Mr. Jones? - [bob dylan]
            • 14066
            • 37 Posts
            yes but i don’t know the solution to that...
              • 25483
              • 741 Posts
              ronaldlokers Reply #6, 15 years ago
              Can you show a live page with this code on it?
                with regards,

                Ronald Lokers
                'Front-end developer' @ h2o Media

                • 14066
                • 37 Posts
                  • 25483
                  • 741 Posts
                  ronaldlokers Reply #8, 15 years ago
                  You are outputting your image with image tags, you should change the widget setting of the template variable to nothing so that it will just output the path to the image.
                    with regards,

                    Ronald Lokers
                    'Front-end developer' @ h2o Media