Results 1 to 8 of 8

Thread: Anchor link and IE

  1. #1
    Join Date
    Jan 2007

    Anchor link and IE

    Hi HTML experts,

    I totally confused about IE behavior with anchor link, on Firefox everything work fine.
    I have a Joomla page and a link to write comments:
    but IE don’t scroll to anchor link, I have tried to use < a name=”komentuoti”></a>, then <a id=”komentuoti”></a>, even saw somewhere this anchor <a name="komentuoti" id="komentuoti"></a>

    But nothing works in IE, so what is wrong, it so stupid thing that I even don’t know were to look more.

    Thanks for any thoughts

  2. #2
    Join Date
    Jan 2005
    You code the link like this:
    <a href="page.htm#komenuoti"></a>

    The "page.htm" is the file name of the page the anchor is on.


  3. #3
    Join Date
    Jan 2007
    Quote Originally Posted by KDLA
    You code the link like this:
    <a href="page.htm#komenuoti"></a>

    The "page.htm" is the file name of the page the anchor is on.
    Actually, specifying the page name is not required and also doesn't fix the problem.

    I am having the same problem. It seems that at least in some cases, IE will not follow an HREF to an anchor *unless* the user has actually clicked the anchor with their mouse... In my case, my site dynamically determines the anchor depending on a variable and then uses an HTTP redirect to attempt to send the user to it (without them actually clicking any HREF).

    So for IE, I suspect a bit of Javascript that actually clicks the DOM anchor HREF on page load will be required.

  4. #4
    KxxxxxVxxxxxx Guest

    Joomla IE Anchor Issues

    Has anyone found a fix for this issue because I am stuck on this and haven't be able to find a resolution from anyone.
    Last edited by brad jones; 07-20-2017 at 07:30 AM. Reason: link removed by admin

  5. #5
    Join Date
    Dec 2005
    American, living in Toronto, ON. CANADA
    <body><a title="top" name="top"/></a>
    illegally-closed tag. This tag is invalid as~written, therefore, it does not exist.
    Firefox may be 'kinder' and allow this, but brain-dead IE, to a fault, sometimes tries too hard to be correct and thus, fails to work...

    Write it this way:

    <body><a title="top" name="top"><!-- --></a>
    And this should work. I added the 'comment' tag to make it validate (the "<!-- -->" part in any 'blank' or 'empty' tag is required, to validate.)

    This works if the anchor is on the same page. Otherwise, re-visit KDLA's suggestion.
    I build for: Firefox and tweak for IE

  6. #6
    KxxxxxVxxxxxx Guest
    Thank you, but that did not fix my problem. The "top" anchor works in all browsers. but the top anchor links "Design Re−Engineer Landscaping Irrigation Maintenance Terraform Lawn Treescape Homescape Vertiscape Hardscape Lightscape Waterscape" do not work in IE 6 or 7. This site is laid out in Joomla and the anchor navigation at the top is in the section description and the refer to each of the articles. I can get it to work if I make it all one article but it appears to only be a problem in the IE browsers so I was hoping for a hack solution.

    I did try the KDLA suggestion and it did not correct the problem.

  7. #7
    Join Date
    Jan 2005
    Try getting your code as close to valid as possible (I know that's hard with Joomla): http://validator.w3.org/check?verbos...9%23komentuoti

    There are all sorts of problems in there that could be contributing to this. It's hard to work on a solution until the "problems" are streamlined a little.
    Last edited by KDLA; 02-06-2009 at 01:27 PM.

  8. #8
    Join Date
    Apr 2003
    @ maluka The bookmark komentuoti does not exist

    @ KarmicVisions write semantic html:
    <h3 id="landscaping">Landscaping</h3>
    h3 {
    margin:0.5em 0;
    padding:0.2em 0.5em;
    At least 98% of internet users' DNA is identical to that of chimpanzees

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



X vBulletin 4.2.2 Debug Information

  • Page Generation 0.26088 seconds
  • Memory Usage 2,903KB
  • Queries Executed 13 (?)
More Information
Template Usage (34):
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_global_above_footer
  • (1)ad_global_below_navbar
  • (1)ad_global_header1
  • (1)ad_global_header2
  • (1)ad_navbar_below
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)ad_thread_first_post_content
  • (1)ad_thread_last_post_content
  • (2)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)headinclude_bottom
  • (8)memberaction_dropdown
  • (1)navbar
  • (4)navbar_link
  • (1)navbar_moderation
  • (1)navbar_noticebit
  • (1)navbar_tabs
  • (2)option
  • (8)postbit
  • (6)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available (6):
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files (26):
  • ./showthread.php
  • ./global.php
  • ./includes/class_bootstrap.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/functions_navigation.php
  • ./includes/class_friendly_url.php
  • ./includes/class_hook.php
  • ./includes/class_bootstrap_framework.php
  • ./vb/vb.php
  • ./vb/phrase.php
  • ./includes/functions_facebook.php
  • ./includes/functions_calendar.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_notice.php
  • ./packages/vbattach/attach.php
  • ./vb/types.php
  • ./vb/cache.php
  • ./vb/cache/db.php
  • ./vb/cache/observer/db.php
  • ./vb/cache/observer.php 

Hooks Called (70):
  • init_startup
  • friendlyurl_resolve_class
  • init_startup_session_setup_start
  • database_pre_fetch_array
  • database_post_fetch_array
  • init_startup_session_setup_complete
  • global_bootstrap_init_start
  • global_bootstrap_init_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • load_show_variables
  • load_forum_show_variables
  • global_state_check
  • global_bootstrap_complete
  • global_start
  • style_fetch
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • strip_bbcode
  • friendlyurl_clean_fragment
  • friendlyurl_geturl
  • forumjump
  • cache_templates
  • cache_templates_process
  • template_register_var
  • template_render_output
  • fetch_template_start
  • fetch_template_complete
  • parse_templates
  • fetch_musername
  • notices_check_start
  • notices_noticebit
  • process_templates_complete
  • friendlyurl_redirect_canonical
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • memberaction_dropdown
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • build_navigation_data
  • build_navigation_array
  • check_navigation_permission
  • process_navigation_links_start
  • process_navigation_links_complete
  • set_navigation_menu_element
  • build_navigation_menudata
  • build_navigation_listdata
  • build_navigation_list
  • set_navigation_tab_main
  • set_navigation_tab_fallback
  • navigation_tab_complete
  • fb_like_button
  • showthread_complete
  • page_templates