Hi, how do I make a hoverClass for the InPlaceEditor? The styling does not work on this (although the rest does work). /* JS */ new Ajax.InPlaceEditor(''name<?=$restaurantId[$i]?>'',''ajaxScripts/ editRestaurant.php'',{ submitOnBlur:true, callback:function(form,value){ var request=""; request+="name=" + value + "&restaurantId=" + <?=$restaurantId[$i]?> + "&value=" + value; return request; }, hoverClass:''inplaceeditor-hover'', }); /* css */ .hoverClass{ cursor:pointer; } .inplaceeditor-hover{ cursor:pointer; } --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
....anyone? On May 24, 10:11 am, lskatz <lsk...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, how do I make a hoverClass for theInPlaceEditor? The styling > does not work on this (although the rest does work). > > /* JS */ > new Ajax.InPlaceEditor(''name<?=$restaurantId[$i]?>'',''ajaxScripts/ > editRestaurant.php'',{ > submitOnBlur:true, > callback:function(form,value){ > var request=""; > request+="name=" + value + "&restaurantId=" + <?=$restaurantId[$i]?> > + "&value=" + value; > return request; > }, > hoverClass:''inplaceeditor-hover'', > > }); > > /* css */ > .hoverClass{ > cursor:pointer;} > > .inplaceeditor-hover{ > cursor:pointer; > > }--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
It spells it out right on the documentation page. Don''t be afraid to dig into the source either--that''s where I found it. http://wiki.script.aculo.us/scriptaculous/show/Ajax.InPlaceEditor The classes (and their defaults) are: savingClassName: ''inplaceeditor-saving'', loadingClassName: ''inplaceeditor-loading'', formClassName: ''inplaceeditor-form'', hoverClassName: '''' TAG On May 31, 2007, at 7:10 PM, lskatz wrote:> > ....anyone? > > On May 24, 10:11 am, lskatz <lsk...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> Hi, how do I make a hoverClass for theInPlaceEditor? The styling >> does not work on this (although the rest does work). >> >> /* JS */ >> new Ajax.InPlaceEditor(''name<?=$restaurantId[$i]?>'',''ajaxScripts/ >> editRestaurant.php'',{ >> submitOnBlur:true, >> callback:function(form,value){ >> var request=""; >> request+="name=" + value + "&restaurantId=" + <?= >> $restaurantId[$i]?> >> + "&value=" + value; >> return request; >> }, >> hoverClass:''inplaceeditor-hover'', >> >> }); >> >> /* css */ >> .hoverClass{ >> cursor:pointer;} >> >> .inplaceeditor-hover{ >> cursor:pointer; >> >> } > > > >--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---