Initially, when I trying to load a searchresult.jsp in my ios9.3.x device it threw me a below error due to ractive: webpage not loading only in ios9 safari browser
I have fixed that issue by partition and preparsing in all the ios9 version except 9.3.5. This issue exist in this ios9.3.5 alone whereas in other version it is working fine.
My code explanation below:
Here I am trying to append a searchResult.jsp (id=searchResultID) file in my index.jsp file using the below code:
<Start-code of index.jsp>
.
.
<div class="allDetailsSection"></div>
<jsp:include page="/pages/searchResults/searchResult.jsp">
</jsp:include>
.
.
<end-code of index.jsp>
We have a js with a method setDetails() containing the below code to display the parsed template:
var temp = $("#searchResultID").text();
var displaysection = Ractive.parse(temp);//creating a preparsed template.
ractive = ractiveInitialize(".allDetailsSection", displaysection);
and alternatively we also used the below method to parse:
var ractive = new Ractive({
el: ".allDetailsSection",
template:displaysection,
});
But still i am getting the same error in ios9.3.5 alone. Can anyone please help me to fix the issue. When I try to reproduce this issue in ios9.3.5's Chrome, the browser crashes and disappers.
kindly help me to resolve this issue.