JS script to continue parallel to the new pages column layout

It seems that lndesign continue a layout to the next page pairs automatically when your typing in a single column wraps to the next page.  I was told I could this script, and since I did JS script on web pages for a while, shouldn't be too hard, I hope, if I explain the layout here?

The layout is simple - 4 parallel columns spread over 2 pages front - each column will hold a separate text that 3 others, and these texts will NOT be stuck in - they will be created AS I type.  I can't find a word processor to do this, because none can wrap a column of a number of page in the first page number (not the next odd page number).  Again, if you think of the layout in the finished printed book, it is very apparent - you want the two texts on the left-hand page to stay always on the left and two on the right to stay on the right, turn to any page of the book.

Technically speaking, column 1 of the same 2 page will wrap to column 1 of page 4.  Column 2 on the same page will end up to page 4.  Similarly, both the 2 columns to the right of the right page (odd) will always wrap down to the next odd-numbered page. All I need is to do this automatically while I'm typing.  So what column I'm typing in, when I arrive at the end of this column on the current page, the same provision will be created for the next pair of pages on the fly.  If you just keep typing, and when NO column reaches the end of this page, a new page layout will be created if it does not already exist.

This frame of page avoides linking repeatedly on hundreds of pages, which is a continuous concern that will affect my concentration on the content of the book.  I want the layout simply continue to go to the background for as long as I type.  Simple requirement - can - it be done in Javascript?

I don't really have the time to write scripts that are free right now, but if you want to make the effort to write yourself, this should help you get started:

The skeleton of the basis of such a scenario would be something like this:

var bounds = app.selection[0].parentTextFrames[0].geometricBounds;
app.documents[0].pages.add();
app.documents[0].pages.add();
var nextFrame = app.documents[0].spreads[-1].textFrames.add({geometricBounds:bounds});
app.selection[0].parentTextFrames[0].nextTextFrame = nextFrame;

You must ensure that the origin of the rule is spreading.

You need to check if there is a page after the current and only add the page if necessary.

There are a bunch of other error checking you'd have to do as well.

HTH,

Substances

Tags: InDesign

Similar Questions

  • Confirmation to the new page box

    I created a confirmation box that is displayed when someone clicks on a button on my page, simply stating that the future will lose any current changes, they did. I've got the navigation works without problem. The thing is that I'm using a JavaScript control to navigate and not turned the page to the correct values on the new page, or if it opens a blank entry if a new should be created. I tried to empty the cache of the page, but which makes it just an entry blank anything. The JavaScript code that I use is:

    < script language = "JavaScript" type = "text/javascript" >
    <!--

    function confirm_response()
    {
    var response = confirm ("are you sure you want to open the communication log? \nAny changes will be lost. »)
    If (answer is true)
    {
    Window.Location = ' f? "p = & APP_ID.:4: & APP_SESSION.:4, P4_ID, P4_PARTICIPANT_ID.
    }
    on the other
    {
    do something else
    }
    }
    ->
    < /script >

    If I tahe the first 4 on 4, P4_ID, P4_PARTICIPANT_ID section, it just evokes the same entry over and over again. I need to be able to pull the top of the selected entry, or a vacuum if necessary. Any ideas? Thank you.

    Josh

    Josh,

    You are welcome. Don't forget to mark answers are useful or correct. It rewards those who hep you and others also allows to find a solution if they have the same problem.

    Kind regards
    Dan

    http://danielmcghan.us
    http://sourceforge.NET/projects/tapigen
    http://sourceforge.NET/projects/plrecur

    You can reward this answer by marking as being useful or correct ;-)

  • Try to connect to my yahoo on Safari takes me in a continuous loop to the login page. It works very well with Firefix.

    Try to connect to my Yahoo on Safari brings back me in a continuous loop to the login page. My registration using Firefox works fine.

    IM using ios10 on an iPhone 6 s

  • How to use the "back" button to return to the new page tab in FF15

    In FF14 I could
    (1) open the new tab and see the new tabs with thumbnails of page 9 page.
    2) click on a thumbnail and go to this page.
    (3) click on the back of FF button, who took me to the new tab page so I could click on some other thumbnail.

    In FF15 which doesn't seem to work. In step 3 above, the previous button is not active/active and so I can easily go back to the new page tab. How to get back in a simple way?

    No, you can no longer use the previous button back to the topic: newtab page if you have opened a page by clicking on one of the slots on this page.

    You need to close the tab and open a new tab to get this page or set as the home page and click on the Home button.

  • where are the special characters in the new Pages?

    where are the special characters in the new Pages?

    Menubar pages: Edit: Emoji & symbols, or control-command + space combination. Same situation in other Apple applications. In addition, available as a menu item from the menu entry in the menu bar to the right, Finder.

  • Redirect to the new page of pl sql / process page?

    Hello

    I'm working on a page with a form for users to download the data.  When you press the "submit" button, it runs a process Page.  After the process is complete (i.e., to insert a new record of DB) we need to create a branch to a new page with treatment notes (defined in the process).  I tried to save the notes to an item on the first page and then configure a branch that fires "to submit, after treatment...". ' and includes notes in the industry, setting the value of an item on the new page.  It works in part but seems to truncate the value of the notes.  Is there a limit to the length of the string that can be passed via a branch page?

    Or is there a better way to do it?  Maybe there is a way to branch directly in the process?  If so, it would be easier because I wouldn't have if all goes well define a page element, just to pass this value along to the new page.

    Thank you

    Steve

    Hi Steve. 1234555 - Oracle,

    Agree with the suggestion of fac586:

    The value of the item on the new page can be defined directly in the process, or later without including the value in the branch (make sure that the direction is not clear the session state in the target page). Even better would be to give notes a structure to put them in a collection and displays them using a report.

    Here's how you can do if your process is PL/SQL:

    DECLARE
    
      L_NOTES VARCHAR2(512);
    
    BEGIN
    
      -- process for insertion and setting notes
    
      -- setting notes item on page to be branched
      APEX_UTIL.SET_SESSION_STATE('P2_NOTES', L_NOTES);
    
      -- redirecting/branching to the page
      APEX_UTIL.REDIRECT_URL (
          P_URL => 'f?p=' || :APP_ID || ':2:'|| :APP_SESSION ||'::NO:::' );
    
    END;
    

    Reference:

    I hope this helps!

    Kind regards

    Kiran

  • My page corrupts when I drag an image from the bridge to the new page?

    My page corrupts when I drag an image from the bridge to the new page?

    Hi helenc79843028,

    Could you please confirm the version of Photoshop and the bridge work, also what operating system?

    And could you please attach a screenshot of what you see in Photoshop.

    Kind regards

    Tanuj

  • Add the new page number with gaps in indesign extension app

    Hi all

    I develop an application for extension adobe indesign with adobe flex 3.4 sdk.

    the application object is to publish the document to a remote server.

    I did well all options.

    now I am facing problems to Polish.

    the problem is,

    (1) adding new page

    Let's say that a particular indesign document (portrait) contains 6 pages.

    Page 1, 2 are spread

    Page 3

    Page 4

    Page 5, 6 are spread

    Now, I will add a new page through the indesign extension.

    When I try to add a new page. It will add to the last page of the spread. (Page 5, 6)

    Finally, he became Page 5, 6 and 7 in propagation.

    What I want is.

    After you have added the new page, the document must have the following structure.

    Page 1, 2 are spread

    Page 3

    Page 4

    Page 5, 6 are spread

    Page 7

    Is my code to add the new page.

    document: var Document = app.activeDocument;

    document.pages.Add ();

    Please suggest me how to add a new page (without extension)

    Thank you

    Malaris

    Try the code below

    document: var Document = app.activeDocument;

    document.spreads.Add ();

    But make sure you use this code on a document that may be the structure of the page that had mentioned you, that is to say it must be created by unchecking the options 'facing Pages' in the dialog box new document. Otherwise, it will add two pages of the document.

    This should solve your problem.

    Manan Joshi

    -InDesign efficient Solutions

    MetaDesign - Solutions

    http://metadesignsolutions.com/services/InDesign-development.php

  • Drag the new MDB column at the presentation level

    Hello

    I created a new column in the physical layer and happened to MDB. I can't move the new MDB column at the presentation level. The column belongs to the same table, but it is not allowing me to move the column.

    Can anyone help understand possible reasons?

    Thank you

    Hello

    check if submission means you the correct business model in the general tab of the properties.

    Kind regards
    Gianluca

  • together in the new Page

    Hello all,.

    We used a group above Style in our report.
    In our report, certain lines of the last group are left in the previous page.
    We wonder to appear on the new page as easy to use.

    If you have a chance, please share your experience.

    Thank you

    S! G

    We have done in the past:

    Repetitive structure
    General layout
    Page protect

    If you have any questions, post.
    If not, reward accordingly.

  • Copy of the CSS rules in the new page

    Is it possible to copy all my changes to a preset CSS, header liquid two columns and footer presenting, in a preset, two static column header, and implantation of the footer so I don't have to redo all the rules on the new page?

    Thank you

    scriptmemory

    Hello

    It's a little difficult to say what changes you need without seeing the page. But if the CSS is in the top of the page, then you must save the old page as a new page, then only change the CSS that makes the liquid columns fixed px size.

    Cristian Dorobantescu

    Of the Flexi CSS layouts - creating CSS layouts in Dreamweaver without coding

    www.extenstudio.com

  • New Record on the new Page - XML Publisher

    Dear members,

    I use Oracle Applications 11.5.10.2 and Microsoft Office 2010. I have installed the respective patch and designed a XML report with success.

    I display in my XML report, master and detail records. For example, let's say the details Dept and Emp.

    When I generated the preview, it displays the data permanently. I mean at the level of the header, it shows 10-Dept details below it will display the employee details located in the Dept 10 and immediately, without any page breaks, it displays Dept-20 and its employee details.

    But my requirement is I want Dept-20 to be included in the new page instead of permanently display.

    I pray the respective members of the group to help me solve this problem.

    Best regards
    Arun D. Reddy

    Can you send me a sample of RTF and xml to my email ID files in my profile so that I can have a look.

  • The new Page tab is not seen

    Hello

    I work with the database server and I added the new page tab is not seen.
    I have already compiled and validated the project. Also, I already have the server.

    New project: Xxaa new project
    My new tab Page has like screen: new screen Xxaa
    : My view new Xxaa new

    I added the new page tab in the "Siebel universal Agent" Application and I have compiled the project "Xxaa new project" and "universal Agent of Siebel. After I connected to "Call Center", but I do not see the new Page tab

    I sailed in the application 'Card Navigate-> Site-> User Preferences-> tab' layout but my new tab page "Xxaa new screen" is not checked "Hide" flag

    Also I added the new responsibility: "Xxaa new responsibility" and I added the new discovers 'Xxaa New View' and the SADMIN user has grants.

    What should I do?

    Published by: Wings2009 on July 15, 2009 19:03

    Did you create new columns? If Yes, have you applied and activted these columns
    Try a complete compilation of all projects

    Goud

  • Details of a master record on the new Page

    Hi guys,.

    I have a requirement where I have a page named Page1 for example.

    1 page 1:

    This page has a few form fields that form the master file and here is that there is an array of advanced, which shows the child records for the master domain

    I've implemented this successfully via ViewLinks and objects of the Association and Page1 works very well

    Now, for each of these child records in Page1, consist of several records of children, which should be displayed in a new Page, suppose for example, Page2

    2 page 2:

    In this 2 page, I would like to enter data into an advanced table (there may be several lines), for each of the child records in Page1.
    After you have entered the data on page 2, I need to go back to page 1.

    In the same way on each of the child records in page 1, I would like to go into details in page 2 and return to page 1.

    Finally, I should be able to Commit or rollback at the end.

    But so far I was not able to do this in the new page. :( Data on page 2 is too much.

    Someone told me that it is not possible in a new page.

    Could someone help me?

    Also good season to all!

    its Possible.
    All you have to do is, just create the same module of RootApplication for 2 pages.
    and use retainAM = is in the navigation between pages.
    That should be enough...

    And when you navigate to the second page, do not call vo.executeQuery () or whatever it is which evacuates the changes pending in the VO.
    When you navigate to the second page, just find the line of girl, that you want to update using vo1.findByprimarykey)
    and use the method vo.setCurrentRow (firstChildRow) the first child VO to refresh the lines of the second child

    See also the exercise of updating in the Toolbox tutorials where the transaction is maintained between the three pages.

    Prasanna-

  • What script use to redirect to the new mobile site muse uploaded to an existing site?

    I create a mobile site that I will upload to an existing outside the BC site. Should what script I use to detect the mobile device and redirect to the new mobile site?

    "< script type="text/javascript">".

    If ('desktop' == 'phone') {}

    window.location = ' http://www.site.com/phone/index.html';

    }

    < /script >

    or

    " < link media="only screen and (max-device-width: 370px)" rel="alternate" href="... /phone/index.html"/ >

    or something different.

    Thank you

    If you use Muse 3.0 or later version, should not have to do anything - Muse will automatically handle redirection logic.

Maybe you are looking for