Yeah this absolutely is not a bug whatsoever with prototype or
scriptaculous. It's an internet explorer issue by the sounds of
things.

Completely ignore javascript/prototype/scriptaculous for a while. Just
try to get the following static html displaying properly in all
browsers first:

<ul>
<li>SpacesAfter &nbsp;&nbsp;&nbsp; Therewerespacesthere!</li>
</ul>

Once you've done that, it should be a very easy job to link in the
javascript and your server side code just to replicate that html
(obviously with your data from the database instead) on the fly.

I'd advise you try that on a static page, and look for help elsewhere
for doing so. I don't mean to fob you off or tell you to go away, just
it's obvious to me that this is an html issue and not a prototype or
scriptaculous one, so you'll get more useful help elsewhere (try
www.htmlforums.com perhaps).

As an example of the useless help you might encur around here, my best
guess would be that you've got a doctype problem. I can enter non
breaking spaces in my code and it renders in IE6+ fine (if it's not
working in IE 5, my understanding with regards to that is prototype
doesn't fully support that browser anyway). So doctypes are the only
thing I can think of that might be different between your pages and
mine.

Hope this is of some kind of help.

On Sep 9, 12:06 am, "Jack D" <[EMAIL PROTECTED]> wrote:
> Hi,
>      I also observed that the spaces appear properly in Forefox browser
> although while scrolling through the list of names, it does not show the
> spaces. But when you make the selection, the text box shows the actual
> spaces in the text.
>
>      This problem exist only with IE. It always shows 1 space. I tried
> everything with <pre> tag, etc....but none of them seems to work. With pre
> tag, the look n feel gets disturbed.
>
>      I really need to use this library. Can any expert tell me a fix or work
> around??
>
> I really appreciate it....
>
> Thanks in Advance!!
>
> On Mon, Sep 8, 2008 at 3:18 PM, Jack D <[EMAIL PROTECTED]> wrote:
> >  Hi Justine,
> >     Sorry, I hit an enter immidiately before completing my email... I did
> > get the &nbsp; in the result
>
> > as shown below:
> >     <ul><li>company&nbsp;&nbsp;&nbsp;space (ECU)</li></ul>
>
> > However, I couldn't see space anywhere even within a scrollable list....
>
> > Can you tell me where exaclty I need to replace the <li> tags if possible?
> > I'll probably replace them with <lt> or something different. Hopefully, that
> > should resolve the issue.
>
> > Thanks!
>
> > On Mon, Sep 8, 2008 at 2:56 PM, Jack D <[EMAIL PROTECTED]> wrote:
>
> >>  Hi Justin,
> >>     I replaced the space with &nbsp; & printed the response & I can see
> >> the result as shown below:
>
> >>    <ul><li>company                   space (ECU)</li></ul>
>
> >>    Since it is getting converted to space, it still appears as 1 space.
> >> Can you attache the sample & send it to me ([EMAIL PROTECTED])?
>
> >> Thanks!
>
> >>   On Mon, Sep 8, 2008 at 2:48 PM, Justin Perkins <[EMAIL PROTECTED]
> >> > wrote:
>
> >>> On Mon, Sep 8, 2008 at 4:42 PM, Jack D <[EMAIL PROTECTED]> wrote:
> >>> >     When I type the name in the text box, the values get dispalyed from
> >>> > database. However, it doesn't show the space even there while I'm
> >>> looking at
> >>> > the data & scrolling down the results!!
>
> >>> I don't think you are adding the &nbsp; before displaying the results
> >>> because I just did the same and it worked fine.
>
> >>> Make your HTML response look *exactly* like I specified in my previous
> >>> response and I guarantee it will work.
>
> >>> -justin
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to