jQWidgets Forums

jQuery UI Widgets Forums Grid Json data

Tagged: 

This topic contains 2 replies, has 2 voices, and was last updated by  Peter Sloth 11 years, 10 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Json data Posts
  • Json data #21417

    Peter Sloth
    Participant

    Hi

    in my web application the data if fetched from a database and the server uses the data to create a Json array to populate the grid.
    The data can potentially contain raw html markup, ie. characters like “, /, , ‘, \, etc.
    In this case the I end up with a script error and the grid is not populated.
    Is there an easy way to escape/encode the data for the Json array so that I can avoid any script errors?

    thanks

    //Peter

    Json data #21538

    support
    Participant

    Hi Peter Sloth,

    In Json, you can escape special characters using backslash.

    Best Wishes,
    Mariya

    jQWidgets Team
    http://www.jqwidgets.com

    Json data #21927

    Peter Sloth
    Participant

    Hi Mariya

    you are absolutely right!

    thanks a lot

    Bests
    Peter

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.