Hello ! Can you help me ? I have a data base with in some fields's value who have 3 spaces between words and I received in the browser on a select tag after a query the value's fields with 1 space between words. In the source of the page, it's good (3 spaces) but on the browser it's not good (1 space). And of course, it's a big problem for the next query who used the field's value. Thank's a lot.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 In article <000901bfba62$19d95ca0$151779c1@phase.be>, Vincent Maton <vmaton@belgium.aton.net> writes
Hello ! Can you help me ?
I have a data base with in some fields's value who have 3 spaces between words and I received in the browser on a select tag after a query the value's fields with 1 space between words. In the source of the page, it's good (3 spaces) but on the browser it's not good (1 space). And of course, it's a big problem for the next query who used the field's value.
Thank's a lot.
Try removing the spaces from the database records? - -- Regards, Graham Chiu gchiu<at>compkarori.co.nz http://www.compkarori.com/dynamo - The Homebuilt Dynamo http://www.compkarori.com/dbase - The dBase bulletin -----BEGIN PGP SIGNATURE----- Version: PGPsdk version 1.7.1 iQA/AwUBORqk37TRdIWzaLpMEQJeEQCgmwjLiwWqQEa1AY8Lpb4Vt8iUlXIAoM0K aHzGyks2N/xLpY4n9DtWA0H3 =/HNL -----END PGP SIGNATURE-----
On Wed, 10 May 2000, Vincent Maton wrote:
In the source of the page, it's good (3 spaces) but on the browser it's not good (1 space). And of course, it's a big problem for the next query who used the field's value.
Depending on whitespace like that in a world of browsers where the idea is to separate content and presentation could get you in a lot of trouble. It would probably be better to redesign so that you do not depend on the whitespace, or so that you correct the whitespace on each database update if the correction is deterministic. That said, you might want to experiment to see if you can prove whether or not it is indeed the browser that is eating the whitespace, which is certainly what it sounds like. Perhaps there is an HTML way to preserve the whitespace ( ?). --RDM
participants (3)
-
Graham Chiu -
R. David Murray -
Vincent Maton