Hey there,
mobrien118 a écrit :
> new Ajax.Autocompleter("DCO_Number", "autosuggest",
> "DCO_Manage_Project.cfc?method=getHTML",
> {afterUpdateElement:getInfo,indicator:'JSMX_loading',frequency:0.1});
First, you might want to be more consistent with this API, and provide
the "method=getHTML" part as the 'parameters' key in the options hash:
new Ajax.Autocompleter('DCO_Number', 'autosuggest',
'DCO_Manage_Project.cfc', {
parameters: method=getHTML',
afterUpdateElement: getInfo,
indicator: 'JSMX_loading',
frequency: 0.1
});
Second, and herein lies your problem:
> div#JSMX_loading{
...
> display:none;
...
> }
Prototype mandates that items to be toggled *never* use display: none in
a stylesheet. It should appear in an inline style attribute for the
element, for reasons related to the behavior of the CSS cascade, in
order to be browser-portable.
Therefore, try to remove this property from your stylesheet, and create
an inline style attribute on the DIV with this single property (yes,
this is a minor infraction to the content/appearance separation
principle). This should work.
'HTH
--
Christophe Porteneuve aka TDD
[EMAIL PROTECTED]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" 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/rubyonrails-spinoffs
-~----------~----~----~----~------~----~------~--~---