Duncan said:
Perhaps, but not obviously.
No, Lee said "Try the following in IE6. It works for me in IE7 and
Firefox" and posted a minimal example. I assumed that your response
was referring to the reduced example not the original page.
Lee's question was before his code. It was directly following the quote of
my post. Thus the question referred to my original post.
However, I have now discovered what the problem actually was.
The offending code was a line in an event script for the Facile Forms
component of Mambo/Joomla. It worked fine on my machine but failed when I
sent it off to someone else and they put it on their site.
Unfortunately their site is on an intranet and so the only way I could view
it was via a VPN and then with Microsoft Remote Desktop Connection. The
browser on their server was IE6 and so I assumed that the problem was with
IE6.
However (again), Facile Forms has an option for compressing JavaScript and
HTML and this was set on their site, but not on mine.
The facile forms compress function doesn't handle regular expressions in the
scripts very well and it was stripping out the space and thus leaving the
line as:
element.value = element.value.replace(//g,'');
Thanks for all the support and ideas folks. If it hadn't been for your
assurances, I would never had bothered to look as deeply as I did.