[JS CS3] Modify geometricBounds of Inline Frames in Overset Text

Hello,
I have the following setting:
I recieve a XML file , which contains <image href="..."> tags. InDesign automatically inserts the correct images as an inline frame.
The layout column are too small for the large images, so when placing the XML into the layout, the whole content is in the overset.
Inline frames in the overset do not have any geometricBounds. Can I modify width & height of frames in overset text? And how do I do that?
Thanks
Tobias

Thanks Robin!
I helped myself with the following:
with(myElement){
     // get img objects
     var theImage = myElement.xmlContent;
     var theImageFrame = theImage.parent;
     theImageFrame.appliedObjectStyle = myDocument.objectStyles.item("Img_free");
The objectStyle "Img_free" sets the image frame from "inline" to "anchored frame". So the size of the image doesn't matter any more because its outside ("free") of the text. So everything flows into visibility and I can change whatever I want. (Yes, I must not do this with a object style, but it felt right to do so.)
It's basically a similar way to your description. But I had hoped that there would be a somewhat "cleaner" way to do that. In my eyes it is more a workaround ...
Any further suggestions?
(How do people scripting InDesign Server do such things?)
Thanks
Tobias

Similar Messages

  • InDesign CS3 Scripting XML Import Multiple Images into same Text Frame

    I am having trouble importing multiple images into the same Text Frame using XML import. I imported 5 images into the text frame. However, all 5 images are laying on top of one another. Does anyone know if there is a way to have all images laying out like how Microsoft Word handles inline images, i.e., laying out next image to the right of previsous image in the same line and if there is not enough space left in the line, then wrap to next line. Thanks in advance. I understand I could use JavaScript to do post import processing, e.g, calculate the image size and place each images accordingly. But I am trying to see whether there is a way to do this without scripts.

    You can apply an object style to all anchored images by script. A text frame containing main flow should be selected.
    var doc = app.activeDocument;
    var textFrame =  app.selection[0];
    var rectangles = textFrame.texts[0].rectangles;
    if (rectangles.length > 0) {
         for (var i=0; i < rectangles.length; i++) {
              rectangles[i].appliedObjectStyle = doc.objectStyles.item("Cover");
    However, there is a better approach:
    Step 1
    Create place holders for a single "Book" element and format it as needed -- apply an object style to the cover.
    Step 2
    Import the xml file -- the placeholders are replaced with data from the 1st xml element
    Step 3
    Drag & drop the element containing all "Books" elements into the main flow -- all elements are placed and formatted the same way as in step 1.
    Finally, add a new page, click the overset text icon and autoflow text to add pages so that to fit all the text.
    Hope this helps.
    Kasyan

  • Page will not display properly with inline Frames

    I have a html page that will not display properly in Dreamweaver. I have a basic understanding of html and want to be able to edit a website in Dreamweaver that was given to me. It looks fine in a browser, but in Dreamweaver some of the content is missing and displays the following message, "Your browser does not support inline frames or is currently configured not to display inline Frames". I was able to open it without any problems using Microsoft Front Page, so is it possible to view and edit it in Dreamweaver?

    Without seeing your page, I'm guessing that your page contains server-side includes, iframes and  scripts to other files on the server that populate page with content on the server's end.  You can't see it in DW because you don't have all the files in your DW local site folder.  You said this views fine in FP.  Was your page created in FP with FP proprietary tools?
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb

  • Navigating inline frames from flash

    Hi,
    I have a navigation block set up in flash. Can someone please tell what the geturl script is to control external html pages loading into an inline frame?
    Thanks.

    o.k kglad, something odd is going on.
    in my html code, I'm designating a particular file to initially load in my iframe
    <iframe name="leftframe" src="swfs/portfolio/frames/logos/logointro.html" width="431" height="506" marginwidth="0" marginheight="0" allowtransparency="true" scrolling="no" border="0" frameborder="0">
    I'm testing two buttons to make sure they are working, but each time I click them, the logointro.html file reloads instead.
    sample1btn.onRelease = function():Void {
    getURL("swfs/portfolio/frames/logos/logo1.html", "leftframe");
    gotoAndPlay("sample1");
    sample2btn.onRelease = function():Void {
    getURL("swfs/portfolio/frames/logos/logo2.html", "leftframe");
    gotoAndPlay("sample2");
    Any idea why logo1.html and logo2.html won't load?

  • Close ADF Popup Dialog with html button in Inline Frame

    hi,
    I'm using jdev 11.1.1.2,
    I have a adf popup dialog which contains an Inline Frame(source is a jsp file).I want to close the dialog with a html submit button in the frame page. when the submit button is clicked, auto close the dialog.
    can anyone help in this.
    Thanks

    Try to close the popup from Javascript using a sciptlet similar to the following one:
    var popup = AdfPage.PAGE.findComponent('<yourPopupClientId>');
    if (popup.isPopupVisible()) {
      popup.hide();
    }where <tt><yourPopupClientId></tt> should be replaced with the popup's client ID. The client ID is composed of the popup's ID from the <af:popup> tag preceded with IDs of the eventual parent naming containers where the popup has been declared.
    For example, if the tag is <tt><af:popup id="myPopup"></tt>, then the clientId might be:
    <tt>  myPopup
      container1:myPopup
      container1:container2:myPopup</tt>
    ... and so on, depending on where you have defined the popup in your JSF page (i.e. within which naming containers), you should determine it first.

  • [JS CS5] Accessing an inline frame from an insertion point

    Given an insertion point, how can I determine if it contains an inline/anchored frame? And if so, how do I reference the inline/anchored frame?
    I know how to reference the surrounding paragraph, characters, etc., but can't figure out how to get to the inline/anchored graphic.
    I normally would just loop through all the inline graphics in the document, but it this case I need to access the inlines via their insertion points.

    As far as I know, Insertion point can't hold inline/anchored object, but character does.
    If you select text and run this line
    alert(app.selection[0].pageItems.length);
    it will return number of anchor/inline objects inside selected text.
    Another way is to check parent of object. Parent of anchor/inline object is always character.
    Example script that copies all anchor/inline objects to new layer: http://bit.ly/aV9WMF
    Hope that helps.
    Marijan (tomaxxi)
    http://indisnip.wordpress.com/
    http://inditip.wordpress.com/

  • Iframes or if there is such a thing a an inline frame

    Hi guys,
    I am making a html website, now on Microsoft Frontpage there
    is somthing called an inline frame, i was wondering if i could get
    that on dreamweaver, if so how ?
    Help would be very much appreciated
    Thanks
    aniboy6

    Though they are great, there are problems with them not
    working with some
    firewall software, and they aren't the most x browser
    compatible ... shame
    because I love them.
    Gerry
    http://www.UsableContent.co.uk
    "Michael Hager" <[email protected]> wrote in message
    news:eog776$j8s$[email protected]..
    > Yep... just type it in in code view.. works a charm...
    >
    >
    > <div ALIGN=center>
    > <IFRAME width="320" height="240" scrolling="no"
    frameborder="0"
    > SRC="yourcontent.html">
    > </IFRAME>
    > </div>
    >
    > change sizes, borders, scrolling, etc and replace
    "yorcontent.html" with
    > your html file.
    >
    > Michael Hager
    > www.cmhager.com
    >
    >
    > "aniboy6" <[email protected]> wrote in
    message
    > news:eoe5oq$6s0$[email protected]..
    >> Hi guys,
    >>
    >> I am making a html website, now on Microsoft
    Frontpage there is somthing
    >> called an inline frame, i was wondering if i could
    get that on
    >> dreamweaver, if
    >> so how ?
    >>
    >> Help would be very much appreciated
    >>
    >> Thanks
    >>
    >> aniboy6
    >>
    >
    >

  • Inline frame problem

    Hello,
    I have a page at www.gwebiogas.co.uk/sitepics which contains two inline frames. The first contains thumbnails and the second displays the large version of the thumbnail when clicked.
    I have two problems:
    1) Internet Explorer adds a white background to the iframe, which I do not want.
    2) Both IE and Firefox position the picture with a margin/border to the top and left. It's not really noticeable in Firefox but in IE the above-mentioned white background gives it away. I have set the margin to 0 in the Page Properties of the page which loads into the frame but it makes no difference.
    Any thoughts please? I've tried various margin, border and padding settings but have run out of ideas.
    Thanks
    Stephen

    Thanks for taking a look at it.
    It's the frame below the thumbnails one that is my main problem ie the one that loads 'site_pic.html' and displays the large picture.
    I have set every value for border, margin etc to 0, and have set background background colour to transparent in the css settings both for the iframe and site_pic.html and have also added [allowtransparency="true"] to the code for the iframe so it looks like this:
    <iframe id="pic_frame" name="pic_frame" src="site_pic.html" allowtransparency="true" frameborder="0" scrolling="no"></iframe>
    - all to no avail!

  • How to get any event occurs inside inline frame .

    Hi All,
    I have configured some url in af:inlineFrame component .
    This url is pointing to a webapplication which is hosted on different server .
    If i want to know all the activity what is happening insde inlineframe component which event i need to handle .
    I show all metadata of af:inlineframe component i dint find it handle any event .
    Please let me know how could it possible .
    Thanks ,
    Arun.

    Hi Sireesha,
    I have configured http://google.com as a source of inline frame component .
    Now google.com is rendered inside the inlineframe component .
    Whenever i will do some serach or click on the link appearing after searing something in google or someother activity .
    i want to intercept all the actions in my bean .
    Please let me know if above explanation is not clear .
    Thanks,
    Arun.

  • Set anchor yoffset value for inline frame

    Hi everyone!,
    In my document having the one story and it contains the two inline frames.
    then set the anchor yoffset value for inline frame to -5 mm.
    my coding is given by below, what's wrong in my code.
    Please tell me.
    tell application "Adobe InDesign CC 2014"
        set ofset to -5
        tell active document
               tell story 1
            set anchor yoffset of anchored object settings of parent of item 1 of inline frame 1 to ofset
               end tell
          end tell
    end tell

    Hi
    This snippet works ...
    tell application "Adobe InDesign CC 2014"
        set ofset to -5
        tell active document
            tell story 1
                tell text frame 1
                    set anchor yoffset of anchored object settings to ofset
                end tell
            end tell
        end tell
    end tell

  • For a wesite I get this error in firefox, "Sorry, Netscape 4 cannot show inline frames", other browsers are able to open it.

    For a wesite I get this error in firefox, "Sorry, Netscape 4 cannot show inline frames", other browsers are able to open it.

    I uninstalled all the old flash players and installed the flash player v16.0.0.235 from the Adobe website posted.
    And Firefox is still the same. It takes forever to web search, It takes a long time to get on Youtube, and a longer time now to open a video..
    It's actual worse since I upgraded to the newer flash player.
    I'll do one more fifefox reset (this is the 8th one in a week)
    and it works for a few hrs, and goes back to the slowww way of working...
    Many of my friends I talked to about this, told me to switch over to Chrome like they had to do..
    I guess that's the only alternative now..
    Thankyou all for your help and suggestions anyway.. :)

  • Inline frames

    i recently completed this site:
    http://www.colliervillehistoricsquare.com/history
    and, if you notice upon clicking on of the thumbnail images, you
    have to scroll back down to see the new image. Should I have used
    an inline frame for this? If so, how do I accomplish that?
    Thanks in advance,
    Brad

    Set it to use a size relative to the parent block element. You can use percents for that.

  • GeoMap click event refresh inline frame

    I am listening to the MapPointTheme click event. When this is fired, I set the source of my second Inline frame to another page (the main page has 2 inline frames, 1 displaying the map, and my second one displaying something else) via a backing bean. The problem is that, the GeoMap component refreshes, and not the second inline frame.
        public void mapClicked(MapClickActionEvent mapClickActionEvent) {
            // Add event code here...
            serviceName = mapClickActionEvent.getDataContent().getLocationName();
            System.out.println("Map clicked service: " + serviceName);
            hostFrameSource = "testPage.jsp?service=" + serviceName;  
            System.out.println("Host frame source: " + hostFrameSource);
            hostFrame.setSource(hostFrameSource);
            AdfFacesContext.getCurrentInstance().addPartialTarget(hostFrame); 
        }I am stuck as I am unsure what I am doing incorrectly.
    Regards,
    Gareth.

    Gareth,
    I don't have a sample for this but what if you surround the inlineFrame in say an af:panelGroup and ppr this group?
    Frank

  • Prevent inline Frame URL being encoded

    Hi All,
    I am using jdeveloper version 11.1.1.6.0.
    My use case is i want to generate url on jspx page itself like http://localhost:7101/contextPath/
    My Inline Frame is as follows:
                          <c:set var="currentUrlContext"
                            value="#{facesContext.externalContext.request.scheme}://#{facesContext.externalContext.request.serverName}:# {facesContext.externalContext.request.serverPort}#{facesContext.externalContext.requestContextPath}"/>
                           <af:inlineFrame id="if_stSearch"                                                                 
                                          source="http:/thirdpartyurl/index.shtml?returnTo=#{currentUrlContext}/myServlet"                                     
                                          shortDesc="Structure Search"
                                          inlineStyle="height:900px; width:880px; border-width:0px;z-index: 0;">                      
                          </af:inlineFrame>It generates url in the browser (checked on firefox) is
    http:/thirdpartyurl/index.shtml?returnTo=http%3A//localhost%3A7101/contextName/myServlet
    Why it replaces colon with %3A after returnTo word .
    and what is solution for this to build url with colon
    Edited by: 925410 on Oct 15, 2012 2:44 PM
    Updated
    when I give url in source attribute of inline frame .It automatically encodes url .Is there any property of inlineFrame which gives me chance to avoid inline Frame url encoding
    If I just put the source attribute of the inlineFrame as
    http:/thirdpartyurl/index.shtml?returnTo=http://localhost:7101/contextName/myServlet
    run the page and chek inline frame source in FireBug
    It displays as a
    http:/thirdpartyurl/index.shtml?returnTo=http%3A//localhost%3A7101/contextName/myServlet
    Edited by: 925410 on Oct 18, 2012 8:44 PM

    Hi All,
    Finally I got solution I just set iframe source attribute on jspx page load by javascript
       <af:document id="d1">
        <af:clientListener type="load" method="loadHandler"/>
           <af:resource type="javascript">
              function loadHandler() {           
                var baseURL = location.href;
                var indexOfFaces = baseURL.indexOf('faces');
                var url = baseURL.substr(0,indexOfFaces);
                var myUrl="http://newsearch.chemexper.com/misc/hosted/alfaGlobal/index.shtml?returnTo="+url+"servletName";
                parent.document.getElementById("pt1:if_stSearch").src=myUrl;
            </af:resource>Edited by: 925410 on Oct 22, 2012 8:04 PM

  • Modify default composition start frame?

    Is it possible to modify the default start frame number of 0 that is used
    when dropping a footage item on the "Create Composition" icon?
    I know I can create a new composition instead of dragging to the icon,
    and the Composition Settings menu does remember the last start frame
    number I entered, and I know that once a default sequence is created I
    can use the Composition Settings menu to set the start frame, but I would
    like to be able to set the default start frame number to 1 instead of 0.

    > I'm not finding that to be the case with any flavor of source footage.
    Right, sorry.  You won't unless you have After Effects CS5.5.  I didn't explain that, and my brain has been working with CS5.5 for so long now that it didn't occur to me that you weren't.  Source timecode support is a new feature in CS5.5.
    > It's probably not worth a feature request.
    I disagree.  Totally worth a feature request.  That's not to say it will happen, but that we always want your feedback no matter how small the request.  I can assure you that every submission is read and considered.

Maybe you are looking for