/    Sign up×
Community /Pin to ProfileBookmark

IE Browser –problem Please help me

Hai friends

I have listed the combo box va;ues useing ajax function foe example when user select the region related country displaying the next combo box , Its working for fier fox breowser but iits not working in IE I am getting the java script error. (Object required)

Please help me how to solve the issue .

vssp

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@SheldonOct 07.2006 — Why post this in the PHP forum? this is a javascript issue.

Also when posting a question like this you need to post code! How can we help you fix what we cant see?
Copy linkTweet thisAlerts:
@NogDogOct 07.2006 — [i]Moved to JS forum[/i]
Copy linkTweet thisAlerts:
@vsspauthorOct 07.2006 — Here is the code how to solve this issue


function checkSearchCriteria()

{

if(window.XMLHttpRequest)
{
http=new XMLHttpRequest();
}
else if(window.ActiveXObject)
{
http=new ActiveXObject("Microsoft.XMLHTTP");
}
var id = (parseInt(document.getElementById("Region").value))+1;
//ert(id);
//var url = "countrylist.php?rid="+((document.getElementById("Region").value);
var url = "countrylist.php?rid="+id;
//ert(url);
//mlsaddress=address;
http.open("GET", url , true);

http.onreadystatechange = countryprocess;

http.send(null);

}

function countryprocess()

{

if (http.readyState == 4) {
//alert (http.readyState);

// Split the comma delimited response into an array

if(http.status==200)

{

//alert (http.status);


//alert (http.responseText);

document.getElementById("Country").length=0;

document.getElementById("Country").options[0]=new Option("Select country"," ");

if(http.responseText!="No values")
{

var clist=http.responseText.split("_");
for(i=0;i<clist.length;i++)
{
var myclist=clist[i].split(",");
// alert (myclist);
document.getElementById("Country").options[i+1]=new Option(myclist[1],myclist[0]);
}
}
else
{
document.getElementById("Country").length=0;
document.getElementById("Country").options[0]=new Option("Select country"," ");
}
}


}

}


Thanks
×

Success!

Help @vssp spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.22,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...