Co-ordinates of active page in active doc

I want to get the co-ordinates on the page, for the center of the active document screen. Also which page it is.
Thanks in advance for any help on my first acrobat tryout (though I have done quite a bit of InDesign Scripting)

GKaiseril wrote:
You should look at the Acrobat JS API Reference.
I know, I have told the same to other people on InDesign Scripting Forum.
Thanks anyway, I don't have the time to learn it now.

Similar Messages

  • View enable and disable dynamically in Guided activity page

    Hi Team,
    I have created a GP and it contains 2 views inside a Guided activity page.
    Here the issue is I need to show both the views but I should be able to disable any one of the view dynamically.
    Note:
    As I said earlier it should not disappear. It should just be disabled.
    I have tried using do config determination with different configurations but it is making the views disappear.
    Especially the first view...!
    Please help.
    Thanks,
    Mahesh Pusala

    Hello Mahesh,
    You can check below methods in _IMPL class of the over view page.
    DETACH_STATIC_OVW_VIEWS: to hide any view
    REATTACH_STATIC_OVW_VIEWS : to display the view
    for hiding the view delete the view entry from the internal table " rt_return" in the "DETACH_STATIC_OVW_VIEWS" method.
    to show a view add the view name including component name to the "rt_return" table in "REATTACH_STATIC_OVW_VIEWS" method.
    hope this helps you.
    Br,
    Navn

  • Navigation menu active page color not behaving as it should

    I created an unordered list for the mainnav links. I use the following lines in the code:
    <li><a href="../index.html" class="thispage">Home</a></li>
            <li><a href="#">Events</a></li>
            <li><a href="#">Music</a></li>
            <li><a href="#">Agenda</a></li>
            <li><a href="../Pages/artists.html">Artists</a></li>
    The Home button shows the color for 'active', but if I go to the artists page it first shows the hover color, then the page opens but does not show the active color.... I.o.w. the Home button stays on active though it is not active.
    Please see the effect on my testsite: www.adrianrooymans.nl

    armona22 wrote:
    I'm sorry, but I tried that already, and it does not solve the problem. If I do that I get TWO active pages, but clicking anywhere on the artists page makes the blue color go away, except for the Home button.... I could temporarily put that on the testserver so that you could see what happens (unless you beleive me).
    You will get two active menu items unless the class is removed from the links that you don't want it on.
    If you look at the example page code in the 'completed' folder of the Bayside Beat tutorial you will see on the 'index' page the class has been added to the 'index' link:
    <nav id="mainnav">
          <ul>
            <li><a href="index.html" class="thispage">Home</a></li>
            <li><a href="sightseeing.html">Sightseeing</a></li>
            <li><a href="#">Eating Out</a></li>
            <li><a href="#">What's On</a></li>
            <li><a href="#">Where to Stay</a></li>
          </ul>
        </nav>
    Whilst on the 'sightseeing' page the class has been moved to the 'sightseeing' link:
    <nav id="mainnav">
            <ul>
                <li><a href="index.html">Home</a></li>
                <li><a href="sightseeing.html" class="thispage">Sightseeing</a></li>
                <li><a href="#">Eating Out</a></li>
                <li><a href="#">What's On</a></li>
                <li><a href="#">Where to Stay</a></li>
            </ul>
        </nav>

  • How to show active page in Spry Menu Bar using images

    Hi,
    I have already read this answer "how to show active page in spry menu bar" but I am using images, not text.  I have mouse-over and mouse-out working in the Spry Menu Bar using image.png and image-over.png, but I cant' figure out how to get the image-over.png to appear on the active page since the spry menu bar is locked on the individual pages.  (I tried to put it in an editable comment, but spry wouldn't go for it. :-)
    Any ideas.  Here is the code:
    <ul id="MenuBar1" class="MenuBarHorizontal">
           <li><a href="../index.html" id="home" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image8','','../images/all_pages/home-over.png',1 )"><img src="../images/all_pages/home.png" alt="Home Page" name="home" width="58" height="20" border="0" id="Image8" /></a></li>
           <li><a href="../show.html" id="show" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('show','','../images/all_pages/show-over.png',1)"><img src="../images/all_pages/show.png" alt="The Show" name="show" width="101" height="20" border="0" id="show" /></a></li>
            <li><a href="../team.html" id="team" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('team','','../images/all_pages/team-over.png',1)"><img src="../images/all_pages/team.png" alt="The Team" name="team" width="97" height="20" border="0" id="team" /></a></li>
            <li><a href="../company.html" id="company" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('company','','../images/all_pages/company-over.png',1)"><img src="../images/all_pages/company.png" alt="The Company" name="company" width="139" height="25" border="0" id="company" /></a></li>
            <li><a href="../beatles-tickets.html" id="tickets" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('tickets','','../images/all_pages/tickets-over.png',1)"><img src="../images/all_pages/tickets.png" alt="Tickets" name="tickets" width="75" height="20" border="0" id="tickets" /></a></li>
            <li><a href="../media.html" id="media" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('media','','../images/all_pages/media-over.png',1)"><img src="../images/all_pages/media.png" alt="Media" name="media" width="61" height="20" border="0" id="media" /></a></li>
            <li><a href="../news-reviews.html" id="news" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('news_reviews','','../images/all_pages/news_reviews-over.png',1 )"><img src="../images/all_pages/news_reviews.png" alt="News-Reviews" name="news_reviews" width="149" height="20" border="0" id="news_reviews" /></a></li>
            <li class="MenuBarHorizontal"><a href="../contact.html" id="contact" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('contact','','../images/all_pages/contact-over.png',1)"><img src="../images/all_pages/contact.png" alt="Contact Us" name="contact" width="79" height="20" border="0" id="contact" /></a></li>
         </ul>
    Thanks so much for helping!
    Cheers,
    Janell

    Just found this page:
    Persistent Page Indicator
    Update: Drat, it is for text menus only not using images. :-(
    Cheers,
    Susan

  • How do you add a class in fluid grid navigation menu to change the background and link color when page is active?

    When i try to add a class to the active page to have it distinguished when a visitor is on, in the class section it only has other options and not one for "active"

    See this link:
    Making a persistent page indicator on site wide CSS Menus
    Nancy O.

  • How can I show an active page on menu?

    I am working in DW CS3 and using a Spry menu and want to be able to show the active page on the menu. Have looked at previous discussions but am still very confused. New to DW and not very code editing proficient. Please help.

    Place the following in the HEAD section of your document
    <script src="SpryAssets/SpryDOMUtils.js" type="text/javascript"></script>
    <script type="text/javascript" language="javascript">
    function InitPage(){
    Spry.$$('#MenuBar1 li').forEach(function(node){
         var a=node.getElementsByTagName("a")[0]; // finds all a elements inside the li, but we only want the first so [0]
         if(a.href == window.location){
              Spry.Utils.addClassName(node,"activeMenuItem");
    Spry.Utils.addLoadListener(InitPage);
    </script>
    <style type="text/css">
    .activeMenuItem {
         background: #F00;
         font-weight: bold;
    </style>
    and make sure that SpryDOMUtils.js is in your SpryAssets folder.
    Ben

  • Open Accordion Panel when on Active Page

    I am trying program a panel tab to open based on which page
    is active ... For instance I have five panels and each panel has
    from one to 5 links. I would like to have the panel tab to stay
    open if I am on that links current page ... Does anyone have the
    time to explain how to do this?

    Both the accordions should show the same colours and operate the same way.  Yet on one page, the colours don't change and the accordion seems to be in a box (there is an outline all around).
    It shows up the same in either firefox or IE.  I didn't know I was using an old version of Spry, so will try upgrading and see what happens.  Thanks for pointing that out.

  • I bought iphone 5 with there box and accesaries by third hand now i dont now the icloud id which first person put it now the iphone 5 stuck on icloud activation page. it is not teaft

    i bought iphone 5 with there box and accessories by third hand now i dont now the icloud id which first person put it now the iphone 5 stuck on icloud activation page. it is not theft

    are you stupend or clown,because how and the word he is gonna find the first person when i am pretty sure he doesnt even keep in touch with the person who he purch in the first place...Nabeel that is a lot of suck and i know whats that i am stuck in the same situation to...and i celled apple sopurt and they asked for a lot information and when i sent to them they just said to me that they not able to help me with that...i have spake with to many people in apple and the funny part is that everone has diffrent answer..

  • Examples of chart in the report column like monitor activity page

    Hello,
    Can anybody help me how to create a report having chart as one of the column in the report like Administration->Monitory Activity pages.
    I have a report having columns like date, salesman, collection%.
    The collection% must be displayed as bar chart showing % in the report column itself.
    I searched a lot and end up with no examples found for this kind of example.
    Any help will be appreciated.
    Thanks,

    First of all, it appears that there is no "HTML EXPRESSION" or an area to assign a CSS class to a column for interactive reports. I've even tried to use "COMPUTE" on an interactive report to introduce the <DIV> tabs and style, but that doesn't seem to work either. So If you're using an interactive report, it looks like you're out of luck.
    But if you use a standard report, here is a quick example using the standard Demo tables on an interactive report. I'll do my best to describe what I'm doing step by step.
    The query I'm using is a simple list of employees that shows the following columns:
    <ul>
    <li> EMPNO
    <li> ENAME
    <li> JOB
    <li> SAL
    <li> COMM
    <li> COMM / (SAL + COMM) *100 (What percent of total Salary is the employees Commission)
    </ul>
    So here is the SQL statement I'm going to use:
    select empno, ename, job, sal, comm, round(nvl((comm / (sal + comm) *100),0)) Pct_Comm
    from empNow, Create an standard (SQL) report on the page of your choice by selecting the CREATE button at the top of the page editor. Select "REGION ON THIS PAGE" => "REPORT" => "SQL REPORT"
    Enter a the TITLE and TEMPLATE of your choice, then click the NEXT button.
    Copy and paste the select statement above into the page region for the select statement, and press the CREATE REGION button.
    Go ahead and run the report and you will see a whole number for the COMM_PCT.
    Now to turn this into a graph within the column perform the following steps.
    <ol>
    <li>Edit the page and then edit the report by clicking on the "Report" link on the page definition. This will bring up the Report Attributes Page.
    <li>Edit the PCT_COMM column by clicking on the EDIT icon at the beginning of the row.
    <li>Cut and paste the html from my above post into the "HTML EXPRESSION" field.
    <li>Edit the HTML you just pasted to remove any unnecessary spaces in the tags that might cause it to render incorrectly.
    <li>In the HTML EXPRESSION string, replace the #COLLECTION_PCT# string with #PCT_COMM#. (This is a substitution variable that represents the value of that column. We're using that to set the WIDTH attribute of the bar).
    <li>Apply your changes and re-run the report.
    </ol>
    et. Voi la! You have a graph in your report.
    Hope that was clear enough.
    Doug

  • Top Activity page on DB 11g OEM always show as one CPU.

    I have my development 11g (11.2.0.4.0) database run under Oracle Linux 6.3 (2.6.39-200.24.1.el6uek.x86_64) run in VMware Workstation VM.
    I have allocated 4 x vCPUs to the VM and try monitoring performance with OEM. I have found that "CPU Cores" show on "Performance" tab is 4 but show as 1 on "Top Activity" page.
    Do anybody know why is different?

    Responding to direct message, the result of "select * from FROM v$license;" is as below.
    SESSIONS_MAX
    SESSIONS_WARNING
    SESSIONS_CURRENT
    SESSIONS_HIGHWATER
    USERS_MAX
    CPU_COUNT_CURRENT
    CPU_CORE_COUNT_CURRENT
    CPU_SOCKET_COUNT_CURRENT
    CPU_COUNT_HIGHWATER
    CPU_CORE_COUNT_HIGHWATER
    CPU_SOCKET_COUNT_HIGHWATER
    0
    0
    22
    43
    0
    4
    0
    0
    4
    0
    0

  • The countdown timers at File Storage Locker sites (fileserve, bitshare, freakshare, etc) will no longer countdown if not the active page (Since upgrading to firefox 5.0). How do make it countdown when not the active page?

    Since upgrading to firefox 5.0, countdown timers at the various file locker sites will no longer countdown when the page is not the active page. I am sure it is not a site-side change as ALL the sites countdown timers freeze when not the active page. This has only happened since the upgrade.

    For reading only as Bugzilla is Not a forum.
    [https://bugzilla.mozilla.org/show_bug.cgi?id=652472 Bug#652472] - Higher setTimeout/setInterval clamping in inactive tabs breaks countdown scripts
    In mean time you can try opening those links in a new window instead of a new tab.
    Not all sites are affected as sites like Megaupload, Filesonic, depositfiles, Rapidshare work fine.

  • Using MM_swap want to keep rollover for active page

    I am using MM_Swap for my navigation.  It works perfectly, but I want the rollover state to remain for the active page in the navigation menu.  What do I need to change in the code?
    Here is the code for each button:
    <div id="nav">
    <a href="index.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image2','','images/home-button-over.png',1)"><img src="images/home-button.png" alt="Home" name="Image2" width="103" height="40" border="0" id="Image2" /></a>
    <a href="transport.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image3','','images/transport-button-over.png',1)"><img src="images/transport-button.png" alt="Transport" name="Image3" width="101" height="40" border="0" id="Image3" /></a>
    <a href="rooms.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image4','','images/rooms-button-over.png',1)"><img src="images/rooms-button.png" alt="Rooms" name="Image4" width="101" height="40" border="0" id="Image4" /></a>
    Thanks

    That sounds really good. One wrinkle. These are basically
    screenshots of a browser showing the content of a course. About a
    third of the way through, the broswer window changes a little,
    meaning the logo needs to be scaled and moved a bit, so I've been
    pasting the logo into the first third, doing my thing with the
    "merge with background", then realigning the logo and doing the
    same thing for the second third, etc.
    I guess the quesiton is, if the element needs to shift/scale
    occasionally, can I still take advantage of "rest of project"? I'm
    guessing no. I've already segmented this a few times and
    daisy-chained them together, I'm wondering if I should resegment
    them based on these logo shifts I've described.
    The reason I'm so interested in this is I'm going to have to
    do this whole conversion a few times more in the next couple of
    weeks, and more times throughout the year.
    Thanks!

  • Adding section to active page

    Hi
    I´m trying to create a very simple javascript for adding new section to active page. So far I have made following code:
    var myDoc = app.activeDocument;
    var numero = app.activeWindow.activePage.name;
    var numero2 = numero -1;
    myDoc.sections.add(myDoc.pages[numero2]);
    It basically works as it should, whren I double-click some page thumbnail in pages panel, that page will become active... and if I run the script at that point it usually adds section to active page pretty nicely....
    However, if I use that script with Configurator 2.0 and create a custom panel, with Add a section button (where I have attached that same javascript) InDesign starts to throw me some weird alert:
    If I answer yes, script will work as it should, but I would like to make it work so that users won´t get that alert at all....
    If I run that scrpt from Scripts panel, it works without alerts...
    Another thing I have tried to figure out is how to create some kind of error handler that would stop the script if active page already has a section start, now script generates a javascript error in those cases.... it would be more classy if simply nothing happened....
    Any help appreciated.... thanks

    Thanks guys...=) but no luck here....
    And I noticed something quite weird. This script is meant to use with single pages, but when I accidentally used it with facing pages spreads, I got that same alert + script changed the way page numbers are marked below thumbs:
    It replaced 10-11 with 10,11
    I also tried
    try {
    var myDoc = app.documents[0];
    var numero = app.documents[0].layoutWindows[0].activePage.name;
    var numero2 = numero -1;
    myDoc.sections.add(myDoc.pages[numero2]);
    } catch (e)
    {  $.writeln("Error "+e.message+" at line "+e.line);}
    But I still have that same alert.... When I run that code in Extend Script ToolKit, I got following javascrip console message:
    Error undefined is not an object at line 2
    Result: undefined

  • Chase account activity page won't load the "I'd Like To" links when using Mozilla Firefox but will with Internet Exployer

    Chase Banking is always doing upgrades to their website. In their latest update the useable links on the account activity page simply don't appear under the "I'd like to" heading. Even the "I'd like to" heading is not appearing. That side of the page is empty, but if you use Internet Explorer all the links at there. Does anyone else have this problem using Chase Banking?
    Found the issue to this problem, I had a software program running called Ad Blocker. When I disabled this program the links became visible. I will use the other suggestions posted to this message.

    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.
    Did this fix your problems? Please report back to us!

  • Hi ! Please my iphone is on the activation page and i can't do nothing, there is a sim card into but itune don't recognise it, and the phone don't want to activate. I tried everything, and before the reboot the iphone 3 was worked verry well. Please help

    Please my iphone is on the activation page and i can't do nothing, there is a sim card into but itune don't recognise it, and the phone don't want to activate. I tried everything, and before the reboot the iphone 3 was worked verry well. Please help me !

    Hello there, rebeccallouche.
    The following Knowledge Base article offers up some great steps and links to some additional information that is pertinent when having activation issues with your iPhone:
    iPhone: Troubleshooting activation issues
    http://support.apple.com/kb/ts3424
    Additionally, if the iPhone is not being recognized in iTunes this article will be useful as well:
    iOS: Device not recognized in iTunes for Windows
    http://support.apple.com/kb/ts1538
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

Maybe you are looking for

  • SQL Reporting Services - Install database

    I've installed Reporting Services on a live server, but when I go through the Reporting Services Configuration Manager to create the database I receive the following error : Verifying database SKU : Success Generating database script : Error Microsof

  • Start database in NOARCHIVELOG mode

    Hi, I would like to know if there is a way to set some oracle paramete so that each time database is restarted, it comes up in NOARCHIEVELOG mode. Regards, Andrija

  • Some cumbersome task

    I am having problem with my jsp code . wat i done is as follow 1. I created a web page which simply inputs the user information like name,surname etc. 2. I am passing this information to jsp page say first_jsp.jsp 3. There i am using <jsp:useBean> an

  • Moving snow leopard data from from old iMac time machine to Yosemite

    I have a pre-2007 17" iMac running 10.6.8 Snow Leopard.  Time Machine is used to backup this machine. I plan to buy a new iMac or Mac Mini with Yosemite, and would like to move some of the data from the old iMac to the new Mac machine.  Can I connect

  • Internet Thru Router: 2 Macs and 1 PC

    Hi, I have and Intel iMac, A Blueberry iMac (10.4, I believe) and a PC hooked up to a Linksys Router (wired). I have got the Intel iMac and PC working fine but need the second iMac up on the network for internet. I am on SBC DSL so the Intel iMac is