[Proto-Scripty] Re: Highlighting text box makes it look like Windows 95

2009-09-15 Thread Marko

Well, I've just try it and can confirm that behaviour. I would suggest 
these options:

   1. Change effect to pulsate (I've tested it in FF) or some other
   2. Create overlay div and apply effect highlight to it
   3. Change the look of buttons (bg color, border) when you apply
  highlight effect it will not break

Marko

JoJo wrote:
 I tried your writeAttribute method.  In Firebug's HTML tab, I
 witnessed the style attribute being removed, but visually, I did not
 SEE it being removed.  The input box only went back to normal after I
 rolled over it with my mouse.

 On Sep 12, 6:08 am, Marko gm.ma...@gmail.com wrote:
   
 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
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: Highlighting text box makes it look like Windows 95

2009-09-12 Thread Marko

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
-~--~~~~--~~--~--~---