Named anchor like link in textfield

I'm trying to get links in a textfield that link to
paragraphs in that textfield. The same as you would do in html
using named anchors.
For now I've an asfunction href in the text that searches the
textfields text for a certain substring using indexOf. This gives
me a position index of that substring in the text.
Then I use a search for "\r" to get the number of lines
before the position index is reached. I then use this number of
lines value as a scroll value for the textfield. This works but
since the textfield is textwrapped I never get the correct amount
of lines, because the textfield actually has more lines than it has
"\r" linebreaks.
Does anybody have an idea how to solve this issue?

Instead of inserting an  tag and style it so it looks
right.  Then replace the z with a when you save it.

Similar Messages

  • Links to id's and named anchors within a page in an iframe do not open in firefox

    In order to force layout of my liquid website, I use i-frames to display content . It is all on my sight www.rdelutherie.com, and I am not displaying pages from other sights. The links to sections of pages from within the same page do not work in firefox.
    I have had this problem before with named anchors, and in moving up to html5 and in making my site accessible for people with dissabilities, I started using <nav> eliments... and changed from named anchors to links to ID's like this:
    In an unordered list I have these:
    <pre><nowiki> <li><a href="#s1">Subject 1:</a></li>
    </nowiki></pre>
    They link to sections of the same page like this one:
    <pre><nowiki>
    <section id=s1>
    <h2>Subject 1:</h2>
    <p>Blah blah blaaaaah, and bla bla!</p>
    </section></nowiki></pre>
    Last time I researched this problem (a year or more ago), I was told that it was because of a security risk (something about being able to count views...and other peoples proprietary and copyrighted material), but the vaguely described reasoning made little to no sense to me nor many others, who can not even link to our own stuff. The Mozilla developers were rather abrupt and some were even rude in telling us to live with it, instead of trying to come up with a solution or work around, and closed the post and disallowed further posting.
    The problem still persists, and although I am not a programmer, I have a real hard time believing that it is impossible for Firefox to distinguish between links contained within a document and site, from those on different sights, domains and what have you.
    As far as I know, no other browsers have this problem, so if it is such a big security risk, what is to stop someone with malicious intentions, from just using M$ IE, to bring their evil plan to fruition?
    In keeping with "Making the web a better place": Please address this problem, and find a solution, workaround, or at least explain why it is impossible.
    Bob English

    Thanks again jscher2000,
    I know exactly what you mean, but I have had other page display problems with adjacent columns where one side does not display completely and seems to be conforming to the other ones height... hence the height settings and other tricks to force things to be acceptable.
    I am far from understanding code, and most of the solutions, including the one in the link you posted do not have the information a novice like me would need to implement them successfully. Most of them are written for people much more advanced. Without it telling me where exactly to put the code, point to it, what I can (and should) change and remove elsewhere because of it... I am at a loss. I don't know the basics, and have tried hard to understand them, but it is not like electrical circuits, physics and other things that I can understand naturally and with ease.
    I will look into it further in a few days, meanwhile I have to attend to my real work that doesn't even pay the bills completely: guitar building and repair, now that comes easy and naturally to me!

  • Named Anchor linking from another document

    I made a Named Anchor and linked from some text in another document.  Great.  Worked just fine.  The only thing is it doesn't display the named anchor at the top of the page.
    In other words the footer is at the bottom of the page and the named anchor in the middle of the page...  not at the top.  Like a #top would be.
    Anyway to get it to the top of the page?  Do I just need more content under it?
    Much appreciated!

    Thanks for the help.  I had no luck trying it out.
    If possible, at:  artdesignsneed.com/joeldoctor
    Under menu choice "Treatment" then choose "TFP"....  the first sentence has  ..."Borderline PD developed..."
    I wanted to link Borderline PD to:
    Menu choice: Disorders...  choose Personality...  go down to "Cluster B" and there's Borderline PD.
    The link worked but the named anchor "Borderline PD" is in the middle of the page.
    Cheers if you can help.
    If not, I'm going in the right direction.
    Much appreciated.

  • Using named anchors

    Hi everybody,
    Let's say I have a two column layout with a series of links inside the left column (sidebar). Is it recommended to use named anchors to link text in one DIV to text inside another? Can I create a menu inside the sidebar and then target text inside the mainContent DIV? I've done a few tests and it seems to work well, but I'm not sure if this is the best way to do this. If not, can anybody recommend a better alternative?
    Thanks so much.
    Kind regards,
    Mark

    I don't like 1 page web sites.  I really think it's a missed opportunity.  Search engines pay more attention to sites that are broken up into logical sections with unique page titles and plenty of relevant, keyword rich content.  
    index.html
         <title>XYZ Company Home Page</title>
    products.html
         <title>XYZ Products</title>
    services.html
         <title>XYZ Services</title>
    contact.html
         <title>XYZ Contact Form</title>
    testimonials.html
         <title>XYZ Testimonials</title>
    etc....
    To give your site a uniform look & navigation, read about DW Templates. 
    http://www.smartwebby.com/web_site_design/dreamweaver_template.asp#1
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Linking to a named anchor

    Can someone help me. I'm trying to link a java applet to a named anchor but I don't know how. Please help.

    You can't really create a direct link to an applet because an applet is an object of a HTML document. So you really have to create a link to an HTML that contains the applet. If what you're trying to do is to dynamically load an applet onto the current document, you can try to create a <DIV> (in IE or NN6) or a <LAYER> (in NN4+), create a link like this:
    Load Applet
    then, write a JavaScript function named loadApplet to load the applet into the DIV or LAYER:
    V.V.

  • Linking to a Named Anchor link in a PDF

    Does anyone know if you can create a link in the Dreamweaver
    editor to another page of an PDF other than page 1.
    For example, something like this.
    <a href="
    http://www.website.com/new_site/pdf/PAGE2.pdf#RHS"
    target="_blank">Page 2</a>
    Or does anyone know if you can add a named anchor in a PDF
    document?

    http://kb.adobe.com/selfservice/viewContent.do?externalId=317300
    Ken Ford
    Adobe Community Expert - Dreamweaver
    Fordwebs, LLC
    http://www.fordwebs.com
    "QuantumPete" <[email protected]> wrote in
    message
    news:fqka6p$i2j$[email protected]..
    >
    > Does anyone know if you can create a link in the
    Dreamweaver editor to
    > another
    > page of an PDF other than page 1.
    >
    > For example, something like this.
    >
    > <a href="
    http://www.website.com/new_site/pdf/PAGE2.pdf#RHS"
    > target="_blank">Page 2</a>
    >
    > Or does anyone know if you can add a named anchor in a
    PDF document?
    >

  • Link to named anchor in current file not working

    Links to named anchors are not working at this particular site. Works with Konqueror.
    Go to this web site: http://www.kusc.org/playlist/
    Right below the calendar displays is a section "Playing this Hour" and below is list hours for AM and PM. You should be able to click one of the hours and page should skip down to that hour in the playlist. This doesn't work with FIREFOX 7. Has not work since FIREFOX 5 or 6 at least. Works with other browsers.
    Executing FIREFOX 7.0 on openSUSE 11.4. Mouseover shows the link as an anchor with #. Although, the referenced page is not the same. But again, this works with Konqueror on Linux and IE on Windows.

    Something to do with your coding. The page we opens is HTML not a PDF file. When we click on the links, it opens the PDF. I can see that destination tag along with the URL and the PDF is properly bookmarked. So check ur code.

  • Html link to a named anchor within a PDF file?

    So, I want a link on a web page to hop to a specific part of
    a pdf file.
    Same thing as using named anchors really. The issue I see
    here is that the
    web pag (link) has no real notion of pdf's implementation of
    anchors, so how
    could it know to utilise them?
    I assume this is not possible, but need to make sure.
    Thanks.

    It is possible. You can link to a page in any pdf document,
    or link to a 'Named Destination'
    http://partners.adobe.com/public/developer/en/acrobat/PDFOpenParameters.pdf

  • Spry and link to named anchors

    I have a page - http://jenniferyarro.com/schedule_postcardNew.htm.  I want it to link to the named anchors within a tabbed Spry widget - see page http://jenniferyarro.com/schedule_detailNew.htm.
    I put a named anchor inside each tabbed panel, I also tried to put the anchor on each tab.  Neither one works. It appears that the anchor sees the widget as one object, therefore I am taken to the correct page, but always to the same tab (ie the one that is set as default).  I was wondering if there is a way to have it link directly to the tab that I want open.
    Regards,
    Lisa

    You may try posting this question in the Spry Forum... as this is the InContext forum.
    http://forums.adobe.com/community/labs/spry
    Good Luck,
    -Tom

  • Help!! Why are of my sitemap links not landing on their named anchors?

    I've just manually completed a sitemap for my dreamweaver 8 website: http://www.ggordontowerofbabel.co.cc  The first 2 pages are fine, with all the links landing just at the spot I want them to.
    However, on the 3rd page, they land on the spot, but as soon as the page is fully loaded, it jumps off indiscriminately to another part of the page? This is only a problem once it is loaded onto the server for anyone to access. However, all is fine locally, where only, "MyMediaPage.htm#MyFilm" is applied to the link, but once on the server, I add the full url http://www.ggordontowerofbabel.co.cc//MyMediaPage.htm#MyFilm
    Again, all is fine on the first 2 pages on the server, and I'm using the same method.
    After removing code from the body tag, it helped only partially. However, now the link lands on the next named anchor instead, almost as catch-up. So, while it may briefly land on its target, it still shoots onto the previous or next one. Please help!!

    Hi
    Thank you for your help. Since you didn't experience the same problem, I checked the page in IE. It was fine. So, it seems that it is only a Mozilla Freezefox problem, and will need to figure out how to fix that.
    I'm gratefull too for your additional information, as all constructive criticism is very welcome, so I will now change the red font colour as you suggested. If you thought it was bad then, I had just changed the font itself from TN Roman to Ariel, so think yourself lucky your eyes were spared that
    I've also considered your excellent advice on running the page throught the validator. I've done that. However, reading and understanding html coding is torture for me, as simple, plain English would help me better.
    Truly grateful.

  • Why is my named anchor link not working

    Can someone please help.
    I am a novice at Dreamweaver - but my website works well with almost all links working.
    Situation :
    The problem lies on the following page  www.ozonesystems.co.uk/airunits
    There are 7 links in the table which point to Named Anchors
    While browsing in Internet Explorer, all links work perfectly
    While in MozillaFirefox or Google Chrome, only the fist 2 links work. The remaining 5 links do not redirect me to the appropriate section (anchor) on the page. There is no error message.
    Can anybody please help with this problem?
    Thanks - Roy Marnewick

    Hi Jon
    Many thanks for your reply and comments.
    I am a real novice. I used ApDiv's only because I had a problem in getting images and text to reside where I intended them to be placed - and this was the only way which I discovered would achieve the result I required. I do not want to re-invent the wheel, so I will just live with problems which may appear to those using different size text, and hope there are minimal visitors doing this!
    I will visit the link which you have provided to resolve the minor errors. Thanks for the link.
    It is good to hear that (hopefully) the problem is not as widespread as I thought it might be as you did not experience a problem while browsing with Firefox36 and Chrome40. I will try and clear the browser cache as suggested - do not know how - but will try and find out.
    Thanks & Regards
    Roy Marnewick

  • Preloader doesn't work with named anchor links

    I have a swf with a simple preloader embedded in an html
    page. Everything works fine when the link to the html page does not
    include a named anchor:
    http://www.danielohlsen.com/fgw_site/the_ads/the_ads_header.htm
    However, the preloader in the swf does not work when the link
    to the same html page includes a named anchor:
    http://www.danielohlsen.com/fgw_site/the_ads/the_ads_header.htm#header_ad
    The rest of the movie will still play after loading, but for
    some reason not the preloader. I am on a mac using Firefox and
    Safari, and they both act the same. Perhaps its a browser issue. Is
    this a known issue?

    Works fine here if I click that link in your above post.<br />
    <pre><nowiki> <a id="jelentkezes">&nbsp;</a></nowiki></pre>
    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).<br />
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]

  • How to close one browser window and return to a named anchor on a page in another window

    I'm working on a website that has several book images at the bottom of each page. I have set it up so when the user clicks on a book another smaller browser window opens up with a description of the book. At the bottom of book description window, I have a close button which I added the window.close() behavior to. But I'd like to not just have the window close but return the user to the bottom of the original page where I have the books, an area that I have applied a named anchor to. Any ideas on how I can get this done.
    I'd appreciate any and all help.

    I haven't tried to customize this lightbox extension much.  But I'm pretty sure the size of the box is pre-determined by image size.  Bigger image, bigger box.  And that is coded into one of the Lightbox javascript libraries.
    As to placing a link in the caption, sure.  Just paste your html link code into the Lightbox Caption Panel like so.
    <a href="http://amazon.com"> Buy now from Amazon</a>
    There is much more detailed information about Lightbox and how it works at the huddled together website.
    http://www.huddletogether.com/projects/lightbox/
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb

  • Animate within a symbol using "named anchors"

    hi everyone,
    i would like to set up navigation of 3 colored buttons (red, blue & green) that will scroll on mouse down to the corresponding large colored rectangle.
    https://www.yousendit.com/download/UVJnUGhlZ2owMEhFdzhUQw
    in the below link, there is a file that i was able to make the blue & green buttons work if pressed from when the page first opens in the browser.
    but how to get the buttons to work if you are on "green" and want to go to "blue" or "red"?
    thank you all for your help
    -sharon
    ps- in Muse or Flash this is called "named anchors". I'm not sure what to call it in Edge
    -s

    hi everyone,
    i just noticed that i was missing the EA file in the link. Below is a link with the native file included: (3_buttons_3-6-13a.zip)
    https://www.yousendit.com/download/UVJnUGhTVnNCSnA4SjhUQw
    i also tried another approach that seems like it should work, but doesn't. Below is the link: (v6_3-buttons_3-9-13.zip)
    https://www.yousendit.com/download/UVJnUGhTVnNoMldybHNUQw
    i would greatly appriciate your help getting either of these 2 versions to work
    thank you very much-
    sharon

  • Using Named Anchors with Dynamic PHP Pages

    I have a web app that uses PHP to generate pages out of a
    MySWL database. The links to the page look something like:
    www.domain.com/display.php?id=300.
    On this page I'd like to include a link to an anchor towards
    the bottom with a feedback form. I have a named anchor called
    "add_rating". The link I'm using is
    "www.domain.com/display.php?id=300#add_rating".
    This link doesn't work in any browser/OS combination I've
    tried and so it must be my code. Any help?

    "
    http://www.domain.com/display.php#add_rating?id=300''
    (that's double quotes around)
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Elie Chocron" <[email protected]> wrote in
    message
    news:gq8rb3$pqk$[email protected]..
    >I have a web app that uses PHP to generate pages out of a
    MySQL database.
    >The
    > links to the page look something like:
    www.domain.com/display.php?id=300.
    >
    > On this page I'd like to include a link to an anchor
    towards the bottom
    > with a
    > feedback form. I have a named anchor called
    "add_rating". The link I'm
    > using is
    > "www.domain.com/display.php?id=300#add_rating".
    >
    > This link doesn't work in any browser/OS combination
    I've tried and so it
    > must
    > be my code. Any help?
    >

Maybe you are looking for