Named Anchors and the HTML doc

Normally, when using the the default "Flash Only" setting in the HTML publish settings, you can set the dimensions to 100 x 100 percent.  This will make the Flash movie fill the browser window and resize with the browser.
I'm using named anchors and am using the "Flash with Named Anchors" setting in the HTML publish settings.  Everything else is the same as when I use the "Flash Only" template.  However, when I publish this HTML document it is not filling the browser window correctly.  Instead, the movie is being displayed as if I had set the movie size to 100 x 100 pixels instead of percent.  In other words, the Flash movie is squeezed into a size of 100 x 100 pixels.  Something is causing it to misinterpret percent as pixels.
I've looked at the HTML document and it correctly says width="100%" height="100%".  This problem occurs in Firefox 3.6.  Everything displays correctly in IE8 and Safari 5.  Thank you in advance to anybody with advice or a solution.

helpall wrote:
> I looked in my books and help but found nothing on
linking to anchors in Spry
> panels. I have this sinking feeling that DW doesn't let
you link to anchors in
> specific panels. Or am I wrong and just need to add
additional code to the link
> besides the url and the #anchor name?
It has nothing to do with what Dreamweaver will let you do
nor not do, it has to do with what you the panels are "told" to do
in certain situations. In this case you want to open a specific
panel, preferably based upon the anchor name that you're already
using. Take a look at the URL Utilities sample page, in particular
at the last example:
http://labs.adobe.com/technologies/spry/samples/utils/URLUtilsSample.html
This means you'd need to get the full Spry download:
http://labs.adobe.com/technologies/spry/home.html
If you wanted, you could add a query string parameter like
the above example does, but that might mean changing a lot of
links.
Or you could modify the example code above to "slice" out the
first letter of the anchor and figure out the index of the tab to
show (they use a 0 based index, so 'a' would 0 and 'z' would be 25.
Try the following:
<script type="text/javascript">
<!--
var hash = window.location.hash;
if(hash){
// get the character code of the upper case of the first
letter then subtract 65
// 'A' has a character code of 65, so the subtraction gets
our tab index from 0 to 25
var charCode = hash.toUpperCase().charCodeAt(0)-65;
if(charCode < 0 || charCode > 25){ // If not in A-Z
range, use default for 'a'
charCode = 0;
else{
// Default to tab 0, or 'a' when no hash present
var charCode = 0;
//The defaultTab value checks to see if the url param is
defined. If it is not, it sets it to 0.
var
var TabbedPanels1 = new
Spry.Widget.TabbedPanels("TabbedPanels1", {defaultTab: charCode });
//-->
</script>
Danilo Celic
|
http://blog.extensioneering.com/
| WebAssist Extensioneer
| Adobe Community Expert

Similar Messages

  • Dreamweaver CS5.5 - Header, Named Anchor and Hidden text

    Hello,
    I am a relative novice when using dreamweaver. I don't use it in an official capacity, rather than as a Hobby.
    I have created a webpage with a position fixed header, displaying a Jump Menu/Drop Down Menu linking to named anchors on the page. I have a css linked to the page using:
    #header {
        text-align: center;
        width: 100%;
        background-color: #CFC;
        position:fixed;
        top:0;
        left:0;
        z-index:1000;
    When I use the menu to jump to the named anchor (#a04x01), the page will display the text, but the "Chapter One" text is hidden behind the header.
    My question is how to either offset the named anchor so when it is jumped to, it appears 200px above where it is meant to (So displaying "Chapter One")?, or to alter the header so it is in a solid state so the text cannot scroll "beneath" it, rather the page considers the bottom on the header the top of the page?.
    Any suggestion or solves would be gratefully accepted.
    PS: If needed, I can supply the .html page, & .css
    Thank you
    Regards
    TjStorm

    Remove position:fixed from your <header> and you won't have that problem.  Fixed positioned elements are not part of the normal document flow as they are at fixed coordinates at all times.
    This example uses fixed elements with ample top- and bottom-padding between sections.  View source to see the code.
    jQuery Smooth Scrolling with Fixed Layout
    Nancy O.

  • BC won't allow me to insert code (scripts) between the /body and the /html tags.

    Hi guys,
    So I have this weird problem. I'm trying to insert some codes between the </body> and the </html> tags in the page templates. It's saving it. But if you check the page, the code is showing before the </body>, not after. Here's the code that I'm trying to insert.
    <script src="http://i.simpli.fi/dpx.js?cid=1534&action=100&segment=198566&m=1"></script>
    I have also tried adding this code by downloading the templates through ftp, adding the code, then uploading it to the server. Same thing. I even added type="text/javascript" in the code. Still no go. BC wouldn't insert it between </body> and </html>. Any ideas guys?
    - Jeff

    So an update.
    I was told by Adobe chat support to try adding the script after the body via javascript.
    So I added this before </head>
    <script type="text/javascript">
    var script = document.createElement('script');
    script.src = '//i.simpli.fi/dpx.js?cid=1534&action=100&segment=198566&m=1';
    script.type = 'text/javascript';
    $("html").append(script);
    </script>
    Still not working. Any ideas guys?

  • Flash and the HTML anchor

    I have a link on a page that takes you to a particular spot
    on another page-in other words the link is anchored. It takes you
    to a section of the page that has a flash movie. Simple enough.
    However, this flash movie has a preloader in it and whenever
    I click the link the preloader won't work properly, if at all. I
    was assuming it was my actionscript or how I created the movie but
    I've tested this thing inside out and had no problems until I
    uploaded it.
    Then I noticed something: since the link is anchored I
    decided to navigate to the page without the anchor (i.e. take off
    the #anchor section of the web address) and wouldn't you know it,
    the preloader works like a charm.
    The questions are this: how could a simple anchored page
    affect a swf? Is it possible that the anchor is forcing the page to
    skip some of the flash embedding code when parsing? Has anyone even
    heard of this and if so, have you heard of any solutions?
    If you'd like to view what I'm babbling about:
    *page in question
    here
    *to test the page both ways remember to clear your cache
    after the first view
    Please note this issue is not dealing with creating anchors
    within Flash using the "Flash with named anchor" feature when
    publishing it in HTML. The anchor is completly seperate from the
    movie.
    Any help or insight to this problem would be appreciated!

    Still no luck finding any information on this topic.
    Please let me know if you know of this and how to resolve
    such a glitch.
    Thanks

  • Named Anchor in JEditorPane HTML

    I am loading an HTML string into a JEditorPane.
    The string has some named anchors (<A NAME="blah">) that reference other locations in the HTML string.
    Because I am loading the HTML string by using JEditorPane.setText, the named anchors do not work. This seems to be a problem when my HyperLinkListener tries to find the target URL.
    Does anyone know how to solve this problem?

    Did you find a solution for this problem in the meantime? I'd like to implement an online help feature in my newest program. I wrote a HTML text with anchors/links and the program loads this text to an JEditorPAne witch HTMLEditorKit by using the EditorPanes 'read' method. But all I got are HyperLinkExceptions from the HyperlinEventListener.
    regards, hgw2

  • Issue : Types don't match between the anchor and the recursive part in column Sql server 2005

    My table structure as follow
    ID JID EntryDate RefundDate Comments Refund ActionBy
    3 41986 2013-12-17 12/24/2013 Cancel 0 Matt
    4 41986 2013-12-17 12/25/2013 done 1 Kelly
    5 41986 2013-12-17 12/24/2013 no 0 Smith
    i want this type of output after issuing sql
    JID EntryDate RefundDate Comments Refund ActionBy
    41986
    2013-12-17 12/24/2013 Cancel 0 Matt
    2013-12-17 12/25/2013 done 1 Kelly
    2013-12-17 12/24/2013 no 0 Smith
    just to get the above output i issued this sql as follows
    ;WITH Hierarchy AS
    -- Anchor
    SELECT TOP 1 JID
    ,NULL EntryDate
    ,NULL RefundDate
    ,NULL Comments
    ,NULL Refund
    ,NULL ActionBy
    ,nLevel = 1
    FROM refundrequested
    UNION ALL
    -- Recursive query
    SELECT E.JID
    ,E.EntryDate
    ,E.RefundDate
    ,E.Comments
    ,E.Refund
    ,E.ActionBy
    ,H.nLevel+1
    FROM refundrequested E
    JOIN Hierarchy H ON E.JID = H.JID
    SELECT *
    FROM Hierarchy
    ORDER BY JID, nLevel

    i did this way and the error vanished
    ;WITH Hierarchy AS
    SELECT TOP 1 JID
    ,CAST(NULL AS DATETIME) EntryDate
    ,CAST(NULL AS DATETIME) RefundDate
    ,CAST(NULL AS VARCHAR(MAX)) Comments
    ,CAST(NULL AS BIT) Refund
    ,CAST(NULL AS VARCHAR(30)) ActionBy
    ,nLevel = 1
    FROM refundrequested
    UNION ALL
    SELECT E.JID
    ,E.EntryDate
    ,E.RefundDate
    ,E.Comments
    ,E.Refund
    ,E.ActionBy
    ,H.nLevel+1
    FROM refundrequested E
    JOIN Hierarchy H ON E.JID = H.JID
    SELECT *
    FROM Hierarchy
    ORDER BY JID, nLevel
    but a new error is showing and that is The statement terminated. The maximum recursion 100 has been exhausted before statement completion. how to fix this problem? please guide me. thanks

  • Why do I now have two copies of Photoshop on my mac?  ONe is named Photoshop, and the other his named Photoshop (2014)?  Not sure what other information to include here...

    I now have "Photoshop CC" and "Photoshop CC (2014)"

    http://blogs.adobe.com/jkost/2014/06/installing-the-2014-release-of-creative-cloud.html
    This messages says (at least some) CC 2014 programs use NEW plugins https://forums.adobe.com/thread/1499663
    -so do not uninstall the older CC programs if you use plugins in your programs until you are sure you have plugins that work in CC2014
    If you are sure you don't need the old CC programs
    -http://helpx.adobe.com/creative-cloud/help/install-apps.html to install or uninstall
    -read reply #3 about the ORDER of uninstalling & installing https://forums.adobe.com/thread/1242671

  • Is there any class in java named State .and also HTML tag

    while reading a code of Servlet
    I came across a class called State in the code which is added in the Vector
    vector.addElement(new State("instating"));
    I have never heared of this class.
    and also in the same code I came across This 2 tag's of HTML
    out.println("<META HTTP-EQUIV=\"Pragma\" CONTENT=\"no-cache\">");
    out.println("<a href=\"/lifecycle/servlet/freak\">Reload</a></p>");
    please if any one can explain me this tags as I don't know HTML.

    Thank for Gussing actually there is a method in the application which take String as a parameter.name of the method is createState(String message) .I thik they have written wrong code by adding State ("string")
    in the book .the book is from the WROX press the name of the book is
    Java server programming J2EE edition but so far there was'nt any mistake in the book.
    any what about those HTML tag.

  • ThreadLocal and the API doc

    Hi,
    I'm trying to understand ThreadLocal. The API javadoc provides the following example of a use of a ThreadLocal at http://java.sun.com/javase/6/docs/api/ :
    import java.util.concurrent.atomic.AtomicInteger;
    public class UniqueThreadIdGenerator {
         private static final AtomicInteger uniqueId = new AtomicInteger(0);
         private static final ThreadLocal < Integer > uniqueNum =
             new ThreadLocal < Integer > () {
                 @Override protected Integer initialValue() {
                     return uniqueId.getAndIncrement();
         public static int getCurrentThreadId() {
             return uniqueId.get();
    } // UniqueThreadIdGeneratorHowever I'm not sure I get this right. As far as I can tell, uniqueId is not thread-local, and will return basically the number of threads (minus 1) that have been created at any point in time, for any thread (rather than a unique ID for each thread). Shouldn't it be
    public static int getCurrentThreadId() {
             return uniqueNum .get();
         }(ie uniqueNum rather than uniqueID)? I can't imagine this error not having been spotted earlier, but I've looked online and can't find anything about it. Is there some understanding I'm missing?
    Thanks,
    Lis

    Ok I'm not a big thread pro (if that wasn't clear already ; ) ), so I tested this best I could. I copied the test class of the API and renamed to ThreadLocalTest. I then ran the following main:
    public class ThreadLocalTestrun
         public static void main(String[] args)
              System.out.println("at the start - " + ThreadLocalTest.getCurrentThreadId() + " - " + Thread.currentThread().getName());
              new MyThread("NewThread-1").start();
              new MyThread("NewThread-2").start();
              System.out.println("in the end - " + ThreadLocalTest.getCurrentThreadId() + " - " + Thread.currentThread().getName());
         public static class MyThread
              extends Thread
              String message;
              MyThread(String name)
                   super(name);
              @Override
              public void run()
                   boolean hasRun = false;
                   while (!hasRun)
                        System.out.println("Current Thread Id: " + ThreadLocalTest.getCurrentThreadId() + " (name '" + Thread.currentThread().getName() + "')");
                        hasRun = true;
    }If I run the code with the uniqueId call, I get the following output:
    at the start - 0 - main
    in the end - 0 - main
    Current Thread Id: 0 (name 'NewThread-1')
    Current Thread Id: 0 (name 'NewThread-2')(and I don't understand why uniqueId hasn't been incremented except perhaps that uniqueNum never gets instantiated because it's not called?)
    I then ran it with uniqueNum instead and got this:
    at the start - 0 - main
    in the end - 0 - main
    Current Thread Id: 2 (name 'NewThread-1')
    Current Thread Id: 1 (name 'NewThread-2')which looks a lot more like assigning a unique Id to a thread.
    Is there something more subtle at play here which I'm not getting? Why would the int returned by uniqueId be thread-local, if uniqueId itself isn't?

  • Jump to a Named Anchor when loading an HTML doc

    I have a CollapsiblePanel with a Content Link to a Named
    Anchor in info.html and I thought I could use loadURL() to load the
    page into the Div "thetext" but it does not work. Can Spry Jump to
    a Named Anchor when it loads an HTML doc?
    onClick:
    Spry.Utils.updateContent('thetext',
    '/information2.php#Insurance')
    And I also tried:
    Spry.Utils.loadURL('thetext', '/information2.php#Insurance')
    The Head:
    <script src="SpryAssets/SpryCollapsiblePanel.js"
    type="text/javascript"></script>
    <link href="SpryAssets/SpryCollapsiblePanel.css"
    rel="stylesheet" type="text/css" />
    <script language="JavaScript" type="text/javascript"
    src="Spry_P1_6_10-01/includes/SpryData.js"></script>
    <script language="JavaScript" type="text/javascript"
    src="Spry_P1_6_10-01/includes/SpryEffects.js"></script>

    On 08 Oct 2007 in macromedia.dreamweaver, antonioconte wrote:
    > Does anyone know if and how its possible to jump to a
    named anchor?
    > I need to use the behavior panel to call a page into a
    pop up and
    > jump to an anchor too - is this possible?
    Sure - just make the link to the anchor:
    <a
    href="page.php#anchor"
    onclick="popupscript('page.php#anchor');return false;">
    Open my popup window</a>
    Making the link attribute (href=) the same as the popup
    window means that
    people who are visiting your site with javascript turned off
    will also
    get the information from the page. The 'return false' in the
    onclick
    event means that the href won't fire if javascript is turned
    on.
    Joe Makowiec
    http://makowiec.net/
    Email:
    http://makowiec.net/contact.php

  • 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 &lt;nav&gt; 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!

  • Handeling named anchors

    Hi
    I'm trying to set up an news page on my site. I have one main frame where I want the news articles to be displayed, "News". Linked to the frame New is a html page where I write the articles month by month.
    In another frame "search" I have a list of months. in the htlm page linked to "search" I have made each month a link to a named anchor in the "news" page.
    My site is set up with css and I have a container 790x650 px. The frames are inside this container. The background is a color defined in css.
    I have two problems:
    When I search in the "search" frame the entire site scroll upwards. I want the container to stay fixed against the top of my browser and the scrolling to be contained to the frame "news". I have the container centered with a 60 px top margin. Is there a function that will keep the page from scrolling? Should I set it up another way?
    I can't get the months I use as links in my "search" doc to list with a normal spacing. How do I change this?
    Grateful for all input,
    Erik

    Hi Nancy
    Thank you for replying.
    I'm using iframes. I hope it's not as bad. Please advice if you know of another, better solution.
    My site is not up yet but you can see the page I'm referring to at www.evenemang1.se/nyheter_1.html.
    Again, Thank you for helping out!
    Erik
    30 mar 2010 kl. 20.26 skrev Nancy O.:
    You'll need to post a URL to your page.  There's no way we can help you without seeing your CSS and HTML code.
    I sure hope you're not really using FRAMES or Framesets.  That would be a tragedy because Frames are so awful the W3C saw fit to remove them from HTML 5 web standards.
    *More on Frames -
    http://apptools.com/rants/framesevil.php*
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com
    >

  • Dreamweaver Lightbox exclude a named anchor

    I'm working on a non-flash backup for my baby hats catalog.  I use Dreamweaver CS5.5 and a lightbox that I downloaded from the widgets to display the images.  However, my first image and then two inbetween each hat are other <a></a> tags.  The first serves as a named anchor for the navigation and the second opens a .pdf. When you view the lightbox images these two appear as the "waist lightbox is loading" circle image.  You have to click "next" twice to get to the next actual image.  Is there a way to exclude these two instances? I'm afraid my end users won't know to click "next" twice to see the next image.
    Thanks.
    My code is on this page:
    http://www.ecochicknits.com/Babyold.html

    Use 'data-lightbox' attribute to combine each set of hats into its specific gallery, thereby restricting each lightbox instance to only show 4 or 5 of those hat images and not all images available on page. Read http://lokeshdhakar.com/projects/lightbox2/ (How to Use) section for more details on how you can do this
    On a sidenote, why are you including the jquery.js and lightbox.js 3 times each on your page? Your HTML page, Lines 159-167:
    <script src="Scripts/jquery.js" type="text/javascript"></script>
    <script src="Scripts/lightbox.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <script src="Scripts/jquery.js" type="text/javascript"></script>
    <script src="Scripts/lightbox.js" type="text/javascript"></script>
    <script src="Scripts/jquery.js" type="text/javascript"></script>
    <script src="Scripts/lightbox.js" type="text/javascript"></script>
    <script src="Scripts/jquery.js" type="text/javascript"></script>
    <script src="Scripts/lightbox.js" type="text/javascript"></script>
    You can remove the lines I've struck off here. You're already calling these scripts in the first 2 lines.

  • Anchor sign on html signature

    I generated an html signature using TB. İmages and writing are all fine, however, there appears an anchor sign/image in front of the signature, which can not be deleted or selected at all. The anchor doesn't disappear once the email is sent. It could still be view on the receivers account. How can I remove it?

    If the anchor sign is black on a yellow background then you inserted a named anchor into your signature.
    anchors are used to point to another location within the same email.
    So if you had a couple of headings which you want people to click on in order to auto jump to another section of the email without having to scroll down. You would create Named Anchors. It is a special link to jump to another section within the same email.
    In your case, it would appear that you may have selected 'Insert' > 'Named Anchor' and not required it ? Either create a new signature or edit the saved html file to remove the named anchor.
    or maybe you did something like this:
    Created a Named Anchor in the signature so that later you could create a link in the email to your eg: contact details which are contained in the signature?
    So if people click on the content link they are auto jumped down to your signature ? Very useful if you are creating a lengthy email.
    The Anchor sign will show when you open a new write message.
    Enter text and maybe a link to the named anchor.
    If you save the new Write email into Drafts, you will see that the 'anchor' does not show and the link to the anchor shows as an underlined hyperlink.

  • Named Anchors don't work in IE 8

    Hi everyone,
    In my .dwt template file I placed a Named Anchor at the top of the page (not an editable region) and named it "top".  At the bottom of the page a link named (top).
    All other browsers give a satisfactory result: click on (top) and to the top of the page you go!
    IE nope!
    http://artdesignsneed.com/joeldoctor/index.html
    What can I do?
    Thanks for the help!

    It seems that IE8 doesn't like named anchor tags that are empty.
    1) Try a non-breaking space (or any text content) inside the <a> tag
    <a name="top" id="top">& n b s p ; </a>
    without any spaces between & n b s p ;
    2) or try the inline-block trick mentioned here
    http://chrisjean.com/2010/10/20/links-to-named-anchors-or-element-ids-fail-in-ie8/
    <a name="top" id="top" style="display:inline-block"></a>
    3) or, for a sitewide solution, try using an attribute selector in an IE8-only CC in one of the linked CSS stylesheets
    /* ensure named anchors work in IE8 */
    <!--[if IE 8 ]>
    a[name] { display:inline-block; }
    <![endif]-->

Maybe you are looking for