Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6355231
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T22:43:26+00:00 2026-05-24T22:43:26+00:00

How do I go about loading a page via ajax and directly moving to

  • 0

How do I go about loading a page via ajax and directly moving to a particlur section via an internal link.? I know a way of going about it is appending #[sectionId] to the url or query string.

I’ve tried appending #linkId to the href attribute value but jQuery seems to truncate all characters after the # character.

Context:
I’m using the JQuery Tabs UI and have a tab associated with a panel. The panel contains a list of links- list of contents- plus the main contents. Given the list of contents preceeds the main contents, I’d like to be able to click a link and directly move the associated section.

$('.helpNoteTabs').tabs({
        load: function (event, ui) {
            $('a', ui.panel).live("click", function () {
                $(ui.panel).load(this.href );
                return false;
            });
        },
        ajaxOptions: {
            data: { dataj: "", sourceFile: sourceFileName, table: "" },
            cache: false,
            type: "POST",
            success: function (data, textStatus) {
            }
        }
    });

I’ve got a the list of Contentents rendered as follows:

<li><a href=""mocks/FetchHelpNote.asp?sourceFile=sc_mna#helpFooter"" class=""helpNoteDialogIndexLink"">" & recordset("title") & "</a></li>"

Note: I’ve only appended the #helpFooter to the href attribute above value as a test to see if the footer section move up in view. On Clicking and inpecting the posted url with Firebug. I realize the the # character and characters after it is truncated:
Post: mocks/FetchHelpNote.asp?sourceFile=sc_mna

The layout is as follows in my Tab Panel.

List of Contents

linkOne

linkTwo

Contents.

linkOne

linkOneContent

linkTwo

linkTwoContent

The goal would be to allow an end user to click the link and move to the relevant section via the internal link.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T22:43:27+00:00Added an answer on May 24, 2026 at 10:43 pm
    #, . and others are special characters, you need to escape them with \\
    

    from jquery selectors :

    If you wish to use any of the meta-characters ( such as !”#$%&'()*+,./:;<=>?@[]^`{|}~ ) as a literal part of a name, you must escape the character with two backslashes: \\. For example, if you have an element with id=”foo.bar”, you can use the selector $(“#foo\\.bar”).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently loading HTMl content via AJAX. I have code for things on
I have a page that automatically refreshes content via Ajax. I want this to
This question relates to my previous question which asks about loading a page into
I am loading another page into an el via XHR . The loaded page
I have created a page which is autorefreshing via ajax requests. On this page
How would one go about loading compiled C code at run time, and then
I have read about dynamically loading your class files when needed in a function
Please provide a good, thorough tutorial about Java class loading , focusing on how
Where can I find more information about GWT and GWT-Ext's lazy loading?
I have a page with multiple Matplotlib figures embedded. The figures get inserted/manipulated via

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.