Results 1 to 2 of 2

Thread: JavaScript Menu. Display on same page

  1. #1
    Join Date
    Apr 2014
    Thanked 0 Times in 0 Posts

    Default JavaScript Menu. Display on same page

    I hope I'm on the right thread, if not, sorry.
    HI. I downloaded the following menu All Levels Navigational Menu- (c) Dynamic Drive DHTML code library using the following files

    what I'm trying to do is when I click a menu item the content displays on the same page instead of spawning a new page. can someone tell me how to do this. Examples would be very helpful. I haven't done any serious web coding in many years, so please pardon my ignorance.

    thanks Lamar

  2. #2
    Join Date
    Mar 2005
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries


    What you are talking about is usually done using a targeted frame, targeted iframe, or AJAX that targets a div element. Whichever, these are accomplished by (in the case of targeted frame or iframe) specialized links and in the case of AJAX, links that use javascript to invoke an AJAX call. Since the markup for the menu is preserved, you should be able to use any of those methods. So, if you know how to do that with a simple link, you can do it with this menu. And the menu itself (in this case) has nothing to do with were the content appears. Using targeted frames or iframes is part of basic HTML and you can Google it if you need help using them. If you are unfamiliar with AJAX, it's theory is complicated, but here's a decent introductory script:

    But skip the loadobjs part, it's almost useless.
    - John

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

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    LamarM (04-17-2014)

Similar Threads

  1. Help in display menu for javascript
    By chs_rachel86 in forum JavaScript
    Replies: 4
    Last Post: 03-31-2010, 07:35 PM
  2. Using DOM in javascript to display pages within a page
    By goldalushington in forum JavaScript
    Replies: 2
    Last Post: 12-28-2009, 04:16 AM
  3. Menu Display blanks Java window on page
    By Infoarchitect in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 08-04-2009, 10:54 PM
  4. Chained Menu-Display Selection on Next Page?
    By jsybol in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 10-05-2007, 09:04 PM
  5. Looking for script (javascript?) to display page directory
    By mana7 in forum Looking for such a script or service
    Replies: 4
    Last Post: 01-28-2007, 08:40 AM


Posting Permissions

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