I have a bunch of Ajax requests that execute just fine, but I end up with a syntax error in my browser.
Can anyone see what's wrong with my request below?
function getName(refId)
{
var resp = '';
new Ajax.Request('/servlet/GetName',
{
method:'post',
parameters: {'requestType':'ref',
'value':refId},
onSuccess:function(transport)
{
setName((String(transport.responseText)).trim());
}
});
}
edit: This also seems to only throw the error the first time it gets called. If I clear the console, I don't continue to get errors.