Parent page or spread?

I'm fiddeling around with this one and i beg for some help:
set currSelection to object reference of item 1 of selection --Script will only be used when text is marked
set parentTextFrame to item 1 of (parent text frames of currSelection)
set parentPage to parent page of parentTextFrame --Get the page
set theLine to make graphic line at parentPage with properties {geometric bounds:{A, B, C, D}, stroke color:"Linecolor", stroke weight:1}
This works fine. But only if the textbox is on a page. But often I prepare those textboxes left/right offpage on the spread for late usage – then the script doesn' work, because parent page returns nothing, and i cant just exchange that with parent spread. I dont't know how to draw the line there. Further I don't know, if a spread belongs to/has a page number: My document has more than one pages, and the line should be drawed over that marked text on the spread.
Can someone help me out?

I made some more adjustments, and this seems to work. I dont know exactly why, but: mates, i think we got this.
I googled some code which helped someone to create cropmarks on documents with different zero points and came to this:
set rulerOrigin to ruler origin of view preferences
  if rulerOrigin is not spread origin then set ruler origin of view preferences to spread origin --(spread origin/page origin/spine origin)
set rulerZeroPoint to zero point
  if rulerZeroPoint is not {0, 0} then set zero point to {0, 0}
--> Here I nested my code, the fetching of the coordinates (like set Y1 to baseline of first character in selection) and the drawing of the line.
--> And set it back:
set zero point to rulerZeroPoint
set ruler origin of view preferences to rulerOrigin

Similar Messages

  • IFrames and Parent page

    hi.....
    i am having a Jsp(say index.jsp) file with iframes in it. Inside IFrame, i am having some user id's and a edit button. After selecting a user id, i ll click the edit button.
    Now, i want to render the edit page for the selected id in the parent page itself(i.e in index.jsp).
    Is it possible?...
    plz suggest me.

    I made some more adjustments, and this seems to work. I dont know exactly why, but: mates, i think we got this.
    I googled some code which helped someone to create cropmarks on documents with different zero points and came to this:
    set rulerOrigin to ruler origin of view preferences
      if rulerOrigin is not spread origin then set ruler origin of view preferences to spread origin --(spread origin/page origin/spine origin)
    set rulerZeroPoint to zero point
      if rulerZeroPoint is not {0, 0} then set zero point to {0, 0}
    --> Here I nested my code, the fetching of the coordinates (like set Y1 to baseline of first character in selection) and the drawing of the line.
    --> And set it back:
    set zero point to rulerZeroPoint
    set ruler origin of view preferences to rulerOrigin

  • Get the Values of the components inside the region onto the Parent Page

    Hi All,
    I am using Jdeveloper 11.1.1.5.
    I just wanted to know that my use case can be fitted to contextual events or should i use the #{data.pageDef.Attribute.inputValue} to get the values.
    I have a bounded taskflow "ChildTF.xml" with fragment say "child.jsff".Now i have dragged the ChildTF.xml on the other page say "Parent.jspx" as a region.In the child.jsff page i had input form having 20 fields and all the 20 fields are dragged from a View Object so i don't have the field values binded to the Managed Bean and on the parent page "Parent.jspx" i have a button. Now on click of button i need to get the values of those 20 fields of "child.jsff" page.
    How can i achieve this?
    Thanks
    Shah

    Hi Timo,
    Thanks .
    For sharing the data control i should follow this :-
    In the Property Inspector for the called task flow i.e ChildTF.xml, select Behavior.
    In the data-control-scope list, select shared.
    Is there anything else do i need to do ??
    I mean do i need to add the iterator to the parent page also. ?
    Kindly Suggest!!
    Regards,
    Shah

  • How to make a page that should be inside an iframe load up its parent page?

    Hello all
    Here's my dilema...
    I'm creating a site with page fragments that the user is able to view by having it load into an iframe. So far so good and it's all working perfectly well.
    The problem that I envisage is that, even with no-index robot meta tags, Google et al are almost certain to index these page fragments and proffer them in search results.
    So, my question to you is two-fold:
    1 - how can I make a page fragment load up the parent page should it be selected from a Google search result
    and
    2 - once the parent page is loaded up, how can I then make it load the selected content page into the iframe so that the user sees what (s)he is expecting to see?
    I'm imagining that it will require cookies and scripting, but I'm still at the (very) early stages of learning such stuff, so have no clue whatsoever on how to go about it!
    Any bright ideas / tutorials / sites I can nick code from / complete solutions that I don't have to pay for would be much appreciated.
    Thanks
    Peter

    AFAIK there's no practical way to do what you require.  Sorry.  This is one of the many downsides to Framed sites. It also makes bookmarking and printing pages difficult.  Not to mention user unfriendly from a web accessibility viewpoint.  Re-think your need for Iframes throughout an entire website.   The best websites use one complete page for each topic.  Index, About Us, Contact Us, etc...
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics |  Print | Media Specialists
    www.alt-web.com/
    www.twitter.com/altweb

  • How to make a page that should be inside an iframe load up it's parent page?

    Hello all
    Here's my dilema...
    I'm creating a site with page fragments that the user is able to view by having it load into an iframe. So far so good and it's all working perfectly well.
    The problem that I envisage is that, even with no-index robot meta tags , Google et al are almost certain to index these pages fragments and proffer them in search results.
    So, my question to you is two-fold:
    1 - how can I make the page fragments load up the parent page should it be selected from a Google search result
    and
    2 - once the parent page is loaded up, how can I then make it load the selected content page into the iframe so that the user sees what (s)he is expecting to see?
    I'm imagining that it will require cookies and scripting, but I'm still at the (very) early stages of learning such stuff, so have no clue whatsoever on how to go about it!
    Any bright ideas/tutorials/sites I can nick code from/complete solutions that I don't have to pay for would be much appreciated.
    Thanks
    Peter

    Actually, I did carefully choose this forum as being the most appropriate since my question, or rather what I imagine the answer might be, will involve things like scripting and/or cookies.
    Would that not make it "dynamic" enough to remain here?
    Thanks
    Peter

  • To close popup page from parent page .

    HI ,
    I want to close the popup page when my parent page is redirected to login page when session gets invalidated.
    with out calling any onload or any kind of functions in popup jsp page.
    In my application when i open a popup page from the main page ,when the session is getting expired parent page is redirected to login ,but still the popup page is in active state.i want it to be closed when the redirect happen for the parent page.
    Please help me in this matter.
    Thanks in advance.

    This is a Javascript question, not a JSP question.
    I'll give only a hint then: get hold of the handle of the popup window so that you can call close() on it.
    If you stucks, please continue at a JS forum. There are ones at webdeveloper.com and dynamicdrive.com. Once again: JSP is completely irrelevant in this question. Just base the problem on the HTML and JS output generated by JSP.

  • How to Keep Pages as Spread in Exporting CS2 Book

    While working with InDesign CS2 book feature, I'm trying to export my book as a pdf. The trouble that I am having is when my pdf doesn't keep all of the pages as spread. For example, let's say my first file has 5 pages ( pages 1-5 )  and then the next has 3 ( pages 6-8 ). In the original files, the document has spreads. However, in the pdf, pages 1-2 and 3-4 are spreads and then page 5 is single. And then, page 6 is single and then pages 7-8 are a spread.
    My goal is to get InDesign to automatically create spreads when the files are exported no matter if the document has even or odd pages? I don't want to have to create all my files with all even pages. Does anyone know how this would be possible?
    Thanks,
    Jenny

    First, this is one of those shortcomings with the current state of affairs. ID doesn't combine booked documents when exporting spreads.
    So why do you want spreads? Is this for reader proofing (readers spreads which is what you'd get if you export a single doc as spreads)? If so, why not just fix the initial view in the PDF properties dialog? Export as single pages, then set the PDF to open as facing pages with cover page.
    Or are you trying to impose into printer's spreads? That's not the same thing at all, and ID doesn't impose except through Print Booklet (but you can use that to print to PDF?
    Peter

  • Put a child page into a region in a parent page?  (APEX 2.2.0)

    Hi, all,
    Thanks so much for all of your help previously.
    I want to have the entire contents of child page inserted into a region of parent page. The child page uses the "Empty Template" template and has an report region that uses the "No Template" template.
    The parent page has a region containing a single div into which I want to insert the child page. If I do this using JavaScript and htmldb_Get object, inserting the result of the AJAX request into the DIV, I get what I want. I can't figure out how to preload the page into the region.
    I've tried using the URL region, but I keep getting
    ORA-29273: HTTP request failed
    ORA-06512: at "SYS.UTL_HTTP", line 1674
    ORA-12545: Connect failed because target host or object does not existwhen I enter the URL for the child page.
    I can't use UTL_HTTP.REQUEST, either.
    select utl_http.request('http://myserver/f?p=100:100:12345678901234')
    from dual;I get roughly the same error. (I copy and paste the same URL that I use for the AJAX request. I can also type that URL into a browser and get the page.)
    I can get both Google's and Oracle's Web sites this way.
    My other option is to render the entire page to a string, store it in a VARCHAR2 / CLOB, and output it to the screen. Is there a way (maybe using WWV_FLOW) to render a page to a string?
    I want to avoid using DHTML when it's not needed and I don't think that I would need it to initially load the page.
    Thanks!

    Carl,
    (Sorry about the reply gap.)
    As best as I can tell, iframes can't auto-fit their contents without JavaScript. I've also heard mixed things about iframes and accessibility. The contents of the iframe also don't inherit the CSS definitions from the parent frame. (None of those may be good enough reasons to not use iframes, but I am totally unfamiliar.)
    There are workarounds for all of those problems, but I'm just as inclined to write some PL/SQL function that generates my page for me and call that from a PL/SQL region, since the page is so simple. It might take me less time to write the PL/SQL function and PL/SQL region than it will to make the iframes look pretty.
    Thanks for the reply!
    Message was edited by:
    Don_84
    Well, that's odd. When I changed my authentication scheme from what I was using to the database authentication (the DAD one), the utl_http.request call works, as does the URL region. So the authentication is getting in the way. I wonder if there is a (elegant) way around that?
    Message was edited by:
    Don_84
    Is WWV_FLOW.SHOW documented? In a PL/SQL region, I can call
    WWV_FLOW.SHOW(P_INSTANCE => '&SESSION.', P_FLOW_ID => '100', P_FLOW_STEP_ID => '1000');where 100 is my app number and 7000 my page number, but it only works if I have no other regions. Otherwise, the page entirely fails to render.

  • Problem refreshing the parent page when closing a modal window.

    I have page that opens a modal window from a report link column. In the modal window I want to be able to make my changes and press an Apply button so that the modal window is closed and the parent page is refreshed to show the modified details in the report. In Firefox all works well but in IE I get the error message ‘Window.opener.location is null or not an object’ .
    When I comment out window.opener.location.href=window.opener.location.href; the modal window closes without error but I want to refresh the parent page with changes made in the modal window.
    I’m afraid my java script is very limited (the code is based on other peoples examples.)
    Parent Page I call this function from a report link column to display a modal window. Sets the hidden SAVE_STATUS field in destination page to ‘N’
    function modalWin(pshow)
    var url;
    url='f?p=&APP_ID.:'+pshow+':&SESSION.::::SAVE_STATUS:N';
    if (window.showModalDialog) {
    window.showModalDialog(url,"name","dialogWidth:650px;dialogHeight:700px"); }
    else {
    window.open(url,"name","height=700,width=650,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no ,modal=yes");
    Destination page (modal window)
    HTML Header.
    The function closeWindow should refresh the parent page and close the modal window.
    <base target=_self>
    <script language="JavaScript" type="text/javascript">
    <!--
    htmldb_delete_message='"DELETE_CONFIRM_MSG"';
    function closeWindow() {
    if ( document.getElementById("SAVE_STATUS").value == 'Y' )
    window.opener.location.href=window.opener.location.href;
    window.close();
    //-->
    </script>
    Html Body attribute.
    onLoad="closeWindow();"
    P_UPDATE_DATE process called from the Apply changes button. Sets the SAVE_STATUS flag to ‘Y’ for the onload in the html body.
    UPDATE event
    SET event_date = :P5001_EVENT_DATE
    WHERE contract_reference = :P330_EVD_CONTRACT
    AND event_number = :P330_EVD_EVENT_NUMBER;
    :SAVE_STATUS := 'Y';
    Thanks in advance, I will have a look when back in the office on Monday.
    Cheers Pete

    Hi Chris,
    Thanks for your help. I think I've sorted it using your first suggestion doing a refresh in the parent page, I just didn't know how at the time.
    What I've got in the parent window after the call to the modal window is the reload window.location.reload(); and in the modal window I close it using window.close(); The down side being the refresh happens if I use my 'Apply changes' or 'Cancel' button but I can live with that for now.
    It seems to work in IE and firefox but as I say most of what I'm doing is cobbling together using other peoples code without really understanding exactly what it does. Anyway thanks for your help, sound like I should look into JQUERY when I have time.
    Thanks Pete
    Parent window call to modal
    function modalWin(pshow)
    var url;
    url='f?p=&APP_ID.:'+pshow+':&SESSION.::::SAVE_STATUS:N';
    if (window.showModalDialog) {  window.showModalDialog(url,"name","dialogWidth:650px;dialogHeight:700px");                                          }
    else {
    window.open(url,"name","height=700,width=650,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no ,modal=yes");
    window.location.reload();
    Modal Window Close.
    window.close();

  • Creating a pdf document with both single pages and spreads

    Hi, i'm not sure if this is possible, but basically i'd like to set up a document which allows me view the first three pages as single sheets and the remainder of the document as a booklet. The reason for this is I'm sending a cover letter, CV and then a booklet via email to apply for a job, and the booklet i have created has graphics which run accross the spread. I was hoping to lay the document as such:
    1. cover letter
    2. CV
    3. Booklet front cover
    4-5. booklet spread
    6-7. booklet spread
    8-9. booklet spread
    I'm not too familiar with how to set this up (or if this is possible), could anyone point me in the right direction?

    @Dave Merchant - The pages are true spreads, I've had a go at attempting to define the page type by the master but i can't seem to get it to split the document so that the first three pages remain single. I had a go at trying to create an entire new document with the pages in in order, but not sure how to insert single pages and spreads combined within the document.
    @Test Screen Name - Do you know how i would be able to create such a document within indesign? i've had a look for some answers in the documentation but havent come accross anything yet (im on CS5). I had a go at combining the documents as the booklet and the single pages, but when i change the view options in acrobat to two page the first pages becomes a cover and the second and third are next to each other.

  • How do I make accordian tabs open different images on the parent page

    I am totally new to spry and hope there is an easy way to achieve what I want to do.
    Basically, I want to use an horizontal accordian spry menu so that when the user clicks on a menu item the text appears in the box but an image opens in a seperate fixed box on the parent page. When selecting another menu item the image changes accordingly (but still in the same fixed box)
    I appreciate any help
    thanks

    > When I insert the three form list/menus Dreamweaver does
    not allow me to turn
    > the lists into links. Javascript allows you to turn them
    into links. All I
    > want to know is what script to write.
    That is because you inserted a plain select form item.
    Insert a JUMPMENU and dw will do the coding for you.
    Open the F1 help, click search and type jumpmenu
    Alan
    Adobe Community Expert, dreamweaver
    http://www.adobe.com/communities/experts/

  • A swf in an iFrame calling javascript function on Parent page

    I have a .swf that has to load in a iFrame and needs to call a browser cookie javascript function that lives on the parent page that loads the iFrame.
    I'm using this:
    ExternalInterface.call("javascriptFunction");
    but of course this call is not making it to the Parent page javascript function.  Is this possible to do?
    Thanks!

    The parent page has the javascript function, and has a iFrame that loads the swf.  The swf needs to call the javascript function that lives in the parent page.
    Thanks!

  • Refresh "parent" page when closing a cfwindow

    When displaying a cfwindow and I click the x in the top right, how can I refresh the "parent" page?
    The cfwindow has a small form that collects data in a couple of fields then submits in the cfwindow to a page that inserts the request, sends and email and says the action is complete.
    This is my cfwindow:
    <cfajaximport tags="cfform,cfwindow"> 
    <cfwindow
       name="NewRequestWindow"
       center="true"
       closable="true"
       draggable="false"
       height="550"
       width="700"
       modal="true"
       initShow="false"
       refreshOnShow = "true"
       resizable="false"
       title="#WindowText#"
       source="NewRequest.cfm?pk=#pk#" />
    <a href="#" onclick="javascript:ColdFusion.Window.show('NewRequestWindow')"><img src="../includes/images/add.png" alt="Add" title="<cfoutput>#WindowText#</cfoutput>" width="16" height="16" border="0" /></a>
    Thanks, Cliff

    This JavaScript will reload the current page:
    document.location.reload()
    From within your cfwindow it should work for the entire page.
    copied from other post http://forums.adobe.com/message/3227674

  • On button click scroll to anchor in parent page

    Hi Everyone,
    I have an edge file embedded in my html page as a banner.
    I have a button in the edge file that I would like to control the parent page with.
    How can I get onClick in the edge file to scroll the parent page to an anchor position.
    I would like to do this without reloading the page as well.
    Any help is greatly appreciated.
    Thanks

    We are getting close... I can feel it.
    It didn't work as above just yet though. 
    The Anchor / div name is outside the animate stage, on the holding HTML page.  So there is an html page.  The animate object is being pulled into that page with an iframe.  On that page that it's being pulled into is another div named align_orthodontics_blog.  To simplify here's the page structur
    <body>
    <p>THIS IS THE TOP</p>
    <p><a href="#align_orthodontics_blog">GO HERE</a></p>
    <iframe src="http://www.align-ortho.ca/an-home/an-homebanner.html" width="100%" height="855px" scrolling="no" frameborder="0">
    </iframe>
    <p>Just regular content here</p>
    <p>THIS IS THE BLOG</p>
    <div id="align_orthodontics_blog">Content for id "GOHERE" Goes Here</div>
    </body>
    </html>

  • Apex in an iframe - only allow access from specific parent page

    Hi,
    I have a simple, unauthenticated Apex 4 application which lets users enter search terms and return records using a classic report. I wish to publish the application within an iframe, so that my organisation's communications department can maintain control over the rest of the page content. A side effect of this solution is that it will be possible for users to lift the application URL from the page source and reuse it elsewhere. I would prefer to avoid this, since I don't want our main website traffic to be diverted. Is there a way to restrict access to an application based on the parent page of the iframe in which it is embedded?
    Thanks in advance,
    Simon

    Hi,
    I'm sure there might be better way than this and this might have some holes , but anyway
    Create HTML region "After header" without template to page zero
    <script type="text/javascript">
    var u="my_ifarme_url_here";
    if(top.location.href!=u){top.location.href=u;}
    </script>Replace "my_ifarme_url_here" with URL your iFrame is located
    Regards,
    Jari

Maybe you are looking for

  • Could anyone tell me what is a senior member in a coherence cluster?

    Hi all, I am problem finding the definition of Senior member in coherence documentation. Could anyone tell me what is a Senior member in a coherence cluster? Could we configure which server is Senior? How? Thanks and Regards, NB

  • Importing Alias Tables

    I've never imported an alias table into an outline from a text file before, and I was wondering if I could talk to someone that has. Essentially, I'm a little unsure what format the text file needs to be in to successfully import. I've tried a few wa

  • Leopard Server - Time Machine Backup - Full

    IHi, I have Leopard Server (10.5.2) running on a Mac Pro. Its is setup with 1 Boot Drive and a pair Mirrored Data Drives. It also has a large External Drive that the Data from the Mirrored Drives is backed up onto via Time Machine. The Boot Drive is

  • How many items are possible in page APEX 3.2

    Hi All, I have created around 95 page items,8 different region , 10 buttons and i have used collections in page processing While processing the page by using Select with LOV getting error http://3264-ch-dbs:8080/apex/wwv_flow.accept I have created 15

  • Who can help me?I have a question about JDBC with SQL Server 2000.

    import java.sql.*; import java.util.*; public class sqltest{ static public void main(String args[]){ try{ Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver"); }catch(Exception e){ e.printStackTrace(); return; try{ Connection conn=DriverMana