different answer between browsers (firefox - chrome), Join tables - self referencing join

different answer between browsers (firefox - chrome), Join tables - self referencing join

trebmaltrebmal Posts: 17Questions: 4Answers: 0

Hello,
The option defaultContent: "", doesn't work in chome, always show the first data, when shouln't show nothing. Only a whitespace
Is not a problem with my code, because the web exemple is doing the same error.
http://editor.datatables.net/examples/advanced/joinSelf.html
Moltes gracies

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin

    I'm afraid I don't see the bug in the example you linked to. How can I recreate the error?

    Allan

  • trebmaltrebmal Posts: 17Questions: 4Answers: 0

    Exemple with Firefox:

    https://dl.dropboxusercontent.com/u/25667201/datatables/Captura1.PNG

    Exemple with Chrome:

    https://dl.dropboxusercontent.com/u/25667201/datatables/Captura2.PNG

    In the second one, autoselect by default a manager name,

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin

    This is in relation to the select list? The columns.defaultContent property has no effect on that. That is entirely up to the browser. You can use fields.def to set a default value for the field if you like, but it looks like the two browsers do different things when there is no default.

    Allan

  • trebmaltrebmal Posts: 17Questions: 4Answers: 0

    I tested with, fields.def -> option, but this option doesn't work if the code have a select list joined.

    In chrome always show que first register of the joined table.

    The solution maybe is create a register empty and select this one.

    Lambert

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Answer ✓

    Yes, if you want to always have an empty options available, then you'd need to insert that into the options list. You'd also need a validator to ensure that the end user doesn't submit that value.

    Allan

  • trebmaltrebmal Posts: 17Questions: 4Answers: 0

    thanks for the clarification

    Lambert

This discussion has been closed.