Link with a URL Variable Web buttons

Hey all:

I asked my question above in the general section of the forum InDesign, but a useful user suggested I repost it here since it will take a few magical scripts to accomplish:

My task of the end work has developed an interactive PDF catalogue of our products that my superior can digitally distribute and allow to navigate potential customers without accessing the website.

We have an Excel file which lists all the details of our products - name, description, title, image, category, etc. I used the data merge to create this 300 page document rather than the hand-copy each product information on a single page.

Unfortunately, I'm stuck now - I designed the catalog so that I have an image I want to make a button that, if the person wishes to buy a product, will take them directly the the product page online where he or she can add it to your cart. That's fine, but I can't seem to find a way to make the image button link a variable like the rest of the page content. Each product page links are included in the CSV file, but without a method of variable web link, I create unique links individually, which kinda defeated the purpose of using merge data anyway.

So my question is this - is there a way to make a button URL (image) have a web link function that can read from a CSV file and change each page like any other imported content? If not, is there another way to automate the process of individual link without placement on each page generated?

Thanks in advance,

Asher

If you use the above code to verify the script tag, it will have to go inside the loop for (i) , replacing the "b = p.buttons [0]" line. However, there was a typing error, because I put t button and instead I should have put b for the button.

Yes, a group. If you know that there is a single group on the page, so you don't even have to loop through the groups. Instead you can use:

t = p.groups[0].textFrames[0];
b = p.groups[0].buttons[0];

Of course, it will break if there is never more than one group.

Tags: InDesign

Similar Questions

  • Someone else's problem with the Web page jump when hovering the links with long URLS in Firefox 4 beta 12?

    When I hover over a link with a URL that is longer than what corresponds to the length of the status bar in Firefox 4 beta 12, the entire page jumps back until I stop hovering over the link. It was so annoying (especially on Google search pages with lots of links, etc.) In fact, I uninstalled Firefox 4 Beta 12 and returned to the release of the Beta 11.

    Is there anything in all: config which would disable the status bar that the URL link seen in, at least?

    Download the extension of evar 4 status bar. It solves this problem and also provides many other options of the bar of the addon. Here is the link: https://addons.mozilla.org/en-US/firefox/addon/status-4-evar/

  • How do I mask external links or open external links with my url, header and footer?

    Say there is www.exampleA.com, and I incorporate the site into an iframe on a sister site www.exampleB.com

    I want to either of the following the following:
    (1) external links to open www.exampleA.com in the iframe even on www.ExampleB.com (sister site).

    (2) external links to open with url masking.

    3) (open MOST IDEALLY) with header and footer and url of www.exampleB.com.

    Cannot find anything about the muse and the achievement of these objectives. There is a simple solution and hope I don't just see it.

    The ideas that I had, but only a beginner would be something like a blank page in www.exampleB.com with an iframe and rerouting somehow all links to open up in it.
    OR do a subomain with masking so that the links at open upward with the url of the www.exampleB.com subdomain.

    Thank you

    I don't see the problem. By default all links open in the same iFrame according to your number 1). So, unless I'm not understand what you're trying to do, you're worrying about a non-issue (apart from that being terribly bad style to your users).

    Mylenium

  • Show all results with the URL variable database?

    Hello

    I use PHP MySQL

    I have a database that is ordered alphabetically. I am trying to create a dynamic page that will only show A, B, C,... and so on. I got this by creating links, named after the letters of the Alphabet. I have a recordset that filters the table using a URL variable that uses the Type. Unfortunately, when I click the link it only shows the first record that contains an A. not all records that contain A.

    For example:

    I have a link which is just 'A '. His link is? Type = A. In the database table there are 3 folders that contain A according to Type, but when I click on it a single record containing A is displayed. I hope that you follow it.

    If you want a direct reference to what I do pass:

    http://cwhazzoo.com/gamelinktesting.php

    That's how my database is designed:

    ID (primary key) Name Letter
    0001Example AA

    I want to be able to only show the selected letter of the recordings using only a single page. Thank you!

    > Use the repeat region?

    Yes. That's what it's for.

  • Button link to HTML URL to open in the same window

    If the following code allows us to open an HTML link with the click of a button:

    function callLink(event:MouseEvent):void

    {

    var myURL:URLRequest = new URLRequest ("http://www.adobe.com/");

    navigateToURL (myURL);

    }

    The problem is that it always opens the link in a new window. So if I want to open it in the same window? Change the line to:

    var myURL:URLRequest = new URLRequest ("http://www.adobe.com/","_self");

    causes a compiler error.

    I'm embedding the swf in a web page of mine, so there is no problem of security regarding giving flash access.

    Try:

    function callLink(event:MouseEvent):void

    {

    var myURL:URLRequest = new URLRequest ("http://www.adobe.com/");

    navigateToURL (myURL, "_self");

    }

  • Bug trying to create the link with the Cyrillic characters in URL

    I'm transforming words in my text on the links, but with Cyrillic characters in their URL (such as https://en.wiktionary.org/wiki/ хорошо). The problem is that, depending on how create the link, the page refuses to accept the URL.

    It's my preferred method (which accepts not the Pages):

    1. Write or select the text to be transformed into link;
    2. Press cmd + k;
    3. Paste the URL (https://en.wiktionary.org/wiki/ хорошо) in the field;
    4. Hit enter or click out;
    5. When I check the link, it is www.apple.com.

    The strange is that other methods work very well.

    1 against nature (accepts Pages):

    1. Delete my word;
    2. In its place, paste the URL (https://en.wiktionary.org/wiki/ хорошо);
    3. Hit the space bar (a link is created automatically with the correct URL);
    4. Edit the link that is created and change its text;
    5. When I check the link, he kept correct.

    2 against nature (accepts Pages):

    1. Write or select the text to be transformed into link;
    2. Press cmd + k;
    3. Find a way to build a version with my URL (https://en.wiktionary.org/wiki/%D1%85%D0%BE%D1%80%D0%BE%D1%88%D0%BE) escape sequence;
    4. Paste the URL with escape sequence in link field;
    5. Hit enter or click out;
    6. When I check the link, ironically, is хорошо https://en.wiktionary.org/wiki/.

    To stretch more:

    1. Editing a link created successfully (with any success methods above);
    2. Changed its URL (from хорошо https://en.wiktionary.org/wiki/ to https://en.wiktionary.org/wiki/ плохо)
    3. Hit enter or click out;
    4. When I check the link, it's still хорошо https://en.wiktionary.org/wiki/;
    5. Finally edited and changed its URL still once, now remove the Cyrillic (https://en.wiktionary.org/wiki);
    6. Press enter, click out and he finally accepted the URL.

    Pages seems to be denying the creation of links with the URL that contains Cyrillic characters (only?), but exclusively through his little creation of link popup. I think it's a simple problem, but I'm sure it's very annoying.

    Everyone knows the same?

    Cyrillic characters in the range of table encoding UTF-8 code points u + 0400 - u + 04 FF are represented by two bytes. These people must be encoded as a percentage (read the two paragraphs of the current standard of article), as the Pages v5.6.2 will convert automatically URI to this encoding for you in the link Inspector. It will simply ignore what it considers incorrect URI links, they are Cyrillic, or even English.

    Use what is easier for you, and that Pages v5.6.2 accepts.

  • How do I open the browser web blackberry with a url given by a click of a button.

    Hi all

    I'm developing an application in which I want to open the browser web blackberry with a URL given using a click of a button. How can I do that. I use this code inside the earpiece button

    ' Public Sub fieldChanged (field field, int context) {}
    TODO self-generating method stub
    Private private = Browser.getDefaultSession ();
    browserSession.displayPage ("http://www.google.com");
    }

    What is a good way to do this? Please help me...

    Yes

  • Replacement of a URL with a Global Variable - syntax error

    I had a link URL address as following 30 places for printing the reports. That's why I decided to replace this URL with a global variable.

    The code was like this:

    Select ' < a href = "http://oasdev.oh.gov/reports/rwservlet?GDMS_ACR & Y ='|" : P106_YEAR | "& B =' | : P100_BUSINESS_UNIT_ID | "& C =' | : P106_COMMISSION_ID | "& d =('||) To_char(sysdate,'MMDDYYYYhhMISS') |') ...

    When I replaced it with the global variable like this:
    Select ' < a href = "GLOBAL_URL/reports/rwservlet. GDMS_ACR & Y =' | : P106_YEAR | "& B =' | : P100_BUSINESS_UNIT_ID | "& C =' | : P106_COMMISSION_ID | "& d =('||) To_char(sysdate,'MMDDYYYYhhMISS') |') ...

    It does not provide the value of the global variable. It shows that Web page not found error. Can anyone help?

    Thanks in advance
    Gouri

    Hello Kawa,

    When you say variable overall, do you mean to say the element of application level? If Yes, then you need to refer to that element, the same way that you reference level page elements using the: syntax.

    Change your query to something like this...

    Select '

    Thanks,
    Machaan

    href=" "="">
  • Create a button "hot link" to escape to the web?

    Hi, I looked around, but can't seem to find anything about it.  I'm running Encore CS4.

    I want to add a button in a menu, when you press on, jump to a URL on the web.  You know, like for more information goto this web site.

    How can I do?

    Best regards

    Pat

    Pat,

    If you create IN Flash, you can do it, otherwise, the pure DVD-card. are quite limited. The now discontinued eDVD had this ability, but he had questions porter to Vista, IIRC, and although I heard rumors of another purchase code, I saw anything like that come from that.

    We could also put URL links in the contents of the ROM on the disc, but even on a computer, you could use something like Windows Explorer to navigate to it. It would be obviously inelegant, but a simple button with the URL which are linked.

    Look in the Flash creative, because it might get you closer to what the customer needs.

    Good luck

    Hunt

    PS - I have a life. Right now, it is only out of the pool with the laptop, a golf course, lots of wine and travel with my wife... However, retirement is not all bad. None of the guests who want a URL in a button.

  • several URL for the button link

    I have a file flash loaded on more than 150 sites. The button in the file currently goes to a unique URL, but we develop the URL for the link for each site. How can I do this in a single flash file? I don't want to create 150 files flash with different links. Can I variables or something? I don't have much knowledge about this Yes please be patient with me.

    If you use flashvars or a query string of HTML code, you can use the following text in your swf file:

    navigateToURL (new URLRequest (this.root.loaderInfo.parameters.yourURLVariable));

    where yourURLVariable represents the name of the variable of flashvars

  • can anyone provide a link to insert the image with the text on the button in the apex 4.2.6

    can anyone provide a link to insert the image with the text on the button in the apex 4.2.6

    ReemaPuri wrote:

    in the workspace image:-resign.jpeg

    As a button? Seriously?

    Ok. First of all, because the image already contains text, there no point in including the same wording in the form of text on the button. Accessibility requirements can be met using re-sign as alternative text. 4.2, create an image button:

    Tag/Alt text: Re-sign

    Static ID: re - sign

    Style button: Image

    Button Image: & WORKSPACE_IMAGES.resign.jpeg

    To make the image looks more like a button, add the following CSS to Inline CSS property page:

    #re-sign img {
      margin: 0 2px 2px 0;
      border: 2px outset;
      border-radius: 4px;
    }
    #re-sign img:active {
      margin: 2px 0 0 2px;
      border: 2px inset;
      border-radius: 4px;
    }
    

    Finally, there is a bug in 4.2 that generates the incorrect URL for the button images, which requires dynamic action of Page Load to fix.

    Event: Loading the page

    Action: Run the JavaScript Code

    Code

    var resignImg = $("#re-sign img");
    resignImg.attr("src", resignImg.attr("src").replace("/i/", ""));
    
  • With the help of the button to go to the URL - request starts

    Hello Captivators!

    I have a question. I have a beautiful presentation of 50 MB 75 slides in Captivate, with audio. Everything works very well.
    I have a question. I have a button on my slide intro (splash screen) which allows the user to post a link to a url and get some
    information. Which works very well.

    But... When I click the button and the browser opens, the presentation starts playing (behind the browser window).

    I have not seen an obvious way to stop the presentation of the game. any ideas?

    Thanks for a great forum,

    eholzs1

    In the properties of the button to the right of the URL drop there is a small button down arrow.

    Click the button and at the bottom of the list, uncheck the item "continue to play the project.

  • How to assign URLs dynamically using button/link on the page of peoplesoft? Please provide detailed instructions.

    How to assign URLs dynamically using button/link on the page of peoplesoft? Please provide detailed instructions.

    1. define the URL, the Z_URL1 or the Z_URL2 definitions

    2. in the change of field button:

    If true Condition then

    ViewURL (URL. Z_URL1);

    On the other

    ViewURL (URL. Z_URL2);

    End - if

  • I want to know if it's possible in Adobe Muse to have a section on a Web page that updates every 30 seconds or 30 minutes with a URL for the snapshot of a live webcam feed

    I want to know if it's possible in Adobe Muse to have a section on a Web page that updates every 30 seconds or 30 minutes with a URL for the snapshot of a live webcam feed

    You can do this using Insert HTML, you must use the direct power code on the page of Muse.

    Thank you

    Sanjit

  • How to define variables in URL target a button?

    Hello

    I have a button on a page that calls a form of e-mail (Outlook in my case), through the following target URL:

    mailto:?subject=you have a request for a follow-up! & body =

    I have to enter the URL variables. The variables should take the values of the following fields on my page:
    E-mail assigned
    The message body

    In the end, the URL should look like:

    mailto: *(variable for e-mail) *? object =(no change) & body = *(variable for message) *.

    What is the right approach to use variables in this case?
    I'd appreciate any suggestion on this topic.
    Thank you!

    The following should work ( * & ITEM_NAME.* syntax )

    mailto: & P1_EMAIL. ? object = (no change) & body = & P1_MESSAGE.

    Where P1_EMAIL and P1_MESSAGE are elements (page or application). Do not forget the trailing *. * character after the name of the element

Maybe you are looking for

  • How can I delete a partition on a Mac Mini (end of 2012)

    Hello I would like to know how I could erase a partition I did by mistake. My Mac is very low in memory and, of course, I as soon as I open some applications Mac starts to bug... I just did an installation fee and it's still going slowly... When I tr

  • My Iphone 6 will not be to rebooth or level

    Tells me that his problem (53). Solve it I ve done everything on it your auto site:

  • Is anyone else who have difficulties connecting to the original games specifically Battlefield 3?

    I tried to connect battlefield 3 for ages and the sign of the origin in the window tells me my email or password is wrong or it cannot contact the server is someone having problems with the original?

  • Sims 3 Launcher stops working

    ive installed and uninstalled the Sims 3 several times but he always tells me that sims3 launcher has stopped working. I don't know what happened because it was working fine when I got it, but now its problems can give me please someone help me

  • Envy 5530: Reward of Hp

    I've changed the cartridge, it shows me the ability to have a reward, but when it is loading and playing of the printer it stops to % 68 Why? How can I get my reward? I lost the last 2 awards for this problem.