Dear All<br>I have an auto complete text field , where user types and if corresponding entry is present in database, I show it to user using below code.<br><br><i><b>$matches = array();
<br> if ($string)
<br> {
<br> $result = db_select('resubmt_skill_ids')
<br> ->fields('skill_ids', array('name', 'id'))
<br> ->condition('name', db_like($string) . '%', 'LIKE')
<br> ->range(0, 10)
<br> ->execute();
<br> foreach ($result as $skill)
<br> {
<br> $matches[$skill->name] = check_plain($skill->name);
<br> }
<br> }
<br> drupal_json_output($matches);<br></b></i><br>Lets say one user wanted to type <i><b>.net</b></i>, as soon as user types <i><b>.n</b></i> I get below error.<br><br><i><b><br>An AJAX HTTP error occurred.<br>HTTP Result Code: 403<br>
Debugging information follows.<br>Path: <a href="http://localhost/example.com/util/known/skillsets">http://localhost/example.com/util/known/skillsets</a><br>StatusText: Forbidden<br>ResponseText: <br>403 Forbidden<br>Forbidden<br>
You don't have permission to access /util/known/skillsets/.n<br>on this server.<br>Apache/2.2.14 (Ubuntu) Server at localhost Port 80<br></b></i><br><br>Can somebody help me why this error comes and how can I avoid it.<br>
<br>Thanks<br>Austin<br><br><br><br><br>