Reputation: 31
I have some javascript that posts back to some vb code. I've checked to make sure that the three parameters (id, statusID, and hrNote) are all receiving values. The function works perfectly in Chrome and Firefox but won't execute in Safari.
function updateStatus(id, statusID, hrNote) {
try{
$.post("/EPR_PerformanceReview/UpdateStatus",
{ PerformanceReviewID: id, StatusID: statusID, HRNote: hrNote },
function (data) {
if (data.ok) {
alert(data.msg);
} else {
alert(data.msg);
}
});
}
catch (err) {
alert(err.message);
}
}
Does anyone have any idea why this javascript code isn't executing in Safari? I'm totally stumped. My try catch block isn't alerting me of any errors either.
Upvotes: 2
Views: 781
Reputation: 46
Just tried in Safari 8.0.3: the script worked for me. Can you run the debugger, to find out if the function is running.
If you don't know how to do it: cmd+alt+a, then click on the "debugger". You can click on line numbers to add the stop flag. Than run the script again.
Upvotes: 1