I know i am proberly being dumb or something but for the life in me i cannot get this function to work in IE7+, works in every other non IE browser:
/inbox/get_auth_replies (JSON Returned):
{"default_message":"Thank you, we have already recieved your request. A member of the team will contact you shortly.","repeated_message":"Thank you for contacting us. A member of the team will contact you shortly."}
jQuery:
var $keyword_id = 123;
$.post('/inbox/get_auto_replies', {keyword_id: $keyword_id}, function(resp) {
console.log(resp.default_message);
$('#inbox_default_message').val(resp.default_message);
$('#inbox_repeat_message').val(resp.repeated_message);
}, 'json');
in IE reports:
SCRIPT5007: Unable to get value of the property 'default_message': object is null or undefined.
I can see it is returning the data but just cannot see/parse it?
I have looked at everything on SO and nothing seems to help.
Any help would be appreciated.
Thanks.
console.log(resp)? is it valid json? what content type is your script responding with?