3 extra space chars

3 extra space chars

jabberjabber Posts: 23Questions: 1Answers: 0
edited April 2012 in General
See here:
http://www.quadratica.it/datatables/my-proofs/index.php

Can someone tell me why i find 3 extra space chars (ascii decimal 32) after table cell update, please?
After update (using firebug) i inspect updated cell and i find 3 extra space chars at the beginning of cell text.

However space chars are present only in browser table (client side), in fact after refreshing data (F5), those odious space chars disappear and i have realized that they are not added to database.
It's already a good thing but i also don't want them in client table after my update, in a professional application it's horrible!

Thank you,
J

Replies

  • allanallan Posts: 63,810Questions: 1Answers: 10,516 Site admin
    If you have a look at what is being returned from the server, its the value, prefixed by 3 newline characters - which is where the issue is coming from (i.e. your server-side script is returning the extra characters and the editing interface is putting that value into the cell).

    Allan
  • jabberjabber Posts: 23Questions: 1Answers: 0
    edited April 2012
    Thank you allan,

    i post now my experience because i would also help some other people.

    i found 3 newline in a minor file of my personal micro-framework.
    In order to correct this error, i would never went there without your suggestion.


    If whilst i was testing my server side script i was using 'header("Content-Type: text/plain charset=utf-8");' , i was be able to realize that the error was on the server.

    Is it the right way?

    Thank you for your help,
    J
This discussion has been closed.