Results 1 to 2 of 2

Thread: Dynamic Ajax Content question

  1. #1
    Join Date
    Sep 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Dynamic Ajax Content question

    1) Script Title: Dynamic Ajax Content dropdown option value.

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...jaxcontent.htm

    3) Describe problem:
    I was reading your posting at the above url, and interested about that part of "Using a drop down menu to load the links". The example you provided is using a drop down menu to select three different pages to be loaded, such as:
    "<option value="page1.htm">Page 1</option>
    <option value="page2.htm">Page 2</option>
    <option value="subdirectory/page3.htm">Page 3</option>
    ...
    ".
    user click different option, different page is loaded and displayed in the "div" section. I was wondering if it possible I can create a dropdown menu as follows:
    "
    <option value="page.htm#section1">Page 1</option>
    <option value="page.htm#sectioin2">Page 2</option>
    <option value="page.htm#sectioin3">Page 3</option>
    "
    Here there are three options, which are pointing to the different section link of the same page. When user click one option, that htm is loaded and it jumps to the section that option pointed. I tried to do it with the script you provided, but no good.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    No. You can't do that. The named anchor requires a page reload. A page reload resets the content to the default.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •