Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Flo on Feb 22, 2008 13:23
open dhtmlx forum
Dhtmxcombo - Autocomplete mode and special characters

Hi,

I've noticed a little problem with autocomplete mode and special characters.
For example, if I type this string "foo&bar" in the text input, the following request is executed :
php/complete.php?pos=0&mask=foo&bar
and consequently, the string used in query will be "foo" instead of "foo&bar".


I've also a second problem. Sometimes, I define a name like "arr[name]" for selects and input elements
to obtain an array with PHP, like this :
$arr = $_POST['arr'];
echo $arr['name1'],'-',$arr['name2'];
I've a problem with new_value param, because the hidden input has a wrong name like "arr[name]_new_value".
So, to fix it, I replace line 1110 with

if(name.charAt(name.length-1) == ']')
z.name = name.substr(0,name.length-1)+"_new_value]";
else
z.name = name+"_new_value";

after that, the name is "arr[name_new_value]".

Regards,

Flo
Answer posted by Support on Feb 25, 2008 09:10
>>I've noticed a little problem with autocomplete mode and special characters.
>>For example, if I type this string "foo&bar"

Problem confirmed and fixed - please use attached js file instead of original one.


Attachments (1)