[VB CS5] Adding buttons with page hyperlinks (hyperlinkpagedestinations)

Hi people.
I'm trying to add buttons with a script that link to pages.
I have got this far but the documentation is sparse and i can't find a solution.
My code so far
REM====Initiliasing
Set myInDesign = CreateObject("InDesign.Application")
Set myDocument = myInDesign.Documents.Item(1)
Set myPage = myDocument.Pages.Item(1)
REM====Adding the button
Set but = myDocument.Pages.Item(1).Buttons.Add
but.GeometricBounds = Array(0,0,25,25)
but.select()
REM==== Adding the hyperlink
set my_hyperlink = myDocument.hyperlinkPageDestinations.add(myDocument.Pages.Item(232))
Creates the button ok, seems to create the hyperlink ok. That hyperlink should go to page 232.
How do you add the hyperlink to the button so the button goes to page 232 when clicked?

Ok i'm just going to go ahead and answer my own question.
Seems you can't add it to a button but can add the hyperlink to a rectangle and it works.
So the correct code looks like this
Set myInDesign = CreateObject("InDesign.Application")
Set myDocument = myInDesign.Documents.Item(1)
Set myPage = myDocument.Pages.Item(1)
Set oImageRect = myDocument.Pages.Item(1).Rectangles.add
oImageRect.GeometricBounds = Array(50,0,25,25)
set my_hyperlinkPAGE=myDocument.hyperlinkPageDestinations.add(myDocument.Pages.Item(5))
Set my_hyperlinkSource = myDocument.HyperlinkPageItemSources.Add(oImageRect)
set myHyperlink = myDocument.Hyperlinks.Add(my_hyperlinkSource, my_hyperlinkPAGE)
Voila, goes to page 5!

Similar Messages

  • Buttons with page actions not working

    Hi,
    I have a folio with buttons that have actions such as "Go to Page", "Go to First Page" and "Go to Last Page".
    I could export this folio with Folio Builder to the server and I could view it in my tablet with no problems.
    However, today (August 30th) I exported the folio again and it's not working. All other overlays are working fine, but buttons with page actions just show their Click appearance and go back to normal.
    My friend also teels me of this problem.
    What happened?
    My Content Viewer in my iPad is updated and I have made the last Folio Builder upgrade.
    Sincerely,
    Jean

    There was a bug in which these previously supported button actions (Go to Page and Go to First/Last Page) no longer worked, but I thought that bug had been fixed. Let me check on that. In the meantime, the workaround is to use the "navto://" format to jump to a different page within the same document. Use the "navto://articlename#n" format. The first page is 0, so #1 jumps to page 2. For details, go here:
    http://help.adobe.com/en_US/digitalpubsuite/using/WS67cb9e293e2f1f60-8ad81e812b10bfd837-80 00.html#WS67cb9e293e2f1f606f59889512d69320e0d-8000

  • Possible to create buttons with Pages '09?

    I am currently working on a project that requires the input of interviewees. This is only a project for an upper-division class at the undergraduate level, so formal methods are kind of thrown out the window. Nevertheless, it's for 35% of my final grade so hopefully someone can help.
    I would just interview people in person, but I am interviewing people across the country (friends and family). Because of schedule conflicts, I need to create a questionnaire that they can fill out digitally and then return to me via email. I would like to create buttons for their responses (i.e., Yes, No, Maybe, etc.), but cannot find any way to do so. I know it is possible to do in Microsoft Word (which I do not have because I swore of all Microsoft products as soon as I got my Mac back in fall of 2009). Is there a way to do this in Pages? If not, any suggestions how I may format my document so that answers can be marked with an X, or possible web-based solutions?
    Thanks in advance for any and all suggestions. You will be saving me a lot of time and effort!

    Mitchapalooza wrote:
    I am currently working on a project that requires the input of interviewees. This is only a project for an upper-division class at the undergraduate level, so formal methods are kind of thrown out the window. Nevertheless, it's for 35% of my final grade so hopefully someone can help.
    I would just interview people in person, but I am interviewing people across the country (friends and family). Because of schedule conflicts, I need to create a questionnaire that they can fill out digitally and then return to me via email. I would like to create buttons for their responses (i.e., Yes, No, Maybe, etc.), but cannot find any way to do so. I know it is possible to do in Microsoft Word (which I do not have because I swore of all Microsoft products as soon as I got my Mac back in fall of 2009). Is there a way to do this in Pages? If not, any suggestions how I may format my document so that answers can be marked with an X, or possible web-based solutions?
    Feature unavailable.
    I wish to add that building such document with an application which may be run only on a macintosh is probably not a good design.
    Yvan KOENIG (VALLAURIS, France) jeudi 25 novembre 2010 21:50:06

  • IPhone buttons with website hyperlinks won't work

    Hi, I have done a few dps projects for iPad and Android tablets but am starting a new project for iPhone users.
    The way I have set up buttons to link to websites before does not seem to be working. I can see the button but it doesnt do anything... I have tested the same file on the ipad and it works fine.
    I know I am probably being stupid but does anyone have any hints?
    thanks
    Stuart

    Hi Bob,
    I usually just create a button under buttons and forms.
    Put in in a 'go to URL 'action on release or tap.
    and put in the url.
    This works on adobe viewer on the iPAD and desktop but wont work on my iphone's adobe viewer.
    thanks
    Stuart

  • I have a godaddy website with a welcome page- I need help adding a few additional pages with a hyperlink to my welcome page.

    I need help attaching a few hyperlinks my godaddy welcome page. I have 2 more ipages articles, I also converted them to pdf. Godaddy only helped (last year) with the 1st article.  I do not know how to attach a hyperlink to the artlcles and add the hyperlinks to my welcome page.

    The program is called Pages not iPages. Just let us know if you do not speak English and what language you do speak so we can adjust for that.
    The issues are to do with your web page not with Pages.
    I think you are asking how to link from your web page to your pdf articles. You must first copy those pdfs to your web server, or some other web location, and then provide html links on your welcome page to those pdf files.
    The pdfs themselves may contain links to other locations but I can not see that that is what you are asking for.
    Nor to what those links would be to.
    From your heading I think you may have confused the name of Pages, the word processing program, with web pages which are two different things.
    Peter

  • InDesign CS5.5 Exporting PDF master page hyperlinks only work on first 2 pages

    We recently upgraded from CS5 to CS5.5 and now our hyperlinks that go to different pages in the PDF only are working on the first 2 pages of each document in the book.  We have about 30 documents wrapped up in a indesign book.  On the master page we have hyperlinks that allow users to quickly go to the index in the back of the book.  After the CS5.5 upgrade the hyperlinks only work the the first 2 pages of each document.  We export to PDF(print) with hyperlinks enabled.
    I have tried the below:
    - I have tried 2 different computers
    - Deleted and re-created the indesign preference file
    - deleted and re-created the hyperlinks

    Can you recommendd the best way to manage the following:
    I'm on a Mac. Created an enewsletter for a client in Indesign CS5 with 7 "click here"s throughout the document. The hyperlinks are to connect w other PDF documents not URLs.
    Where will I have the best luck creating the hyperlinks - Indesign or in the PDF I export? I have Acrobat Pro if I need to create the hyperlinks in the PDF.
    Except I can't figure out how to create the links in either program as far as what name to designate and where do the PDFs reside so people can link to  them? And do I enter the file name of the PDF connected to the particular "click here."

  • Hyperlink buttons with click-animation

    Hi there!
    Is there a way to create buttons with "click-animations". I use images as buttons, which have transparent hyperlinks above so when the user taps on it he gets to next page or wherever.
    Unfortunately, this solution is not very nice if there isn´t any feedback from the button...
    I hope someone has a solution.

    Hello again - I've a solution.
    The Pop-Over widget has exactly the kind of bottonfeedback I´m looking for so I tried to take advantage of this.
    This is what I did:
    1.     First I used the Pop-Over widget as usual, with the image of the button I want.
    2.     Then I put the hyperlink on top of it and change the hyperlink opacity to 0%.
    3.     The scrolling region of the Pop-Over widget remains empty.
    4.     Now I set the opacity of the scrolling region to 0%.
    If I tap the Button now on the iPad I get to the desired page AND there is the wonderful tapping feedback from the button caused by the Pop-Over widget.
    5.     The final little Problem to solve: The Pop-Over widgets scrolling region is highlighted with a shadow, wich is just visible if you tap the widget. If the opacity of the scrolling region is set to 0% the shadow unfortunately remains visible. You can´t see it here in the picture - it´s only if you tap the button.
    But as you can see - there is an option to turn off this shadow and it is disabled. I tried for hours but I didn´t find any possibility to enable the option that disables the shadow.
    At the moment it disturbs only a little, because I get linked quickly to another page. Further you almost don´t see the shadow if the background is dark but you see it if there´s a bright background. But in an eBook you perhaps pay for, nobody wants to see a shadowbug.
    So, anybody has an idea now how to disable the shadow of the Pop-Over widgets srolling region?

  • Tried purchasing iTunes music. Put in my apple id and password then i was directed to a 'Terms and Conditions' page. I checked the box then clicked the 'accept' button next page read 'your Session has timed out '  try again  with a Done button to click on

    Tried purchasing music from the iTunes Store. When the window popped up I put in my apple id and password. Then I was directed to a 'Terms and Conditions' page. I checked the box next to the 'Yes I agree to these terms and conditions' - then clicked the 'accept' button next page read 'Your Session has timed out. Try again.'  with a 'Done' button to click on. Oh the same thing happens when i try to download  free iTunes. Yes I have tried & tried it again I even logged off and singed back in-- no joy 
    After accessing my iTunes account I was not able to change anything like my credit card number when I tried and was sent right to the 'Your session has timed out. Try again.'
    The last time I purchased any anything was on September 25th 2011 and the 'terms & conditions' page was last updated on October 12, 2011
    Does anyone have an idea to what is going on with my iTunes version 9.2.1 (5) and I can not upgrade to a higher version my iMac does not have the intel processor chip.Thank you for your time and help with this matter. You are greatly appreciated 

    I am having the same problem also! I posted on here about it, but no one has responded with ideas. I called technical support and e-mailed them, the only suggestions they gave was for the to turn off my firewall. But I didn't change anything, so it shouldn't suddenly stop working. Maybe this is just an iTunes issue? But it doesn't even recognize my account anymore, and I cannot log in now.
    If you happen to get an answer, will you please let me know what works for you?
    Thanks!

  • I created a web page in Adobe Illustrator and I can not seem to load it properly with the hyperlinks

    I created a web page in Adobe Illustrator and I can not seem to load it properly with the hyperlinks. Is there a certain extension I should use? HELP!!

    Tiger,
    Have you sliced the images, converted your design into HTML/CSS and tried to click the links?
    Peter

  • HOW to create an hyperlink to a different part of the doc with pages v5.0

    Hello, On Pages V4.3 it was possible to create a favorites and then create a hyperlink to these favorites in the same document.
    Since I have updated to V5.0 I don't find how to do it and don't find any updated manual.
    Is that possible? Do someone know how to do it?
    Thanks a lot for your help.

    Many features have been removed from Pages 5 and this is just one of them.
    You should have Pages '09 in your Appliactions/iWork folder.
    If you wish to stay with Pages '09 trash or archive Pages 5 so that it doesn't accidentally open your Pages '09 files and alter them.
    Peter

  • My time capsule was working and then I added another Macbook pro. TC stopped appearing in Airport Utilities. I have tried resetting TC, I have turned if off and held reset button with pen for 10 secs. I just cannot work out what else to do?

    My time capsule was working and then I added another Macbook pro. TC stopped appearing in Airport Utilities. I have tried resetting TC, I have turned if off and held reset button with pen for >10 secs. I just cannot work out what else to do? I have turned router off and on. Amber light is flashing.

    The ethernet says self assigned IP 169.254.67.6
    Then the ethernet is not getting an IP from the TC.. there is no connection.
    I am not sure where you mean when you say the green LED should be on. Do you mean the TC?
    Thanks
    In order to help troubleshoot ethernet connections all routers use connectivity leds.. even APPLE.. it has one big LED on the front.. and 4 tiny leds beside each ethernet port. That light has to come on for ethernet to be active.. if you plug an ethernet cable into the port and the light doesn't come on.. then there is no connection.. either the other end isn't plugged in.. or the cable is bad.. or the ethernet port is bad.. something is wrong.
    To get access to the TC you need this led to be green.. is it?
    If it is green and the WAN is also green.. then I want you to unplug the WAN connection.. the blue wire in the picture.. the port slightly separated from the 3 LAN port.. computer plugged just into LAN port.. no airport turned on.. and press the reset again for 10sec until front led flashes rapidly.. then try and bring up the airport utility again.. assuming the ethernet led is green.
    How old and what model is the TC?
    The A number from the rubber mat will tell us the model.

  • I'm having constant problems with pages not working. I.E.: I cannot fill in writeable fields, click on buttons... or anything... nothing on the page works. And, this is not exclusive to a particular site. I can, however, work well in Explorer.

    For the last few weeks I have had constant problems with pages not working. I.E.: I cannot fill in writeable fields, click on buttons... or anything... nothing on the page works. And, this is not exclusive to a particular site. It does seem to be a browser issue, because I can work well in Explorer.

    Both the Yahoo! Toolbar extension and the Babylon extension have been reported to cause an issue like that. Disable or uninstall those add-ons.
    * https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • Adding ana archive page with a link in the Navigation bar

    I am really new to all this so don't think that I'm a 'tard. I am building a blog on '06 and I like most of what I can do, but I can't figure out a couple of things. My current blog is with Godaddy (pronounced blow-daddy) and with that blog I have archives, recent entries and a calendar. Is there any way that I can duplicate that here? If not, how about just adding a blank page that I use for archives. I know that I already have one but I can't seem to make it visible in the navigation bar. Any help?

    No, you have to have a page for it to show up in navbar.
    The work around is to use refresh tag to redirect to your email address, here is how:
    http://www.geocities.com/[email protected]/Test/Front.html
    1) make a Front page
    2) make a Contact page, link Contact page to Front page's navbar
    3) editing Front page: search for href="Contact.html" change to target="_blank" href="Contact.html"
    4) copy contents of index.html
    5) editing Contact page: replace contents of Contact the contents of index.html
    6) search for http-equiv="refresh" content="0;url= some page.html" change it to http-equiv="refresh" content="0;url=mailto:[email protected]"
    7) add the following to the end of Contact.html
    <script language="Javascript">
    <!--
    setInterval("window.close()",2000);
    -->
    </script>

  • My buttons with hyperlinks are not browser compatible

    Hi, I've created an InDesign document that has simple buttons with hyperlinks and rollover stage. I have saved the document as an interactive pdf and uploaded to the site, when checking for browser compatibility, the hyperlinks are not working on Firefox 19.0.
    Does any one know how to fix this problem?
    Here is a link for reference:
    http://teen.idrivesafely.com/how-to-get-your-learners-permit.pdf
    Thanks

    I just found the answer in the following thread
    Hyperlink reuse
    go to the New Hyperlink button at the
    bottom of the panel or to the submenu in Hyperlinks, I can go to Shared
    Destination and...it DOES work. Thanks.
    Follow-up question: do I need to make all of the hyperlinks I create with
    Shared Destination or only those that will more than likely reappear in the
    document?

  • Adding bleed and trim lines with Pages?

    Hi - I a designing a book with Pages. The printing company wants trim and bleed lines to show in the final pdf. How do I add trim and bleed lines to each page in Pages? Also, they want fonts embedded. Does this happen automatically when crreating the PDF?

    Already checked that, Twitch. All the check boxes you mentioned already unchecked.

Maybe you are looking for

  • Field and Table for PGI status updation

    Hi All, I want to know in which field and table the PGI status will get updated. i.e. once we do the PGI for a delivery in which table will this PGI status gets updated. Thanks in advance for help. Harini

  • Connection error mysql database in Dreamweaver

    the error message is - HTTP error code 404 file not found. here are some possible reasons screen shot - http://netwizlk.site50.net/images/DW-error.jpg 1)there is no testing server running on the server machine. 2)the testing server specified for this

  • Migo no to posted Accounting document no Function module

    hi, Is there any function modules where i export MBLNR (gr no) and get the corresponding ACCONTUING DOCUMENT details. or tell me how to track the via database with high perfrormance Points assured. regards, Prabhu

  • Size of RAM in Win 7 64 Bit affecting performance in CS4

    Does anyone know how the size of RAM will assist  CS4 performance - particularly for H264 file encoding? I am running an i7-930 processor and 6GB of XMS3 Corsair RAM in a ASUS P6T motherboard - on Win 7 64 Bit Would increasing RAM to a full 12GB have

  • Problem in screen painter

    How to add a icon in the I/O field in the screen.is it possible.Also is it possible to draw horizontal and vertical lines in the screen.can any one of u please provide soln to this. Thanks. Vadivel