Creation of IDCS6 Mac interactive button with URL

I was asked to write a series of scripts that will automate the construction of interactive objects such as buttons that activate then a web page or an email address.  I looked at the object model and the button object has a property called gotoURLBehaviors which, if you look at a button that is already created, contains the web address of any web page, the button is shown.  The button works.

However, if I try to write in this list by using the add method ESTK tells me that this property is read-only.

How can the use of Javascript, I get my URL associated with the button that I create?

He got the add method

var niceButton = app.activeDocument.buttons.add(undefined, undefined, app.activeDocument.pages[0]);
with(niceButton){
    geometricBounds = [0,0,10,10]
gotoURLBehaviors.add({url :'www.myurl.com'})
        }

Tags: InDesign

Similar Questions

  • Button with URL and JS problem

    Hi guys!

    I recently posted on the deactivation of the items if another value of points is a value. I have enableItem() and disableItem() JS, and recently, I still had the process of default ApplyMRU. My buttons that url has been
    JavaScript:enableItem();doSubmit('SUBMIT');disableItem();

    but now when I created the Custom PL/SQL update process and it is subordinated to the INSERT query

    this:

    JavaScript:enableItem();doSubmit('INSERT');disableItem();

    don't nothing ;/ without the JS to update works great... but I also need the JS... Guys have encountered a similar problem before?

    With respect,

    PsmakR

    Hello

    First of all, I guess that your MRU is not subordinate to what whatsoever and that the request for INSERTION must always initiate the process?

    Secondly, I've seen problems with javascript calling a model button. I tend to use a custom template (as described here: button and function )

    Finally, as long as the doSubmit() happens in reality, the disableItem() function call will not work (the page is loaded by sending, so javascript on this page stop right there). If I understand your needs, you must activate a front element of the subject so that it is presented with the page. The page is unloaded and reloaded after sending, you must make sure that the disableItem() is called when the page is reloaded

    Andy

  • Button with URL redirection sends do not all the values of the checkbox

    Hello
    I have a page/form with a checkbox element. Multiple values can be selected.

    When you view the page, there is a button that when clicked, has an optional redirection defined. The value stored in the checkbox element has been specified to go to the new page.

    When the button is pressed, only the first selected value appears on the new page. The two values appear to be sent in the URL
    The segment of the url by passing this value has two points separating the values.
    ...,Value%20A:value % 20 b...

    How do you manage values multiple items in the option redirect 'place these items' & 'with these elements' definition

    You can't spend colons in the value of the element within the f? p URL. If the checkbox element is already in session state in a list of values separated by a colon, then you don't need to pass it in the URL. The target page can reference it by name.

    Scott

  • Problem with interactive buttons

    Hi all

    I seem to have trouble with interactive buttons.

    InDesign CS5 - Version 7.0.3

    I create a document with 2 pages (Pages face is checked).

    Add a text box to each page, Page it says "1" text box and two page says '2 '.

    Text box on page two I right click and select Interactive | New hyperlink Destination - Type: Page, Page: 2, Zoom adjustment: fixed

    On the Page, one I add a sample since the button panel button.

    I select the button and then display the button panel.

    I delete the default "Go To URL" action and add a 'Go To Destination' action using the event to "on release".

    When I preview the page in the "Preview" Panel, I click "Play" and that he can see the first page and the (large) button, but when I click on the button, nothing happens.

    Changes of mouse I have the mouse on the button, the button state changes rolling State... everything seems good, but it is not actually exercise the action of going to the next page.

    I tried the export in PDF and ensuring that 'Include bookmarks' and 'Référence' is checked so that ensuring that 'create PDF containing the tag' is checked, but the exported pdf file does not work the action!

    What I am doing wrong? It seemed so easy when I watched some video tutorials on how to do it.

    Any help would be appreciated.

    Thank you

    Andy

    You export to PDF (Print), by the sound of it, and the buttons do not work in Print PDF. Try to export to PDF (Interactive).

    And ID update for 7.0.4

  • Button redirect URL always redirects with the Validation Error Messages

    Hi all
    I need help/clarity on not allowing a redirect button redirect the page when there are Validation Error Messages that appear on the Page. I use a form with about 10 postings. I don't want an end user to be able to continue to use / click on the redirect if one of these Validations button occurs. My button redirect URL lance a standard call to redirect javascript to pass some values of 1 shape to another shape, button calls the function. I also have a Condition on the button which does not display this button based on some users. Any help with this is certainly appreciated.

    OK, your always using management of javascript, can you not use a branch of the page under branches? Set the target under the button - no target - and because using a branch of page, you can set the domestic fire after calculations and validations, use a branch of the page...

  • How to view the text onto an interactive button in Indesign CC?

    How to view the text onto an interactive button in Indesign CC?

    I'm doing my map.

    I am now able to link a button in my card to a website url, but what I really want is a way to make the text appear next to a button, it shows what kind of construction is by turning over with the mouse.

    One?

  • Interactive buttons, working on the Adobe Viewer, but not on the final application

    Hello world

    I had a lot of problems with interactive buttons:

    I made buttons with link with 'pageTo' and 'getURL' (and the "navto://Article#2" syntax).

    What I already know:

    • When you use the "navto" syntax, the first page is 0 (and not the 1 page);

    • I double check spelling of the Article and that's okay.

    the problem is that when I test the application with the Adobe Viewer on my iPad these links work well, but when I create the app and I test on my iPad .ipa file these links no longer work.

    I work on Mac.

    someone has an idea?

    Thank you very much!

    It is a known problem with the simple editing applications. Do not submit this app to

    Apple and keep an eye on things here for an announcement on a fix.

  • When you click on the button / target Url, how say the program take URL as a value in a field on the page

    I have a page with a button and an entry (MIOCAMPO) field that contains a URL. Is possible, in the properties of the button, in the section "when button Clicked/Url target", ask directly the program, take the value stored in my field? For example, for the static value http://www.oracle.com I directly write this address in the "Url target", but, when this address is written in my MIOCAMPO area, ca how? I tried these bad manners:

    (1) MIOCAMPO

    (2): MIOCAMPO

    3) || MIOCAMPO

    (4) & MIOCAMPO

    I have the button send the page and you can specify MIOCAMPO, use a branch "branch of Page identified by post. This should work for you, that destinations are in the same application.  There is also a "branch to URL identified by the element.  You could even two handsets using conditions.

    Hope this helps

    Thank you

    -Jorge

  • animate interactive icon with a privilege .oam on edge

    Hello all the world I meet muse on a problem, I hope you could you help me come.

    I make a lively and interactive icon with a link to a page of the site on edge animate with a .oam rendering for use on muse. When I test it on the browser, the link works fine, however a liver on muse, send the link appears only in the square of the "icon. I don't know where my mistake help me is it you please.

    OAM - is a site within the site, located inside an iframe. Therefore, the button can be used only as _blank, _self not OAM. You must change this in edge animate and re-export OAM

  • InDesign interactive button CC does not declare all appearing when you export as interactive pdf

    Using InDesign CC, I have created buttons with normal turnover, click on States with action to show/hide the other buttons of release or tap, then exported as an interactive pdf. Everything works except the State of 'click' of the button, I get the normal and the reversal. Any suggestions?

    Could be done by two buttons in InDesign, where, after the click, the button mask itsself and shows the second orange 100% button. Need you a "reset" button but to show the first button again if needed later.

  • is STRICTLY oriented Panel "folio overlays" to creating applications? I don't have an app but you need an interactive document with overlays.

    The interactive panel inlays that can be used in the creation of pdf? Is he just focused strictly on creating applications?  I did not need to create an app at all but I need an interactive document with overlays.

    Yes.

  • Interactive form with the issue of personal calculation

    Hello, I'm new to javascript and met with a coding problem.  I have an interactive pdf file it is a purchase order in bulk.  The form calculates the subtotal.  My form has to calculate sales tax (0.05%), if a resident of Hawaii.  I created a radio button with a Yes or no answer.  The Yes option button exports as a de.005 value.  The answer didn't export the value 0. I know that I mean if the value of 'taxyn' est.005 and then multiply by "Subtotal".  If the value of 'taxyn' is 0 then put 0.   I use the script in the section below custom calculations.  The result is that ' yes' or 'no' radio button the response always calculates the tax.  What Miss me?

    the value at 0.05% tax rate

    var tax_rate = 0.005;

    Get the value of the option button

    taxable var = getField("taxyn").value;

    Get the value of the subtotal field

    Subtotal var = getField("subtotal").value;

    Set this field value

    If (taxable! == 'Off') {}

    Subtotal = Event.Value * tax_rate;

    } else {}

    Event.Value = "";

    }

    Thank you in advance!

    Melissa

    You have entered "totqty" as a field in its own calculations

    script... So, whenever the value is updated, it adds its own value to

    himself. That is why he continues to expand whenever you make a change to the

    option buttons.

  • Video AutoPlay when you add the interactive button

    I'm having a problem with a video slide auto play when it is added an interactive button.

    The first slide of the project, I have an interactive index climbing to different slides. When he jumps to another slide video slide goes automatically into play, but when you add an interactive button to return to the home page video auto is more parts.

    I added the SS to display the index and video slide.

    Just a guess here, but generally a button has a built-in break. You should maybe check and adjust exactly where the break is underway.

    See you soon... Rick

  • Delete interactive buttons on all pages

    Hello

    I'm new here and I'm from Germany, if I apologize in case for any missunderstandtings.

    The problem:

    I have a PDF file with like 1000 pages. On each page, there are interactive buttons like 'Next', 'previous', 'Contact' and so on...

    Now, I would like to remove the 'Contact' button that, on each page of the document - in one fell swoop. All contact buttons have the same exact settings, they have been reproduced in the entire document. If the button should be the same on each page.

    There must be a way to delete all Contact buttons again--in one fell swoop. So, just like saying "duplicate on pages", I just want to say "delete this button on every page.

    Is there a Javascript code to deal with? Or in any other way?

    Just to say it again: in a hit means both. I don't want to go through each point highest page each touch button and then remove. That would take me ages to 1000 pages. And I have several branch do in...

    THANKS FOR ANY HELP

    With the help of Adobe Acrobat Pro Xl

    Document createt in Xl Pro, not in Indesign.

    Sort the fields in the list in alphabetical order, not page number, then

    they should all appear one after the other. If they have the same name that they

    should even appear under a single item in the list, you can select

    and remove with a single click.

    Wednesday, October 16, 2013 at 12:30, Thunderstruck200 [email protected]

  • Replace the button with Image

    How to replace a button with an image?

    Could you please provide more details, if you are referring to a web page, you can provide the URL and let us check.

Maybe you are looking for

  • Predictions of Google instant not working not

    Hello I don't know why, but now it does not work Google instant predictions and with works of internet explorer I checked in settings and prediction research instant Google is running

  • HOW I WANT MINI UPDATED MY LENOVO VIBE Z2 TO LOLLIPOP?

    Hello, I accidentally bought a LENOVO CHINESEE VERSION Z2 MINI VIBE. Android is kitkat 4.4.4. I want to upgade to Lolipop. But when I want to upgrade, it says "setting has stopped." What should I do? Is I can't switch my smartphone to lollipop for al

  • Performance system for W530 scores?

    I would like to know what other system performance scores are (performance/system/control panel) on their W530s... specifically configured with : Intel Core i7-3720QM processor (6 MB Cache) NVIDIA Quadro K1000M graphics with 2 GB of DDR memory 8 GB D

  • Frequency image-refreshing issue

    Hello I had this problem: I have display 3 different images in a sequence. Entire sequence 1 last second (0.3333 by image) and will be continuously repeated. During this operation, I have a few display problems - some occurs flashing white in the pho

  • Display quality desktop wallpaper?

    The display of desktop wallpaper is always poor and does not properly handle the colors. My monitor is calibrated correctly with the pantone huey pro.  Color display correctly in photoshop and viewer of images, but not on the desktop.  How can I fix