user1452376
user1452376

Reputation: 129

how to add extra variable in this getjson request?

I want to add an extra variable like new_var=2 in this get json request.after multiple efforts.I am unable to do it.Please Help

 jQuery.getJSON(serverFQDN + '/widget_submit.php?callback=?', {
        install_url: window.location.href
    }, serverResponse);

Upvotes: 0

Views: 63

Answers (1)

kemenov
kemenov

Reputation: 407

Why you can't to add extra parameter in the sending data object?

 jQuery.getJSON(serverFQDN + '/widget_submit.php?callback=?', {
    install_url: window.location.href,
    new_var:2
}, serverResponse);

Upvotes: 1

Related Questions