I'm using ajax to render a MVC partial view.
This code works in all browsers except IE:
// Load the Product Selection Area of the survey
$.ajax({
type: 'POST',
url: '/Evaluation/_SurveyQuestions/',
data: {
productTypeId: productTypeId,
productIdsList: productIdsList,
languageId: languageId,
isLastPage: isLastPage
}
}).done(function(html) {
$('#surveyQuestionsArea').empty().html(html);
}).error(function() {
toastr.error("Error Loading Questions");
});
The Div #surveyQuestionsArea gets filled with the all of the HTML but the javascript on the page won't execute in IE. It works on all other browsers.
I get an Error:
SCRIPT1003: Expected ':'
jquery-2.2.4.min.js (2,2640)
The only questions marks in my HTML are at the end of sentences in text. I've removed them and the problem remains.
UPDATED: The following script is at the bottom on my partial view and nether break point get executed:
<script type="text/javascript">
debugger;
$(document).ready(function() {
debugger;
});
</script>
if I add this script to the top of my partial view. This break point does get executed:
<script type="text/javascript">
debugger;
</script>
Any suggestions would be greatly appreciated.
#surveyQuestionsAreacontains javascript and that will not fire?