hi i m calling ajax function with htaccess url rewriting.But i m not able to fetch value from server.My code is following..
function lookup(val1,val2) {
//some code here ////
if (xmlhttp.readyState==4){
alert(xmlhttp.responseText); // but i m not getting values
}
var str=inputString+'/'+cityid;
xmlhttp.open("GET","http://www.mydomain.in/f/fetchname/"+str,true);
xmlhttp.send();
}
//// htaccess code //
RewriteRule ^f/fetchname/(.*)/(.*)$ fetchname.php?fetchkey=$1&cityidval=$2 [NC]
When i m executing directly from url this is printing value.So there is no error in php page.
Is there any different way to fetch value in htaccess in ajax ?