Hi
i m trying to implement autocompleter using prototype and
scriptaculous.
i have included prototype.js, controls.js, scriptaculous.js and wrote
a sample jsp and called Autocompleter.Local
using the below syntax:
new Autocompleter.Local('autoCompleteTextField','autoCompleteMenu',a,
{ fullSearch: true, partialSearch: true });
i am getting a Stack Overflow at line: 0
and it is pointing to a line in prototype.js at below code:
setStyle: function(element, styles) {
element = $(element);
var elementStyle = element.style, match;
if (Object.isString(styles)) {
element.style.cssText += ';' + styles;
return styles.include('opacity') ?
element.setOpacity(styles.match(/opacity:\s*(\d?\.?\d*)/)
[1]) : element;
}
for (var property in styles)
if (property == 'opacity') element.setOpacity(styles[property]);
else
elementStyle[(property == 'float' || property == 'cssFloat') ?
(Object.isUndefined(elementStyle.styleFloat) ? 'cssFloat' :
'styleFloat') :
property] = styles[property];
return element;
}
Please help me if any one knows the answer or any thoughts to share !!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---