Maybe you should try this: $('feedbackName')|.writeAttribute("style", null)|
It will remove style attribute from element. Marko Alex McAuley wrote: > setStyle() requires parameters > > > Alex Mcauley > http://www.thevacancymarket.com > ----- Original Message ----- > From: "JoJo" <tokyot...@gmail.com> > To: "Prototype & script.aculo.us" <prototype-scriptaculous@googlegroups.com> > Sent: Saturday, September 12, 2009 12:40 AM > Subject: [Proto-Scripty] Highlighting text box makes it look like Windows 95 > > > >> I'm highlighting an input textbox if the user forgot to fill out the >> form. After the box get highlighted, it looks like retro Windows 95 >> with thick borders and boxy edges. So I attempt to remove the styling >> with an afterFinish callback, but for some reason, that is never >> called. Why? >> >> if ($F('feedbackName').blank()) { >> new Effect.Highlight( >> 'feedbackName', { >> afterFinish: function() { >> $('feedbackName').setStyle(); >> } >> } >> ); >> allFieldsFilledOut = false; >> } >> >> >> > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---