Index2.php - Where does it exist? - Joomla! Forum - community, help and support


hi all,

i need use ajax load details in page. after doing google found out need use index2.php in order pass on values controller. snapshot of code snippet below
if (window.xmlhttprequest)
{ // code ie7+, firefox, chrome, opera, safari
xmlhttp=new xmlhttprequest();
}
else
{ // code ie6, ie5
xmlhttp=new activexobject("microsoft.xmlhttp");
}
//displayloading(document.getelementbyid("city_loading"));
// show_progressbar("city_loading");
xmlhttp.onreadystatechange=function()
{ //alert("check point 4");
if (xmlhttp.readystate==4 || xmlhttp.readystate=="complete")
{
//alert("check point 5");
if(xmlhttp.status == 200)
{
//alert("check point 6");
// document.getelementbyid("city_loading").style.display = "none";
//replace_html('city', xmlhttp.responsetext);
document.getelementbyid("citylist").innerhtml=xmlhttp.responsetext;
}
else
{
alert("error reading data");
}
}
}
xmlhttp.open("get","index2.php?task=listcities&state_name="+statevalue, true);
xmlhttp.send();

my query can find index2.php? should need create it?

regards,
frank

i don;t believe want use index2.php, core file. use template's index.php file.





Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support