" The data neccessary to complete this operation is not yet available."
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   sanjeev_kumar
Posted On:   Wednesday, May 30, 2007 07:35 AM

when i select the country combo box item,i am generating the state combo box items.
at the first time when i change the item in country combo box it is giving the javascript error..
" The data neccessary to complete this operation is not yet available." when i refresh the page and select the country combo box item then the state combox box items are populating. why it is giving such kind of error and how to solve it.Please send me example code.

Re: " The data neccessary to complete this operation is not yet available."

Posted By:   Anonymous  
Posted On:   Wednesday, July 4, 2007 05:05 AM

if u dont get sol yet plz try this..

when u populate the combo
may be u write alert or something
after xmlHttp.send(params);
and before checking ready state
first check the state of ur xmlhttp and then write whatever u want to write
u can check ready state with

xmlHttp.onreadystatechange=stateChanged;



where stateChanged is function..


function stateChanged()
{
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{
document.getElementById("alertdiv").innerHTML=xmlHttp.responseText
//here is ur operation
xmlHttp=null
}
}
i hope this will work
nisha

Re: " The data neccessary to complete this operation is not yet available."

Posted By:   Michael_Lowden  
Posted On:   Monday, June 18, 2007 04:50 AM

any chance you are "using" something before it's been "declared" ??? this can cause weird things to happen on slower machines before data/files have been cached the first time.
About | Sitemap | Contact