.

Loading a web page using json data

sdf

function UpdateOnClick(param123) {
    $.ajax({
        type: 'GET',
        url: "/WhereEver/PageToLoad",
        cache: false,
        data: { myKey: myValue },
        dataType: "json",
        async: true,
        success: function (result) {
            $('#Id1').html(result.ValueX);
            $('#Id2').html(result.ValueY);
        },
        error: function (result) {

        }
    });
}

What's your thoughts on this?

*

Protected by WP Anti Spam