1 Reply Latest reply on Sep 5, 2010 6:43 AM by mlavie

    How to Apply a Graphic Element's "href" Attribute Value on a Graphic Frame

    mlavie Level 1

      I have a graphic frame, which I wish to fill with a graphic image. The graphic frame appears as an element in the Structure, as it has a tag attached, and that element has a legitimate "href" as a full path to a graphic file. In UI mode, I have to drag that element onto the graphic frame in order for the graphic frame to be filled with the graphic file. How do I perform the same action in JavaScript?

       

      TIA

       

      mlavie

        • 1. Re: How to Apply a Graphic Element's "href" Attribute Value on a Graphic Frame
          mlavie Level 1

          I thought I should provide an explanation for what I meant:

           

          I am aware, of course, of how to use "Place". The issue here is that I have a Page that is a template, which includes a Graphic Frame. I want to open the page, and then update the Graphic Frame element's "href" tag with the path of a graphic file, and have that file then appear in the Graphics Frame. By default, InDesign does not redraw the Graphics Frame when you change the value for the "href" attribute - you need to drag the parent element onto the Graphics Frame.

           

          TIA

           

          mlavie