hi,
i am very new AJAX.i have some assignment.

if i am clicking any menus means target location must be in PARENT ITSELF.it should not open another windows.As like frameset,but i dont need to use frameset.I want to use AJAX with javascript............

please give me a sample coding.

Learn jquery if you want to quickly and easily do menu switches:

$(function(){
$('a.menu').click(function(){
    var loc = $(this).attr('href');
    $('#content').load(loc+' #content');
});
});

If need to put a javascript link to jquery first if you use it, though.
It takes the href, the loads the content div of the remote file into the main content div page.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.