![Picture of ffff Picture of ffff](/graphics/unknown.gif)
ffff - 2007-07-18 22:18:59
I tried to use the auto-complete plug-in with a different layout as the one in the built in example. For some reason the box that makes the suggestions while you type was not showing below the input field, but completely in other part of the page. This happened just in firefox and camino browsers.
After many hours of debugging I tried substituting the "getBoxObjectFor" javascript function that the plug-in utilizes to get the coordinates of the input field, for the function "getBoundingClientRect"
This worked perfectly and now it works in IE and in Firefox and camino too.
The changes look like this:
>>>>>>>
'if(document.getBoundingClientRect)'.$b.
'{'.$b.
'b=document.getBoundingClientRect(t);'.$b.
>>>>>>>
(in: form_auto_complete.php)