Reputation: 10554
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
Reputation: 18922
arguments
is a reserved word in JavaScript. Change it to something else and try again!
Upvotes: 5