SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Zealot phillipus_rex's Avatar
    Join Date
    Jan 2007
    Location
    Silicon Holler
    Posts
    184
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question XML Doesn't Support HTML Page Jumps???

    Hello,

    I have a flash movie with buttons that have HTML links attached to them through an XML file.

    Everything works just fine except for one thing:

    The links all go to one HTML file that has several <a name> references within it. I have used these often before to create page-jumps within a single HTML page, however, when I try to call these page jumps through XML, they don't work. The link sends me to the top of the page instead of the name space I have created.

    The XML is pretty straightforward:
    Code:
    <icon image="icon1b.png" tooltip="My Tool Tip" link="my_page.html#my_namespace" />
    It seems as if once the .html portion of the tag is read, it ignores the namespace.

    Does this mean that HTML page jumps are not supported through XML?
    "Be kind, for everyone you meet is fighting a
    hard battle." -Plato

  2. #2
    In memoriam gold trophysilver trophybronze trophy Dan Schulz's Avatar
    Join Date
    May 2006
    Location
    Aurora, Illinois
    Posts
    15,476
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    replace name="" with id="" and you should be fine

  3. #3
    SitePoint Zealot phillipus_rex's Avatar
    Join Date
    Jan 2007
    Location
    Silicon Holler
    Posts
    184
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks, but still no go.

    Instead of "name", I used "id". Example: <a id="reference1">

    Within the XML file, I made sure that the link attribute had the id on the end.
    Example: link="myLink.html#reference1"

    Is there something wrong with the code I am using or could it be something else?
    "Be kind, for everyone you meet is fighting a
    hard battle." -Plato

  4. #4
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,832
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    It would probably work better if you put the id on a different tag. The <a> tag is only really needed when you want to use href to link to something.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  5. #5
    SitePoint Zealot phillipus_rex's Avatar
    Join Date
    Jan 2007
    Location
    Silicon Holler
    Posts
    184
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Stephen, but I'm still having problems.

    Instead of an <a id="myId">, I used a <div id="myId"> and still no luck.

    Here is a link to the project that I am building - Click Here

    I want the links on each panel to correspond to the particular area of the html page that talks about that respective project.

    Currently when you go to the page there are functioning page jumps and a mini navigation at the top that allows you to go to those areas - I just want it to go there automatically through the XML file that houses the links.
    Last edited by phillipus_rex; Sep 10, 2008 at 06:48.
    "Be kind, for everyone you meet is fighting a
    hard battle." -Plato


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •