[support] Strange AJAX error
Vaibhav Jain
in.vaibhavjain at gmail.com
Thu Dec 13 03:45:18 UTC 2012
You can check once on the permissions provided in hook_menu.
On Thu, Dec 13, 2012 at 8:02 AM, Austin Einter <austin.einter at gmail.com>wrote:
> Dear All
> 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.
>
> *$matches = array();
> if ($string)
> {
> $result = db_select('resubmt_skill_ids')
> ->fields('skill_ids', array('name', 'id'))
> ->condition('name', db_like($string) . '%', 'LIKE')
> ->range(0, 10)
> ->execute();
> foreach ($result as $skill)
> {
> $matches[$skill->name] = check_plain($skill->name);
> }
> }
> drupal_json_output($matches);
> *
> Lets say one user wanted to type *.net*, as soon as user types *.n* I get
> below error.
>
> *
> An AJAX HTTP error occurred.
> HTTP Result Code: 403
> Debugging information follows.
> Path: http://localhost/example.com/util/known/skillsets
> StatusText: Forbidden
> ResponseText:
> 403 Forbidden
> Forbidden
> You don't have permission to access /util/known/skillsets/.n
> on this server.
> Apache/2.2.14 (Ubuntu) Server at localhost Port 80
> *
>
> Can somebody help me why this error comes and how can I avoid it.
>
> Thanks
> Austin
>
>
>
>
>
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>
--
Regards,
Vaibhav Jain
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20121213/d8af3107/attachment.html
More information about the support
mailing list