Navigation Menu
Alphabetical Listing
Site Contents

Site FAQ
About JSS
JavaScript Forum
JavaScript Tutorial
Friends of JSS

Link to Us
JavaScript Help
Contribute a script
Technology Jobs

Become a Partner

Internet.commerce

Be a Commerce Partner














Internet.com

IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

Developer Channel

FlashKit.com
JavaScript.com
JavaScriptSource
Developer Jobs
ScriptSearch
StreamingMediaWorld
Web Developer's Journal
Web Developer's Virtual Library
WebDeveloper.com
Webreference
Web Hosts
XMLfiles.com

Great Sites

DocJavaScript.com
dhtml.com
The Freebie Directory
TheFreeSite.com

Browse Doc JS's Tips!


Hiermenus Central


Promotions

Free Announcements


Social Bookmark

General

When a visitor clicks on a specific link, the content of that link is inserted into the page without a refresh. When a page doesn't exist, a user-friendly error message is given. [Note: This is an edited version of the original script.]


My Navagation links
Go to page 1
Go to page 2
Go to page 3
Go to page 4
Broken Link

Notes

Source Code

Paste this source code into the designated areas.

External file

Paste this code into an external JavaScript file named: ajaxNavigation2.js


Head

Paste this code into the HEAD section of your HTML document.


Body

Paste this code into the BODY section of your HTML document


User Comments

Add a comment, suggestion, or correction
[For questions about usage, consult the Notes tab above or visit the JavaScript forum. Do not include more than two (2) lines of code in your comments. If you have suggestions or corrections, you can submit them to us.]

    
   
       
[optional]
 
[optional]

   

Comments feed Comment Feed RSS 2.0

34. From: Andy
04/23/2008 15:35:52

22. From: Erick

I have the exact same problem!

Script works fine for static sites. But the caching is a pain for dynamic sights!

32. From: Bobby
11/09/2007 16:36:29

This seems to only work for pages that exist on your own database. Is there a way to get it to work for external sites?

I have only tested this on FF2.0.0.9

33. From: Lee (Admin)
11/13/2007 11:58:22

Due to the limitations of these comments, you will need to submit your question to the JavaScript Forum for further help.

30. From: Aikido
ASPX Pages
09/25/2007 09:54:25

Is there any way that this script or is there another script that allows you to pass (ASPX) pages instead of html?

Please advise.
Thanks.

31. From: Lee (Admin)
11/06/2007 11:54:03

You will need to submit your question to the JavaScript Forum for further help.

28. From: miguel
Firefox
09/19/2007 20:20:25

The Script doesn't work on Firefox. When i make click on the same link five times, the file load five times .... etc

Any ideas?

29. From: Lee (Admin)
11/06/2007 11:44:37

Not sure what you mean. It works fine for me using FF 2.0.0.9. Each time I click a link, it loads the page only once.

26. From: rikard lassenius
06/11/2007 06:40:22

hi, i'm trying to find a simple ajax navigation code to implement on a few sites (finally get rid of those frames!) and this one seemed super. got it to work as it is without any problems. one question though, what's the meaning of the 'my_site_content' part in the open-url string? i don't know anything about java, so i couldn't figure it out.


and if anybody has any other great navigation scripts, i'll be interested. actual�ly wanted something with php (since i know some), but they all seem so complicated...

27. From: Lee (Admin)
06/12/2007 15:17:59

You need to submit your question to the JavaScript Forum.

25. From: mostafa
When two calls are made
05/15/2007 04:02:47

Hi
When I call that function twice it makes bad results and fails to display the output.Also the page address is not changed ! not friendly too. but the rest is great and simple.
thanks

next comments...

Do you write JavaScripts?
If you do, why not submit them to us?
We'll give you credit and a link back to your Web site.