I have the following function:
function createSkillCard(attributeData,name)
{
$.ajax({
type: "POST",
url: "/Skillcard/create",
dataType: 'json',
data: {
request: 'ajax',
name: name,
attributes: attributeData
},
success: function(data)
{
}
})
}
The thing you need to know is that
attributeData
Is an array of 4 items (strings)
name
is a string
However whenever i call this i get
Illegal invocation
error
what am i doing wrong?