Thursday, June 19, 2008

Simple Ajax Coding

oDesk Certified Software Testing Engineer

var xmlHttp // xmlHttp variable
function GetXmlHttpObject() { var objXMLHttp = null;
if( window.XMLHttpRequest ) {
try {
objXMLHttp = new XMLHttpRequest();
}
catch( e ) {
objXMLHttp = false; }
}
else if( window.createRequest ) {
try {
objXMLHttp = new window.createRequest();
}
catch( e ) {
objXMLHttp = false;
}
}
else if( window.ActiveXObject ) {
try {
objXMLHttp = new ActiveXObject("Msxml2.XMLHTTP");
}
catch( e ) {
try {
objXMLHttp = new ActiveXObject("Microsoft.XMLHTTP"); } catch( e ) {
objXMLHttp = false;
}
}
}
return objXMLHttp;
}
function search_subcategory(){
//alert('sdfsdf');
document.getElementById('subcategory_label').style.display="none";
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null){
alert ("Browser does not support HTTP Request")
return
}
var val = document.getElementById('category').value;
var url="dropdown.php?val="+val;//alert(url);
xmlHttp.onreadystatechange = response;xmlHttp.open("GET",url,true);
xmlHttp.send(null);
function response(){
if (xmlHttp.readyState == 4) {
var x =xmlHttp.responseText;
document.getElementById('subcategory_label').style.display="block"; document.getElementById('subcategory_label').innerHTML = x; }
else {
document.getElementById(y).style.display = "block";
document.getElementById(y).innerHTML ="Loading...";
}
}
}

3 comments:

mary Brown said...

Great Article

JavaScript Training in Chennai | JavaScript Course | Javascript Online Course | Angularjs Training | Backbone.JS Training in Chennai | Bootstrap Training in Chennai | Node.js Training in Chennai

Chase4Net IT Solutions said...

How to start the software company ?

Best Website Design company - PHP,JAVA,ANDROID App Developement Company

Chase4Net is a Software Company and having office at Chennai & bangalore . Our main focus areas are Web Development and Software Development.
Chase4Net has been ranked as the No.1 for the web designing company in Chennai & Bangalore.

To start the in Software comany is very simple and more profitable . To start the business first you need a Team which supprt for your everything.
In todays software development is nothing but a web application . To develop a webapplication you need start the Website desining Company is one of the more profitable business with less invesment.

We are having the talented Team with 8 years Expereince in webdesign business , which will guide to start the software company quickly with lesss effort.

There are many business includes in website developmet - Logo design,website design , webhosting , domain registartion ,android app development .

Even If you do not how to develop wensite no woriess . Chase4Net will be there always with you , we can help you on the business by developing a websiite a behalf og you.


We also have team who deloped application such as Hotel booking website development |, bus tickect booking website development | , shopping website development | , hospital website development |,
bill software desing | ,job website development |, tickect booking website development | ,matrimonial website development |,RealEstate website development .

You just become a website design company by website desgin reseller program , We will take you to the next level.

Enter into partnership with us so that we can help you to setup your business including website design for your company,Email-Id creation,Web Hosting membership,Domain Reseller membership,Payment Gateway Integration,SMS Integration.Chase4Net ensures
you to start the business from day one rather than making you run behind business plans.To be our franchise we charge as low as INR Rs 20000/- (or) $296To pay the franchise membership fee.How to pay

Chase4Net IT Solutions said...

Best Website Design company - PHP,JAVA,ANDROID App Developement Company

Chase4Net is a Software Company and having office at Chennai & bangalore . Our main focus areas are Web Development and Software Development.
Chase4Net has been ranked as the No.1 for the web designing company in Chennai & Bangalore.

How to start the Online Bussiness ?

To start the Business in online is very simple and more profitable . Today starting the Website desining Company is one of the more profitable business with less invesment.

We are having the talented Team with 8 years Expereince in webdesign business , which will guide to start the software company quickly with lesss effort.

Now a days all the business are moving towards online . Too start the company we need correct Business Model and thats Chase4Net . We will help you to setup the Website design Company at less cost . The website desing compnay can offer the following Logo design,website design , webhosting , domain registartion ,android app development .

Even If you do not know how to develop wensite no woriess . Chase4Net will be there always with you , we can help you on the business by developing a websiite a behalf og you.


We also have team who deloped application such as Hotel booking website design |, bus tickect booking website desing | , shopping cart website desing | , hospital website desing |,
bill software desing |,job website design |,tickect booking website design | ,matrimonial website design |,RealEstate website design .

You just become a website design company reseller program , We will take you to the next level.

Enter into partnership with us so that we can help you to setup your business including website design for your company,Email-Id creation,Web Hosting membership,Domain Reseller membership,Payment Gateway Integration,SMS Integration.Chase4Net ensures
you to start the business from day one rather than making you run behind business plans.To be our franchise we charge as low as INR Rs 20000/- (or) $296To pay the franchise membership fee How to pay