itsme213-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org
2008-Jan-17 01:07 UTC
InPlace Editor with initial empty string
If I start with an initially empty string I don''t get any place to click & activate the editor. I would think that empty string is a common default. Alternately, the user may sometimes erase all the text in the field. After that there is no way to activate the editor and enter text into that same field. Any suggestions? Am I doing something wrong? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On Jan 16, 2008 7:07 PM, itsme213-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org <itsme213-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote:> > If I start with an initially empty string I don''t get any place to > click & activate the editor. I would think that empty string is a > common default.I''ve typically used a default string as the value (for example, "not set") and then if that value is detected (or empty string) when the form is posted, then I just return the default string. There''s not really much that IPE can do in this case as most of the implementation for these cases relies on page load values and server behavior. -justin --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
I use the externalControl option for cases like this. Doesn''t matter if the value is blank or not, I always have something to click on. On 1/16/08, Justin Perkins <justinperkins-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > On Jan 16, 2008 7:07 PM, itsme213-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org <itsme213-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote: > > > > If I start with an initially empty string I don''t get any place to > > click & activate the editor. I would think that empty string is a > > common default. > > I''ve typically used a default string as the value (for example, "not > set") and then if that value is detected (or empty string) when the > form is posted, then I just return the default string. > > There''s not really much that IPE can do in this case as most of the > implementation for these cases relies on page load values and server > behavior. > > -justin > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
> There''s not really much that IPE can do in this case as most of the > implementation for these cases relies on page load values and server > behavior.Hmmm. I don''t like the idea of some distinguished value like "not set" because the user will never be able to enter that string, and I don''t want my business objects to be know about it. Not too keen on the clutter of an external control either, but maybe I can use it only in the case of empty strings. Hmmm. Hate it when simple things make me think hard. ... --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
From: "Itsme" <itsme213-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org>> Hmmm. Hate it when simple things make me think hard. ...Hate it even more when I make simple things hard all on my own ... your suggestion of "not set" works well, thanks Justin! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---