Saturnix
Saturnix

Reputation: 10554

Passing AJAX arguments to JQuery

function myFunction(action, arguments){

$.get(action, arguments)

}

myFunction("link/to/mypage", { "idCustomer": "123", "junk": $.now })

Expected connection:

link/to/mypage?idCustomer=123&junk=random

Actual result:

link/to/mypage

Why is this? How can I solve it? Thanks!

Upvotes: 1

Views: 79

Answers (1)

Eric
Eric

Reputation: 18922

arguments is a reserved word in JavaScript. Change it to something else and try again!

Upvotes: 5

Related Questions