7 digits number starting with 1, disable automatic link on iPad (phone number)

7 digits number starting with 1, disable automatic link on iPad (phone number)

MelodyNelsonMelodyNelson Posts: 186Questions: 30Answers: 2

Link to test case: https://live.datatables.net/mequvope/1/edit
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem:

I have a table with large amount and a rendering in europeans style in my columns.defs :
DataTable.render.number(' ', null, 0, null, ' €')

But when I see the datatable on iPad, the 7 number digits starting by 1 are considered like a phone number.

Is it another option in rendering I can add to just see the amount without a link to a phone number ?

A test case : https://live.datatables.net/mequvope/1/edit

And what I see on iPad

Thank you

Replies

  • kthorngrenkthorngren Posts: 20,993Questions: 26Answers: 4,887

    Seems like its something specific to Safari. Checkout this Stack Overflow thread. I added <meta name="format-detection" content="telephone=no"> and it seems to work as expected with Safari.
    https://live.datatables.net/mequvope/2/edit

    Kevin

  • MelodyNelsonMelodyNelson Posts: 186Questions: 30Answers: 2

    I can't do that, the users need it for the real phone numbers.
    I will change the data in the HTML, put back the « french spaces » and change the rendering.
    Thanks

  • kthorngrenkthorngren Posts: 20,993Questions: 26Answers: 4,887

    This technote shows how to selectively detect phone numbers if you disable it globally on the page with the above.

    Kevin

  • MelodyNelsonMelodyNelson Posts: 186Questions: 30Answers: 2

    I know, I will ask the users what they want because they can add texts width phone numbers in it. Automatic links or not will be their choice.
    Thanks again for your time.

    PS : how can I close the topic ?

  • allanallan Posts: 62,858Questions: 1Answers: 10,344 Site admin

    PS : how can I close the topic ?

    You don't - they automatically close after a period of time.

    Threads started as a "Question" can be marked as answered or not, but this one was started as a "Discussion" and doesn't have that option.

    Allan

  • MelodyNelsonMelodyNelson Posts: 186Questions: 30Answers: 2

    Thanks Allan

Sign In or Register to comment.