InDesign Changing Hyperlinks

OK this is annoying. I want to embed 'Tweet this' style links. This is possible using a link such as this:
https://twitter.com/intent/tweet?text=The+project+attempted+to+follow+an+agile+methodology +%26+borrow+the+Lean+Startup+principles+of+Build-Measure-Learn+%23mlearnreport&source=clic ktotweet
However when I past this into InDesign as a link it changes it to:
https://twitter.com/intent/tweet%3Ftext%3DThe%2Bproject%2Battempted%2Bto%2Bfollow%2Ban%2Ba gile%2Bmethodology%2B%2526%2Bborrow%2Bthe%2BLean%2BStartup%2Bprinciples%2Bof%2BBuild-Measu re-Learn%2B%2523mlearnreport%26source%3Dclicktotweet
which return an error page. Can I stop InDesign from changing the + to %2B??

@Tim – this is a well known bug in InDesign CS6 that persists in InDesign CC.
For the cause see my answer in #1:
http://forums.adobe.com/message/4463255#4463255
I will repeat that here:
Background:
It seems that every URL that is filled in in the Hyperlink palette is encoded with something like encodeURI() (a global ExtendScript function):
string encodeURI (text: string)
Encodes a string after RFC2396.
Create an UTF-8 ASCII encoded version of this string. The string is converted into UTF-8. Every non-alphanumeric character is encoded as a percent escape character of the form %xx, where xx is the hex value of the character. After the conversion to UTF-8 encoding and escaping, it is guaranteed that the string does not contain characters codes greater than 127. The list of characters not to be encoded is -_.!~*'();/?:@&=+$,#. The method returns false on errors.
To get it back to a working URL we could decode it by "decodeURI()":
string decodeURI (uri: string)
Decodes a string created with encodeURI().
For a remedy (or workaround) you could use the following script (JavaScript/ExtendScript) from me with an enhancement by Joe Fugate:
http://forums.adobe.com/message/4826322#4826322
Or a script snippet (JavaScript/ExtendScript) presented here by Peter Kahrel:
http://forums.adobe.com/message/5479294#5479294
Uwe

Similar Messages

  • Interactive pdf in indesign with hyperlinks warning

    create adverts that are interactive pdf in indesign with hyperlinks and mail to links and now we are assembling the document back together in the form of a book but on importing the pdf back into indesign we are getting the
    warning: “this file may contain newer extensions or information than this viewer can support. it may not open of display correctly and cannot be changed.”
    when the pdf imports the hyperlinks on the text work but the hyperlinks on the images are gone?
    Using version cs5 v7.0.4

    @Steve – I'm not so sure about that.
    At least the OP could experiment with Acrobat Pro's "Import as Layer" function.
    With "Import as Layer" you could import another PDF to a new layer.
    But I don't know if all the interactivity will stay in place and will be working.
    Did not test that yet.
    See the screen where I did layer two different PDFs together. A German version and an English version of the same document:
    "Import as Layer" is an option in the Layers at the sidebar of Acrobat Pro.
    As you can see there are some options for positioning with "Manual positioning".
    Acrobat Pro's Layers with options:
    Uwe

  • How To Change Hyperlinks And Nav Menu Colors

    I continue to see people stating that it's impossible to change hyperlink colors and navigation menu colors until after you publish your site. This is not true. It's quite easy to update your templates with the colors YOU want and when you update the template, you never have to mess with any post-processing. You make a new page? Your colors are already there.
    I've gone over this before in this thread:
    http://discussions.apple.com/thread.jspa?messageID=3288533&#3288533
    But I'll go over the quick and dirty version here as well. Those who want more detail can post a question and I'll elaborate.
    First, do you know how to get into iWeb's inner folders? You right click or control click on your iWeb icon and select Show Package Contents from the pop-up menu.
    Step 2
    Once you've done that, you'll see a new Finder window that shows a folder called Contents. Open that and then open the next folder Resources. Within Resources there's a folder named Shared. Open the Shared folder.
    You're now looking at your collection of iWeb template files. You'll notice that each template has seven individual page files - each file defines the layout and styles for the page for which its named. This is actually one of the two places where you'll find the data/images that make up your iWeb pages. This location only contains the images. Now I'll show you were to find the data file.
    So you're currently here:
    /Applications/iWeb/Contents/Resources/Shared/
    You want to go here:
    /Applications/iWeb/Contents/Resources/English.lproj
    Now if you speak another language and your Mac's system language is set to the language you speak, substitue English with that language. If your system is set to English regardless of the language you speak, and you use the English templates, then stick with the English folder.
    When you're in the English.lproj folder, you will see seven sub-folders and one file named TemplatesInfo.plist. TemplatesInfo.plist is the file that registers the templates and tells iWeb what you've got in your collection. But we don't care about that file for now. We're after the template data files.
    The seven sub-folders are aptly named for each of the seven page-types as you can see. Open the About Me folder.
    Now you will see an "about me.webtemplate" file for every template you have in your collection. Good job. You've learned something new. Move on to Step 3.
    Step 3
    If you haven't decided yet, now's the time to decide which template you'd like to update. If you're just along for the ride to learn something new, no worries. We won't do anything you can't undo.
    Pick a template file now. Perhaps you chose the White template, or:
    White About Me.webtemplate
    Right click or control click on this file and select Show Package Contents from the pop-up menu. This will launch a new Finder window that displays the contents of the White About Me.webtemplate file.
    You will likely see a handful of different files, but the file you want is the one named Index.xml.gz.
    Index.xml.gz is the brain behind the template. Within this file are all the settings for the page you chose and it's really not hard to find what you want and change it. So let's take a peek.
    Step 4
    Double-click the file Index.xml.gz. This will reveal a new file named Index.xml. You might have to scroll down in your Finder window to see it. Rename Index.xml.gz to Index.xml.gz.backup in case you screw things up, you have your original.
    Now, open Index.xml with TextEdit. Do not open the file with a code editor unless you have already formatted the file.
    When the file opens, you'll notice it's one gigantic jumbled mess of stuff. No worries, we'll straighten that out. All you need to do is a find/replace.
    Find all instances of: ><
    And replace with:
    <
    The line break is important so maybe just copy the lines right out of this post. When you replace all of those, the file will be far more easy to view.
    Assuming you've completed that step. You're basically ready to make your change and test it out! Not hard ey?
    So let's say you want to change your hyperlink color from grey to blue. Search for this string:
    BLDefaultHyperlinkCharacterStyleIdentifier0
    When you find that string, you will see a few lines below it, two lines that look similar to this:
    <sf:fontColor>
    <sf:color xsi:type="sfa:calibrated-rgb-color-type" sfa:r=".8" sfa:g="1" sfa:b="0.4" sfa:a="1"/>
    This is how the template specifies color. It's RGB100. Your Mac came with a program called Art Director's Took Kit and that application can tell you the RGB100 values for any color you want. Tinker with that and you'll have a lot of fun with this.
    So I picked out a nice royal blue for you. The RGB100 values for it are:
    R:0 G:25 B:100
    What you need to do is update the color line to match those values:
    <sf:color xsi:type="sfa:calibrated-rgb-color-type" sfa:r="0" sfa:g=".25" sfa:b="1" sfa:a="1"/>
    Notice that you specify these in terms of a percentage, where 25 became .25 and 100 became 1.
    Step 5
    Save your file. It's time to see your work in action. Open iWeb if it isn't open already and create a new page using the template you've just altered. If you altered the White About Me page, then select that and create the new page.
    It there are hyperlinks already on this page, you should already see that they reflect your new color. If there aren't any hyperlinks, then type some text and create one. You should see your new link color right away!
    Now if you don't see the new color, either you picked the wrong page or you neglected to rename the Index.xml.gz file a few steps back. If you did not rename that file, then it's still in control of your template. Rename it now and try again.
    If you don't like that color, simply swap back to the TextEdit page and change it until you like it - switching back and forth between the file and iWeb to view your changes. Once you're happy, make note of the color you chose and make the change for the remaining six pages in the tempalte you selected. Just be sure to follow the steps for each page you edit. If you fail to see your change, again, check to see that you renamed Index.xml.gz.
    Side Notes
    For the more technical, rather than editing an existing template, you might want to duplicate and rename a template. This essentially creates a brand new one. If you're pretty good within Finder then go for it, just be sure that you duplicate the files in both locations:
    /Applications/iWeb/Contents/Resources/Shared/
    /Applications/iWeb/Contents/Resources/English.lproj/...
    Choose a unique name for the duplicated template and change every single file so that the new name replaces the old one. You would have to register this new template in the TemplatesInfo.plist file as well, but I'm not going to get into that here.
    The thread I referenced at the top has all kinds of search terms to find the other hyperlink styles (rollover and visited) and all the navigation menu styles plus a bunch of other fun stuff.
    Now, it seems long, but that's because I wrote it well. The shortest version of this I've ever written was two sentences, but that was for a UNIX geek and he got it. It's just as easy for you, but I write it out so that anyone can do this, because anyone can. It's just not hard.
    If you have questions about any of the steps, go ahead and ask.

    Good. Okay here's how to apply a background color to your nav bar buttons. For example, my Aerolite template sets the selected page to a black background color. The rollover effect uses a gradient fill. I'll describe both of those here.
    First, here are the navigation menu search terms:
    navbaritem-style-normal-default
    navbaritem-style-rollover-default
    navbaritem-style-selected-default
    navbar-pargraph
    The first three set the button effects and text colors. The last one there sets the font, font size and other paragraph styles.
    To change the selected page button background color, or gradient or image, first search for it using the search term above. Start from the top of the file because there are two instances of those terms, one where you can set the values, the other is only reference to the first and does not allow you to change settings.
    When you find the search term, you might want to insert an empty line above it to help separate it from the rest of the code. You can also insert an empty line below the section. The end of this style ends with:
    </sf:navbar-item-style>
    Be careful not to mix that up with </sf:navbaritem-character-style>
    Now, within this section, you'll find all kinds of settings... stroke, fill, character styles, etc. Notice you can change font color in there. But for this demo, you want to find the section that looks like this:
    <sf:fill>
    <sf:null/>
    </sf:fill>
    I'm assuming you're editing an Apple template that does not already have a fill effect. If it does have one, then your example might not look exactly like that.
    To apply a color fill, change those three lines to these lines:
    <sf:fill>
    <sf:color xsi:type="sfa:calibrated-rgb-color-type" sfa:r="0" sfa:g="0" sfa:b="0" sfa:a="1"/>
    </sf:fill>
    You can see that we've inserted the line that specifies color - something you should be familiar with by now. Here you can specify the color that will become the background of your nav bar button. This example specifies black. Easy no?
    If you would prefer a gradient fill, then replace those three lines with this:
    <sf:fill>
    <sf:angle-gradient sfa:ID="SFRAngleGradient-1111" sf:opacity="1" sf:type="linear" sf:angle="0">
    <sf:stops sfa:ID="NSMutableArray-1111">
    <sf:gradient-stop sfa:ID="SFRGradientStop-1111" sf:fraction="0">
    <sf:color xsi:type="sfa:calibrated-rgb-color-type" sfa:r="0.40" sfa:g="0.40" sfa:b="0.30" sfa:a="1"/>
    </sf:gradient-stop>
    <sf:gradient-stop sfa:ID="SFRGradientStop-2222" sf:fraction="1">
    <sf:color xsi:type="sfa:calibrated-rgb-color-type" sfa:r="0.64" sfa:g="0.66" sfa:b="0.54" sfa:a="1"/>
    </sf:gradient-stop>
    </sf:stops>
    </sf:angle-gradient>
    </sf:fill>
    Now, don't panic Here's what this is. The first line allows you to specify the angle of your gradient. Play with the numbers from 0 to 359 until you have what makes sense for your design.
    Then, you will see two familiar lines again - the lines that allow you to specify color! The first line is the first color of your gradient and the second color is the second color of your gradient. That's all there is to it!
    SECRET: It might be possible to add additional colors, not just two. Do you see the part sf:fraction="0" and sf:fraction="1"? These are gradient stops. I'm willing to bet that if you inserted a thrid gradient stop with a fraction setting of .5, you'd have a three-color gradient!
    <sf:gradient-stop sfa:ID="SFRGradientStop-3333" sf:fraction=".5">
    <sf:color xsi:type="sfa:calibrated-rgb-color-type" sfa:r="0" sfa:g="0.25" sfa:b="4" sfa:a="1"/>
    </sf:gradient-stop>
    I have never tried this - it just occurred to me as I was looking at this code. Big prize for the first person to prove the theory
    NOTE: You will notice that the number 1111 and 2222 are within this code. iWeb XML relies on identification tags here and there. It's nothing you really have to care about except if you insert gradient fills in more than one area. Those numbers need to be unique so if you paste that code in for your selected page button and then paste it again for your rollover buttons, you'll need to update the numbers for the second button. Any numbers are fine. Use 3333 and 4444 for the second set, 5555 and 6666 for the thrid and so on. I often just type 4345781476 - doesn't matter.
    Next lesson will be images.

  • Changing hyperlink text colors.

    I saw few posts asking about changing hyperlink text colors. And there are many camps regarding this topic. Suzanne Boben would recommend editing template XML . Some would recommend editing published HTML code. Some would recommend editing CSS code.
    But it came down to couple things.
    1) proficient in XML, HTML or CSS
    2) tried different colors, but it did turned out as expected
    One easy way is editing CSS files, this only apply to pages' hyperlink text; if your text got turn to PNGs, read no further .
    iWeb generates a CSS file for the associated HTML page - CSS file is in the Page_files folder.
    Edit the CSS files and keep copies of them, then you won't have to edit them again the next time you publish you sites.
    These CSS files are quite easy to understand, all you have to do is to look for a { , a:visited { and a:hover { .
    They contain RGB (Red Green Blue) values for link color, visited link color and rollover color.
    But what about those #8000FF and #4c4c4c?
    Well, I know they are RGB hexadecimal color values, but I don't what colors they are, so I came up with Argiope (Argiope is a family colorful spiders).
    It's a colors picker application to help with choosing background color, link color and rollover color. It'll give you the exact RGB hexadecimal value of chosen color.
    You can find Argiope here. Enjoy

    It can be done, but I have to do too much works.
    I already have a a script to do that, but it's quite complicated for an average bear.
    http://www.geocities.com/[email protected]/iWeb_utils --> LinksColors.zip
    Does just that, it is flexible, you can configure the colors for individual page, but it is quite different to configure. Look at the colors.txt and page.txt.
    If you really want to know more, ping me.

  • Changing hyperlink text color...

    I see how to change hyperlink text colors for a page (normal, rollover, visited, active) but I am hoping for something more complicated- I would like a link to change color on rollover, but stay that color until another link is clicked, then return to its original color. ( I have a swap image applied to five links on a page, clicking on each word displays a different image.) Is there any code I can add that will get a link to remain a rollover color until something else is selected? Thanks in advance!

    CSS menus are much leaner and more efficient than image rollovers.
    Persistent Page Indicator on CSS Menus
    http://alt-web.com/Articles/Persistent-Page-Indicator.shtml
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Change hyperlink display option settings

    Hello,
    I'm using Robohelp HTML 9. We have just decided that all our hyperlinks to pdfs need to open in a new window. However, previously this was not a standard, so not all of our hyperlinks open in a new window.
    Is there a way to change the default settings for display options of all hyperlinks within a project to "New Window."?
    I know the slow method is to go through each topic, and change hyperlink properties for each and every external link.
    Thanks in advance for your help.
    Tas

    Yes unless you have a developer who can write a regular expression to do it. If you do, back up first.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Anyone managed to change default hyperlink colour or to globally change hyperlink colour in Pages????

    Anyone managed to change default hyperlink colour or to globally change hyperlink colour in Pages????
    - Thats all I  want to do, the holy grail of desktop publishing, being able to choose a colour and apply it everywhere, c'mon Apple sort it out, its surely not rocket surgery....

    I figured it out.
    Select one instance of the hyperlink, and define it as a character style in the styles drawer.
    Then create the preferred style you want to use for hyperlinks and save it to character styles.
    You can select every instance of the original link style, and replace with the preferred style.
    Hopefully I've explained this adequately.
    Cheers.

  • InDesign "Invented" Hyperlinks

    I am working on a 300 or so page document that has in it references to other articles that appear on the internet here and there. In some of those references, InDesign made hyperlinks out of the few words that are the reference and placed a box around those words. I don't want these references to be links and I don't want the boxes. How can I get rid of the links and the boxes in one step and not one at a time (there are lots of them)?
    Thank you.

    Well, InDesign doesn't do this (unless asked to), so the hyperlinks were there in the original document that you imported.
    Call up the Hyperlinks palette, click the first one to select, scroll down and shift+click the last to select them all, then click on the lil' Trash Can or select "Delete Hyperlink/Cross Reference" from the palette menu. ID will ask if you want to 'convert to text' but that's only applicable for cross references.

  • InDesign CS4, Hyperlinks, Buttons and PDF

    Hi All,
    I'm having a few issues getting InDesign CS4 to output a PDF with interactive elements that works correctly. The brief is fairly simple, a PDF at the top level should open other PDFs in a 'pdfs' folder. The top level PDF contains a lot of links to the content in the 'pdfs' folder, this changes over time and a new top level PDF is created.
    Initially I created an InDesign document with a table containing hyperlinked text that you could click on, this was what the client wanted. I used the Hyperlink panel to create a new hyperlink that linked to a FILE and selected the PDF in the 'pdfs' folder that I wanted to open.
    The problem with this approach is that the link when viewed in Acrobat contains the action to open a web link which immediately presents a warning that the document is attempting to connect to the file. If you allow it then the PDF is opened but in a web browser.
    A second problem with this approach is one of portability, the links are hard coded and if you move the files to a new location they simply don't work as the previous location can't be found.
    Next I tried creating buttons with actions to open the PDF. This works and is portable as there is some logic when looking for the file to open but you have no say over whether the file is opened in the same window or a new window.
    I have been unable to work out how to change this in the PDF, you have to manually re-link the document in Acrobat where it will ask you whether you want a new window and then delete the previous action.
    Is there a better way to achieve this other than creating all the links manually in Acrobat? The project currently has a relatively small number of links but that will not always be the case and I can only see this getting more difficult and error prone as the project moves forward.
    Regards Alan

    Try this.
    http://indesignsecrets.com/making-relative-hyperlinks-to-files-in-indesign.php
    I tried this option and it worked, but it opens the pdf files in an internet browser.
    But it did allow me to open the links on different computers without a problem.
    good luck.
    Josh

  • Changing Hyperlink Settings via JS

    Hi there,
    i have a bunch of InDesign CS3 documents where i need to change the zoom-setting for all hyperlinks.
    how can i access the zoom-setting of all selected hyperlinks via javascript and set it to "fit to window".
    i hope someone can point me to the right direction here.
    cheers,
    christian

    yes, sorry. here we go:
    doc = app.activeDocument;
    var hyLinkPAGE=doc.hyperlinkPageDestinations;
    for(var p=0; p < hyLinkPAGE.length; p++)
         hyLinkPAGE[p].viewSetting=HyperlinkDestinationPageSetting.FIT_WINDOW;

  • Can I change hyperlink globally ?

    Hi there,
    I created a catalog in inDesign. This catalog is pretty much a long list of all the training materials that we offer in our organization.
    Each link has a hyperlink that directs the client to their training. it works really well.
    Now I got a request that I am not sure how to respond. I need to add a link (a part of a link) in the begining of each hyperlink ( same piece of link to each hyperlink).
    Can I do it globally (at once) or I need to change it one by one?
    Thanks for helping

    Change it in the text, and let the command in the hyperlink panel create all links again from the URLs in the text.

  • What is a best practice for managing a large amount of ever-changing hyperlinks?

    I am moving an 80+ page printed catalog online. We need to add hyperlinks to our Learning Management System courses to each reference of a class - there are 100s of them. I'm having difficulty understanding what the best practice is for consistent results when I need to go back and edit (which we will have to do regularly).
    These seem like my options:
    Link the actual text - sometimes when I go back to edit the link I can't find it in InDesign but can see it's there when I open up the PDF in Acrobat
    Draw an invisible box over the text and link it - this seems to work better but seems like an extra step
    Do all of the linking in Acrobat
    Am I missing anything?
    Here is the document in case anyone wants to see it so far. For the links that are in there, I used a combination of adding the links in InDesign then perfecting them using Acrobat (removing additional links or correcting others that I couldn't see in InDesign). This part of the process gives me anxiety each month we have to make edits. Nothing seems consistent. Maybe I'm missing something obvious?

    what exatly needs to be edited, the hyperlink or content or?

  • Recent InDesign change suppresses non-printing layers when exporting to EPUB

    I hate it when development teams quiety "fix" features I've come to rely on.
    I am using InDesign CC 9.2.
    Until a recent update, when I exported a book to EPUB from InDesign, layers which were set to show but not print were included in the export. I relied on this because my documents include a non-printed Table of Contents block on the first page of each piece included in the anthology. This block causes the correct page to be set when generating the TOC (notice that it's on the page facing the title, not the title page itself) and is used to print the correct title on the title page of each story and running headers throughout the body.
    (An example document - Click for full size)
    Up to at least January 2014, when I exported to EPUB, that visible-but-not-printed block was included in the XHTML output. I could then modify CSS to optimize for e-reader display and the title and author names would appear at the top of each piece. Sometime within the past couple of months, that has changed: layers that are not printed also do not export to EPUB. This wouldn't be so big a problem except that the printed title in the image above also is not output to the EPUB file, because it's a text variable in the underlying master page.
    If you like reading and messing with markup, as I do, the next two images illustrate the problem.
    (The old output - Click for full size)
    The new output:
    (The new output - Click for full size)
    I have five volumes of the anthology so far (comprising roughly 30 stories each) with a new one coming out every three months. Now that this change has been thrown at me, I need to get it resolved or come up with a good workaround while I only have a couple hundred documents to update, instead of double that a year from now.
    Thank you for any help or suggestions you can provide!

    Going back through every document to override Master Page objects just to get the elements to export is not a realistic workaround.
    The change that suppresses visible but non-printing objects is annoying, but at least it's a documented change in 9.2. The change that suppresses all Master Page elements as well is not documented (or at least not documented in an obvious way) and so to me it's a bug.
    Ideally, if these new changes are required by some users, the old behavior could at least become an option: the export to EPUB dialog could add checkboxes for "Include non-printing objects" and/or "Include Master Page elements" so that users like me are not left with no way to continue to use existing functionality.

  • Batch change hyperlinks in pdf

    I'm looking for a way to batch change many hyperlinks. Example.
    Existing link.
    http://www.mycompany.com
    Need to be
    http://www.anotherdomain.com/redirect.php?destination=http://www.mycompany.com&Variable
    Has anybody seen any scripting support for something like this or plugins that support this function?
    Thanks. Jerry

    I don't believe anything has been invented yet that supports using Actionscript to edit a PDF file.

  • RGB color in inDesign changes (washed out) after exporting it to PDF

    Hi,
    I am new to InDesign and i have a hard time figuring out how could I export my InDesign file to PDF without affecting the color.
    This is what I do.
    1. I created a new document with Transparency Blend Space set to Document RGB
    2. I created a box using the rectangle tool and filled it up with RGB color, R=126 G=12 B=110
    3. The color in Indesign is just how i wanted it, however, the problem arises when i export the file now to PDF
    4. Instead of the color i wanted, the color was changed to a lighter color, or washed out.
    5. THis happens even in text have the same RGB setting.
    How could I export it to PDF with the same color, without being washed out?
    I really appreciate your help on this. Thanks.

    That sounds like the Color Picker, which works a bit differently in ID than in Illustrator or Photoshop. If the cursor is not in one of the RGB fields when you say OK you won't get RGB color. You can see this by noting the text in the Add ... Swatch button. My guess is you added the color as the CMYK conversion which is a bit lighter.
    You might want to use the panel menu in the Swatches panel instead, or the new swatch button at the bottom of the panel while holding down the Alt key to open the new swatch definition dialog. You want to create a Process color and change the type to RGB, then enter the values in the RGB fields. Or if what you want is really Pantone 249U you can define a Spot swatch and choose Pantone Solid Uncoated and then specify the 249. I'll warn you though, that CS6 uses Lab values for displaying spot colors and 249U is considerably lighter than either the RGB you specified or the 249C. In earlier versions the book value conversions were used. Even when using Lab display values through Ink Manager in CS5, the coated and uncoated swatches incorrectly look the same in ID, and in Illustrator CS5 you would need to turn on overprint preview to see a difference.
    Here are a couple of screen captures from PDFs exported from ID CS5 and CS6 using High Quality Print. The colored boxes with the lables were pasted from Illustrator CS5 to be sure I was using the same color definitions and that theywere behaving as native objects. Below are the same boxes placed:
    and here is how the screen looked in CS6 in ID (notice the difference in the placed .ai file -- the screen preview is NOT using the Lab values, although it exports with them):
    I don't know what the content is and how you present it, but it doesn't sound like a web page. That said, if you choose Web for intent in Document Setup you can still use print size paper sizes for the document and change the rulers after the doc is created to read inches or millimeters or other units of your choice instead of pixels and the file will use default RGB swatches and default to RGB when making new colors.

Maybe you are looking for