[Proto-Scripty] Re: Element.insert() for white-space

2009-04-13 Thread FigglesKoy

Yes, that was the work around I mentioned at the bottom of my post ;)
Thanks though.

On Apr 11, 3:24 am, Rippo  wrote:
> mistype
>
> nsert(' ')
>
> On Apr 11, 8:23 am, Rippo  wrote:
>
> > Have you tried insert(' ) instead of a [space]?
> > Thanks
> > Rippo
>
> > On Apr 11, 3:22 am, FigglesKoy  wrote:
>
> > > I noticed today that in using Elment.insert() in IE7, that if you just
> > > send spaces, they won't show up.  So for example:
>
> > > 
> > > 
> > > $('testid').insert('hi').insert('   ').insert('there');
> > > 
>
> > > Will give in IE7:
> > > hithere
>
> > > In FF3:
> > > hi there
>
> > > So, FF3 will insert a single space (for 1 or more actual spaces) and
> > > IE7 will do none.  I'm not sure how big of a deal this is really which
> > > is why I'm posting here rather than the core group or the Lighthouse
> > > ticket listing.  I suppose spacing like this might be frowned upon in
> > > favor of CSS padding/margins but I thought I would mention anyways as
> > > CSS might not work depending on what the developer is trying to do.
> > > Note I got around it for now by using .insert('   )
--~--~-~--~~~---~--~~
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: Element.insert() for white-space

2009-04-11 Thread Rippo

mistype

nsert(' ')

On Apr 11, 8:23 am, Rippo  wrote:
> Have you tried insert(' ) instead of a [space]?
> Thanks
> Rippo
>
> On Apr 11, 3:22 am, FigglesKoy  wrote:
>
> > I noticed today that in using Elment.insert() in IE7, that if you just
> > send spaces, they won't show up.  So for example:
>
> > 
> > 
> > $('testid').insert('hi').insert('   ').insert('there');
> > 
>
> > Will give in IE7:
> > hithere
>
> > In FF3:
> > hi there
>
> > So, FF3 will insert a single space (for 1 or more actual spaces) and
> > IE7 will do none.  I'm not sure how big of a deal this is really which
> > is why I'm posting here rather than the core group or the Lighthouse
> > ticket listing.  I suppose spacing like this might be frowned upon in
> > favor of CSS padding/margins but I thought I would mention anyways as
> > CSS might not work depending on what the developer is trying to do.
> > Note I got around it for now by using .insert('   )
--~--~-~--~~~---~--~~
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: Element.insert() for white-space

2009-04-11 Thread Rippo

Have you tried insert(' ) instead of a [space]?
Thanks
Rippo

On Apr 11, 3:22 am, FigglesKoy  wrote:
> I noticed today that in using Elment.insert() in IE7, that if you just
> send spaces, they won't show up.  So for example:
>
> 
> 
> $('testid').insert('hi').insert('   ').insert('there');
> 
>
> Will give in IE7:
> hithere
>
> In FF3:
> hi there
>
> So, FF3 will insert a single space (for 1 or more actual spaces) and
> IE7 will do none.  I'm not sure how big of a deal this is really which
> is why I'm posting here rather than the core group or the Lighthouse
> ticket listing.  I suppose spacing like this might be frowned upon in
> favor of CSS padding/margins but I thought I would mention anyways as
> CSS might not work depending on what the developer is trying to do.
> Note I got around it for now by using .insert('   )
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---