I am trying to customize teaser.jsp which can read multiple campaign path from page property instead of single campaign path. can someone help me out in this
JSONObject teaserInfo = targetedContentManager.getTeaserInfo(resourceResolver, campaignPath, location);
here am passing different campaignPath by looping length of campagin path which i get from page property.
am able to pass the value of "allTeasers" to initializeTeaserLoader
initializeTeaserLoader(<%=allTeasers%>, "<%=strategy%>", "<%=targetDivId%>", "<%=(WCMMode.fromRequest(request) == WCMMode.EDIT)%>", "<%=trackingURLStr%>", "<%=resource.getPath()%>");
but wen am loding a page with teaser and teaser's component is loading but with embeded style "display:none"
in web -page console am getting following error:
- Uncaught SyntaxError: Unexpected end of input jquery.js:564
(anonymous function)jquery.js:564 jQuery.extend.globalEvaljquery.js:565 (anonymous function)jquery.js:5868 jQuery.extend.eachjquery.js:611 jQuery.fn.extend.domManipjquery.js:5853 jQuery.fn.extend.appendjquery.js:5626 (anonymous function)kernel.js:465 _g.$.ajax.completeshared.js:180 callback