Note that there are some explanatory texts on larger screens.

plurals
  1. POJQuery AJAX url parameter: internal links/relative links
    primarykey
    data
    text
    <p>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.</p> <p>I've tried appending #linkId to the href attribute value but jQuery seems to truncate all characters after the # character. </p> <p>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.</p> <pre><code>$('.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) { } } }); </code></pre> <p>I've got a the list of Contentents rendered as follows:</p> <pre><code>&lt;li&gt;&lt;a href=""mocks/FetchHelpNote.asp?sourceFile=sc_mna#helpFooter"" class=""helpNoteDialogIndexLink""&gt;" &amp; recordset("title") &amp; "&lt;/a&gt;&lt;/li&gt;" </code></pre> <p>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</p> <p>The layout is as follows in my Tab Panel.</p> <p><strong>List of Contents</strong></p> <p>linkOne</p> <p>linkTwo</p> <p><strong>Contents.</strong></p> <p>linkOne</p> <p>linkOneContent</p> <p>linkTwo</p> <p>linkTwoContent</p> <p>The goal would be to allow an end user to click the link and move to the relevant section via the internal link. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload