Active
Project:
Autocomplete Element
Version:
6.x-1.2
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
11 Nov 2010 at 03:57 UTC
Updated:
11 Nov 2010 at 04:09 UTC
Simple question, hoping there is a simple answer
I have the module set up, but I want to reference a different website altogether as the source for the autocomplete. What is currently happening is the api is prepending a leading '/' before the url forcing it to not work. Is there a way around this without hacking into a module?
Form Creation:
$form['test']['example'] = array(
'#type' => 'autocomplete',
'#data' => 'http://xyz.com/lookup.php',
'#title' => t('Name'),
'#size' => 30,
'#maxlength' => 50,
'#required' => TRUE,
);
Results in this output:
$("#edit-prescription-medication").autocomplete("/http://xyz.com/lookup.php", { "minChars": 0 });
Comments
Comment #1
pinchg commentedThis was addressed in a bug case and reported that the current dev version addresses this. Sorry
Comment #2
pinchg commentedOk, so after testing the dev version, this is not fixed. Same behavior as original post.