₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,328,383 members, 8,435,466 topics. Date: Sunday, 28 June 2026 at 06:27 PM

Toggle theme

Ajax Dropdown Menu Scripts - Webmasters - Nairaland

Nairaland ForumScience/TechnologyWebmastersAjax Dropdown Menu Scripts (1526 Views)

1 Reply (Go Down)

Ajax Dropdown Menu Scripts by Syvalam(op): 7:01pm On Mar 26, 2010
Pls i urgently need AJAX dropdown menu scripts for ongoing web project pls kindly help me out
Re: Ajax Dropdown Menu Scripts by DualCore1: 7:14pm On Mar 26, 2010
dynamicdrive.com
Re: Ajax Dropdown Menu Scripts by Nobody: 11:46pm On Mar 26, 2010
simply google "code for a Ajax Drop Down Menu" and test all scripts you see from sites for the best that suits ur desire.

Thanks.
Re: Ajax Dropdown Menu Scripts by Syvalam(op): 9:58pm On Mar 27, 2010
Thanks a lot @ Dual Core , Donpuzo

i got the script below from w3schools.com and it works properly but am still having problem with handling multiple XMLHttpRequestObject

var xmlhttp;

function listBranch(str)
{
xmlhttp=GetXmlHttpObject();
if (xmlhttp==null)
{
alert ("Browser does not support HTTP Request"wink;
return;
}
var url="getBranch.php";
url=url+"?cpn="+str;
url=url+"&sid="+Math.random();
xmlhttp.onreadystatechange=stateChanged;
xmlhttp.open("GET",url,true);
xmlhttp.send(null);
}

function stateChanged()
{
if (xmlhttp.readyState==4)
{
document.getElementById("branchList"wink.innerHTML=xmlhttp.responseText;
}
}

function GetXmlHttpObject()
{
if (window.XMLHttpRequest)
{
// code for IE7+, Firefox, Chrome, Opera, Safari
return new XMLHttpRequest();
}
if (window.ActiveXObject)
{
// code for IE6, IE5
return new ActiveXObject("Microsoft.XMLHTTP"wink;
}
return null;
}// JavaScript Document
Re: Ajax Dropdown Menu Scripts by Nobody: 10:42pm On Mar 27, 2010
You r welcome. grin
Re: Ajax Dropdown Menu Scripts by Nobody: 9:13am On Mar 28, 2010
there is a reason why i dont use that xmlrequest stuff, i think it is not crossplatform, that is the problem
you get on w3schools atimes, they teach stuffs, but are not always practical.
Re: Ajax Dropdown Menu Scripts by mikkyphp(m): 12:56pm On Apr 01, 2010
dynamicdrive.com it is!
1 Reply

Complete Tutorials On Designing A Wapka.m0bi Site.(codes/scripts Etc)Form Validation Tutorial Using Javascript, Php And Ajax!Dynamic Web Design Tutorials Ft Javascript,Ajax,DOM,PHP,MySQL...234

I Need A Website DesignAlcatel Set To Launch Their New Window Smartphone Onetouch Fierce XL In USPlease Can Someone Tell Me The Diffrence Between Nigeria Adsence And Us Adsence