Anchor Link inside a Scrollpane

Is it possible to create anchor links in text within a scrollpane.  I created text with a list of questions at the top of the list and answers at the bottom of the list. I want to be able to click on a question and jump down the list to the answer within the scrollpane. Similar to anchor links in html. Is this possible in AS2.

no but, you can use the scrollpane's vPosition to scroll to the correct position.

Similar Messages

  • Email Link inside a Scrollpane

    So i have a scrollpane with a movieclip in it. Inside the movieclip i put static text that says "Email Eric" and linked it with mailto:[email protected] but when i test the movie it won't work. So basically i need to know how to link an email to something inside a scrollpane. Any help would be much appreciated. Thanks for your time in advance. I know someone will come thru for me. They always do!

    ok....so i made a whole new flash document to make sure i wasnt doing anything wrong
    scrollpane instance name = ericScroll
    movie clip that scrolls thru scrollpane = content
    so i laid out all my stuff going to be a in the movieclip scroll and then put text and made it a movieclip and it's instance name is = email
    then i selected all my info including email link and other item to be content and made it all a movieclip(content)
    i have 2 layers
    site & actions
    first frame i made a button the goes to frame 17 where my scrollPane lies. on that frame in my actions i have this code
    scrollPane.setStyle("borderStyle","none");
    scrollPane.drawFocus = false;
    ericScroll.spContentHolder.email.onRelease = function() {
    trace("A");
    getURL("mailto:[email protected]");
    s then when i test movie i click the button that takes me to the scrollpane ....scroll down....press the button and nothing

  • Display:block not showing anchor link as a block in IE9

    The display:block CSS code is making the anchor link inside a div, i.e.
    <div><a>some text</a></div>
    behave as a block in a site viewed in Chrome etc.
    However, it is not behaving like a block in IE9. Instead of the whole width of div which should behave like a block and be clickable, only the actual text of anchor link <a> is clickable.
    Please advise on how to ensure the whole div behaves like a block in IE9 also.

    I checked and found that the probable problem is as described below.
    I have indicated the style for a.link and a.visited in the starting of the css file as
    a:link { color:#009900; text-decoration: underline;}    
    a:visited { color: #4E5869; text-decoration: underline;}    
    Later in the css file, I have defined styles for cbt, cbt a, cbt a:link and cbt a:visited separately. the styles for cbt etc is as below:
    cbt { display:block;  float:none; 
    position: relative; 
    margin:5px 2px; 
    padding-left:1px;
    padding-right:1px;
    padding-top:5px; 
    padding-bottom:5px;
    z-index:4;
    clear:both; } 
    cbt a, cbt a:link {  font-size: 1em;
    text-decoration:none;  text-align:justify;
    text-justify:inter-word; 
    font-weight:normal; 
    word-wrap:break-word; 
    color:#00C;  display:block; }  
    cbt a:visited { color:#CC0033; }
    The anchor link a is nested inside cbt tag in the html file as
    <cbt><a href="abc.com">some text</a></cbt>
    Inspite of the above codes, the anchor link a inside cbt tag is not taking the styles defined with cbt a, cbt a:link, but is instead taking styles defined in a:link initially.
    Hence they are behaving as inline elements in IE9 when hosted on remote server by taking the initial style defined.
    However,when the same page are viewed on localhost in IE9, the links behave as block elements (taking the later defined styles). The links also behave as block elements inside Chrome browser when viewed on localhost as well as on remote server. In this situation the links are taking the styles defined later in the css file.
    Please advise on why the css behaviour is so erratic.

  • Hyperlink inside a scrollpane?

    Hey guys,.
                   Ok Ive been looking into this for two days and really need the help! I need the button to link to an external website
    I have my scrollpane on the stage, I have created the mc and exported it and linked it to the scrollpane, I have created a button on layer 1 inside the mc linked to the scrollpane and I have created a 2nd layer for as3. Below is the AS3 that I have used. When I export the mc to view the scrollpane everything works apart from the buttons itself. I can see everything but the buttons wont link to the webpage.
    AS3
    import flash.net.URLRequest;
    btn1.addEventListener(MouseEvent.CLICK, goDesignSite);
    function goDesignSite(Event:MouseEvent):void
    var DesignURL:URLRequest = new URLRequest("http://www.krdesign.ie/html");
    navigateToURL.(DesignSiteURL);
    Any help would be greatly appreciated!!!
    Gary

    import flash.net.URLRequest;
    btn1.addEventListener(MouseEvent.CLICK, goDesignSite);
    function goDesignSite(Event:MouseEvent):void
    var DesignURL:URLRequest = new URLRequest("http://www.krdesign.ie");
    navigateToURL.(DesignURL);

  • Links inside a portlet

    Hi,
    I've got 4 links inside a portlet, i woulld like to target each link to the same portlet.
    Basically,i want this links to open inside a portlet.
    <netui:anchor action="Week">|Week</netui:anchor>
    <netui:anchor action="DayofWeek" >|Day of Week</netui:anchor>
    <netui:anchor action="TimeOfDay" >|Time Of Day</netui:anchor>
    <netui:anchor action="AccidentType">|Accident Type</netui:anchor>

    Hi Caroline
    You should install and use the "Url Services". I have the same need. But I can't succesffuly install the URLServices, I then get a lot of timeout errors when browsing the portal. I don't know when I'll have time to work on that, but that's the way you should work around.

  • Anchors/links within pages

    I really need to link from one iWeb page to an anchor inside another, but can't figure out how or if this can be done. To see what I mean, go here:
    http://web.mac.com/wildwing1/Recipes/Index.html
    What I want to do is make an anchor on each of the recipes in the other pages, then link this page to each of them by name so people can click on each recipe name and go directly there instead of having to search each page. I'd also like to link each recipe to a printable file, but think I may have figured that one out.
    I used to work in GoLive and Photoshop, and while I like iWeb and iPhoto a lot more they do seem more constricting in areas like this.
    Thanks in advance,
    Suzanne

    Anchors are not directly supported in iWeb, but there are numbers of work-around.
    Post editing gets old real quick, especially when you like to have many anchors as in your site.
    From looking at your Recipes pages, they are long windows, so the easiest thing to do is to have a javascript to scroll to the right spot when the window is open, I made sample of your pages - I only made three anchor links:
    http://hdl.50webs.com/Anchors1/From.html
    In the From.html page, the text links need to be added as link to an external page (in inspector); so you can specify the full path including the anchor, eg:
    http://hdl.50webs.com/Anchors1/To.html#1
    The scrolling script is attached to the To.html page using HTML Snippet, see its source code of the following:
    http://hdl.50webs.com/Anchors1/Tofiles/widget1markup.html
    You need to fill in the anchors array with the Y position of each recipe.

  • Unable to open local file using af:goLink and anchor link in JSF page.

    Hi,
    I want to open a file at a perticular location on client machine. I am using af:goLink to openg the file. But when i tried to click on the link it is not opening the file. If i give any other value like name of other site, it opens the link. It is not giving any exception also. I tried by puting notmal HTML anchor link. That is also not working. But if i put this anchor link in normal HTML page, it works.
    Following is the JSPX page that i have created. Here c:\dmmsi.log is a temp file on my local system.
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=windows-1252"/>
    <f:view>
    <af:document title="File Upload">
    <af:form usesUpload="true">
    File Uploader Test
    <af:inputFile label="Input File" autoSubmit="true"/>
    <af:spacer height="20" width="50"/>
    <af:goLink targetFrame="_new" destination="file:///c:/dmmsi.log" text="Test"/>
    <af:spacer height="20" width="50"/>
    <!--a id="you" href="c:\dmmsi.log" target="_new">Open File</a-->
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>
    HTML Page i tried using anchor link
    <html>
    <body>
    <form>
    Please specify a file from your local machine</b>
    <input name="file" type="file" onblur="document.forms[0].hello.value = document.forms[0].file.value; document.getElementById('you').innerHTML =document.forms[0].file.value; document.getElementById('you').href = 'file://'+document.forms[0].file.value;">
    <br><br>
    <input type="text" name="hello" value="">
    <br><br>
    <!-- a id="you" href="c:\dmmsi.log" target="_new">Click Me to Open file< / a -->
    </form>
    </body>
    </html>
    (Note: Please remove the comments that i have added in creating anchor link. I was facing some issue in putting my code in this editor. It was creating the HTML link when i see the preview.)
    I hope you will be able to reproduce my problem.
    Sujay

    What version of IE are you using? IIRC, IE 7 is supposed to prompt you. ("The web site is attempting to open a page in your Trusted Zone. This can let hax0rs pwnz0r you. Continue?" or something to that effect.)
    If you use the verbatim tags, do you get an actual error message? That might help diagnose the problem.

  • Ios7 bookamrking web application to home screen via Safari crashes after login and when we try to open any link inside. Can anyone please tell me if there is any scheduled fix for this bug in safari?

    ios7 bookmarking web application to home screen via Safari, crashes after login and when we try to open any link inside from the icon that gets created on the home screen. Can anyone please tell me if there is any scheduled fix for this bug in safari?
    From what i understand i see that - Cookies are not transferred between your website and your webapp when installing the icon on the home screen (for authentication purposes for example). It was working until 6.1 and now it’s not working anymore.
    Can someone please tell me if this bug will be fixed in any future release, if so the ticket number of some kind that i can track, or if there is a workaround for this issue?

    ios7 bookmarking web application to home screen via Safari, crashes after login and when we try to open any link inside from the icon that gets created on the home screen. Can anyone please tell me if there is any scheduled fix for this bug in safari?
    From what i understand i see that - Cookies are not transferred between your website and your webapp when installing the icon on the home screen (for authentication purposes for example). It was working until 6.1 and now it’s not working anymore.
    Can someone please tell me if this bug will be fixed in any future release, if so the ticket number of some kind that i can track, or if there is a workaround for this issue?

  • Is there a way to make an anchor link display a different colour when selected? (active state)

    I have a vertically scrolling site I am trying to set up, and it's all going well. Only problem is when you use the menu (widget or non-widget) to move to an anchor link, thus bringing in the next section, I can't get the link to diplay as a different colour.
    This would be good for letting the user know what section is infront of them.
    Is there a way to do this?
    One other question: Is there a way to get an anchor link to display centrally in the middle of the page up and down. I can arrange it so it looks good in one browser window, but as soon as the user has more vertical space it seems to diplay a set distance from the top. I guess what I'm asking is can the anchor link define the center point instead of the top point?
    Many thanks!

    Hello,
    Could you please elaborate what exactly you are referring to with "I can't get the link to diplay as a different colour"?
    Regarding your second query, I am afraid it is not possible using Adobe Muse. However it can be a very nice feature request.
    I would suggest you to post this as a feature request on our "Ideas for features in Adobe Muse" section of the forums : http://forums.adobe.com/community/muse/ideas
    Regards,
    Sachin

  • Can you force a link inside a .pdf to open the "linked to" document in a new window?

    When I have a link inside my .pdf document - linking to another .pdf document or to a Word document - how can I force the linked-to document to open in a new window?
    I have a web site (business internal, so unfortunately I cannot point to it).  My HTML menu has links to .pdf documents - no problem.  However, once I open those .pdfs, they contain links to other .pdfs and to Word documents.  Clicking on these links, which reside inside my .pdfs, opens the "linked-to" docs in the same page.  How can I force them to open in a brand new frame?
    All of my .pdfs were originally created in Word, and in the Word versions, the links DO open into new frames.  I am not sure why, when I convert them to .pdfs, they lose this feature.
    Can anyone help?

    Hi Magenta,
    Would you mind reposting this question over on the Acrobat boards?  You've posted in the AIR forum and you'll have better luck with this over there.
    Thanks,
    Chris

  • Anchor links to accordion panels not working properly across browsers

    Hi everyone,
    I need some help to figure out why my anchor links  to specific accordion panels on another page are not working properly  across browsers.
    I have a Map page which has tooltips on  mouseover on the site markers. 15 of the tooltips have "Click here for  information" anchor links (although only 14 are currently linked) which,  in theory, would take you to the Nurseries page where the specified  accordion panel would be opened with the nursery entry appearing at the  top of the new browser window.
    Here are the links to the Map page and Nurseries page, respectively:
    www.alegriadesignstudio.com/RFRI/map_v6.html
    www.alegriadesignstudio.com/RFRI/nurseries_v6.html
    I've  tested the anchor links on IE, Firefox, Google Chrome, and Safari, and  have received varying results. In most cases, the anchor links worked  perfectly on two of the browsers, while on the other browsers, the  correct accordion panel is opened but the nursery entry does not appear  at the top of the new browser window. Anchor links using Safari and  Google Chrome fared better (10 out of 14 links worked properly, and  8/14, respectively), whereas when using Firefox and IE, only 3 anchor  links worked properly. The target audience for this website will be  using IE and Firefox, so I  would appreciate any help to figure out how to tweak the code so that  the most, if not all, anchor links work properly on these two browsers  in particular.
    Here's an anchor link which worked perfectly in  IE, GC, and Safari, but in FF, the entry did not appear at the top of  the new browser window.
    www.alegriadesignstudio.com/RFRI/nurseries_v6.html?luzon=9#mangatarem
    http://www.alegriadesignstudio.com/RFRI/nurseries_v6.html?luzon=9#mangatarem [To access the anchor link on the Map page, mouseover the third green  dot from the top of the map (Tooltip--Location: Mangatarem) and then  click on "Click here for information."]
    Here's a sample anchor link in which the entry did not appear at the  top of the new browser window in any of the 4 browsers:
    www.alegriadesignstudio.com/RFRI/nurseries_v6.html?mindanao=4#magpetAmabel
    http://http://www.alegriadesignstudio.com/RFRI/nurseries_v6.html?mindanao=4#magpetAmabel [To access the anchor link on the Map page, go to "Mindanao" at the  bottom of the map and mouseover the fourth green  dot below the word "Mindanao" (Tooltip--LOCATION:        Brgys. Amabel, Bongolanon, Imamaling, & Manobisa; Magpet;        North Cotabato) and then  click on "Click here for information."]
    Here's a sample anchor  link in which the anchor link worked properly in GC and Safari, but the  entry didn't appear at the top of the browser window in IE and FF:
    www.alegriadesignstudio.com/RFRI/nurseries_v6.html?visayas=1#bilar
    http://http://www.alegriadesignstudio.com/RFRI/nurseries_v6.html?visayas=1#bilar [To access the anchor link on the Map page, go to the small island  north and a bit west of "Mindanao" which is called "Bohol" and mouseover  the fourth green  dot below the word "Mindanao" (Tooltip--LOCATION: Bilar; Bohol) and then   click on the first "Click here for information."]
    Many thanks in  advance for your assistance!
    Joy

    Hi everyone,
    I'm still trying to figure out how to resolve the problem of anchor links to accordion panels not working properly across browsers (see original post for details). I would greatly appreciate any suggestions on how to resolve the problem.
    Many thanks in advance.
    Joy

  • Command Link inside table to external website in popup window

    Hi,
    I am trying to have a command link inside a table which is on the tables id. I know that if I have control of the destination page I can use setCurrentRowKeyValue. However I do not have control of the external website. So I cannot add it into my faces-config.xml file? I have tried putting a GoLink and a GoButton but I get the following Illegal character in fragment error, when I put my destination URL in. An example of the format the URL is:
    http://www.bbc.co.uk/radio?&music=#{row.PrimaryKey}&adf=123
    Where I am adding in #{row.PrimaryKey} which is the Id of the row. I would like to have the new page opened into a pop up window if this is possible.
    I am not sure if this can be done in the backing bean or whether my approach is the correct one?
    Many Thanks
    Steve

    something like...
    <af:goLink text="#{row.PrimaryKey}"
               destination="http://www.bbc.co.uk/radio?&amp;music=#{row.PrimaryKey}&amp;adf=123"
               targetFrame="_blank"/>Regards,
    Neeraj

  • Command Link inside of datatable

    I have the following problem when I put a command link inside a datatable.
    The action or actionlisteners never get called. Now here is the funny thing.
    1. If I move the action link outside the datatable it works.
    2. if I change the scope of the bean to session it works
    3. if the datatable contains more than 1 row it works
    The last one tells me this is a bug.
    To test this I change the sql query to limit the result so 1 row would be returned.
    The sql query returns a CachedRowSetImpl
    I believe this is a bug.
    <h:dataTable rows="6" first="0" id="table" binding="#{event.eventdata}" value="#{event.eventdetails}" var="eventdetail">
    <h:column>
    <h:commandLink value="#{eventdetail.title}" action="#{event.resaveEventaction}" actionListener="#{event.resaveEventdetails}" id="test" >
    </h:commandLink>     
    </h:column>
    <h:column>
    </h:dataTable>

    Here is some additional information that makes this more confusing.
    The following code is used to populate the datatable
    public CachedRowSetImpl getEventdetails(){
         CachedRowSetImpl rs2 = null;
         String selectedeventmy = selectedevent;
         int rowcount = 0;
         try { 
              sql = "SELECT * FROM event where eventid='"+selectedeventmy+"' ";
              rs2 = RunQuery.mysql(sql);
              rowcount = rs2.size();
         } catch (Exception e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
         return rs2;
    where RunQuery.mysql is
    public class RunQuery {
         public static CachedRowSetImpl mysql(String sql) throws Exception {
              CachedRowSetImpl crset = null;
              InitialContext initCtx = new InitialContext();
              Context envCtx = (Context) initCtx.lookup("java:comp/env");
              try {
                   DataSource ds = (DataSource) envCtx.lookup("jdbc/associations");
                   Connection conn = null;
         Statement stmt = null;
         conn = ds.getConnection();
         stmt = conn.createStatement();
         stmt.execute(sql);
         ResultSet rs = stmt.getResultSet();
         crset = new CachedRowSetImpl();
         crset.populate(rs);
         rs.close();
         stmt.close();
         conn.close();
              } catch (Exception e) {
                   System.out.println(e.getMessage());
              return crset;
    if I replace the line
    String selectedeventmy = selectedevent;
    with String selectedeventmy = "61";
    it works properly.
    selectedevent is populated from the following triggered by another action event on another page. ? The funny thing is if the result set returns more that 1 row all works ok.
    public String viewDetails(){
         System.out.println("Running view Details");
         int selectedrow = eventlist.getRowIndex();
         Object selected = eventlist.getRowData();
         Map rowdata = (Map) selected;
         selectedevent = rowdata.get("eventid").toString();
         System.out.println("Selected Event:"+selectedevent);
         outcome="eventdetails";
         return outcome;
    }

  • How to change the color of the links inside a portlet ?

    Hi,
    I have to apply a css into one of the portlets of my page. Since I thought it would not be easy I figured out that the only thing the client cares is the color of the links inside the portlet. The portlet has a bunch of links and these link should be blue and 12pt. Does somebody know how to do that ?
    Thanks,
    Rafael.

    Change hyperlink color:
    There are about 50 predefined styles with each template. They are modifiable. Hyperlink is one of the styles.
    Follow this process:
    • In your document select a word of text, any word will do.
    • Style it the way you want your hyperlinks to look.
    • Show Styles Drawer from the View menu.
    • Find the Hyperlink style in the drawer and right-click on it.
    • Select - Redefine Style from Selection - in the pop-up menu.
    That's it. You've changed the hyperlink style for this book.

  • Adobe acrobat anchor link not going to the right page.

    I have anchor link from html page like http://www,pbgc.gov/docs/2006bluebook.pdf#page=15, when you try to click the link on my machine and some other employees it goes to first page rather than going to page 15. Other employees get page 15. Have anyone experience this issue or know why this issue happen in Adobe Acrobat.
    Most our employees have Adobe Acrobat 8, Also there are some who have Adobe Acrobat 9. I was thinking it may due to the version but someone with Adobe 8 is also having the issue.
    Please advise. Thanks!
    Regards,
    Mohamud
    Ext 5466

    Is Adobe Reader being opened as a plugin in your browser, or as an external application? I think the links to specific locations in the document only work if Adobe Reader is used as a plugin. I've had the same problem, and it was because I didn't have Reader as a browser plugin.
    Ken Dyall.

Maybe you are looking for

  • THE IMAC MONITOR

    HELLO ALL, IS THERE A WAY TO TURN OFF THE IMAC MONITOR AND USE AN EXTERNAL MONITOR INSTEAD. I INITIALLY WANTED TO EXPAND THE DESKTOP, BUT FOUND OUT THAT I COULD ONLY MIRROR IT. SO, I AM EXPERIMENTING WITH THIS IDEA. IF ANYONE WOULD BE SO KIND AS TO G

  • Calling WebDynpro input screen from within an abap Function module / user

    Hi, I am posting SAP data with a BAPI from an Web Dynpro Application. In the Bapi I must use an BADI/User -EXIT to add some infornation. Today this is done by calling an Dynpro in a function module. This creates a pop up, data is filled and posted on

  • Text information in VA01

    Dear Experts, While creating sales order in VA01, there is a 'TEXT' tab page in 'Display doc header details. In which table are these text information stored when we add any text information at header level. Please suggest? Rajiv Ranjan

  • PrintJob() with Flex 3

    I have printableNote, which is a sprite. I try to do this: printableNote.graphics.beginFill(0xffffff); printableNote.graphics.lineStyle(1, 0x000000); printableNote.graphics.drawRect(0, 0, 100, 200); printableNote.graphics.endFill(); var pj:PrintJob =

  • Question for webi reports

    Hello expert,          I have some questions as follows:    (1) I want to design a webi report without drill down operation, how can I deactivate drill down feature?    (2)  I want to use a colunm to represent the number of rows by some group criteri