Details
Description
In mvc-mediacast when a media message is uploaded and ajax push updates are sent to other users, the carousel is updated refreshing the images with the latest image. When the carousel is updated in this way the following error can be seen:
Uncaught ReferenceError: iScroll is not defined icemobile.js:248
enhance icemobile.js:248
Carousel icemobile.js:262
ice.mobi.carousel.loaded icemobile.js:375
(anonymous function)
ajax content updated after ajax push:
<div>
<form id="carouselForm" action="/mvc-mediacast/carousel?l=t&group=photos" method="POST"><div style="border-top: 1px solid #999999;">
<span id="recentMessagesCarousel_libIScr" ><script text="text/javascript" src="/mvc-mediacast/icemobile-resources/javascript/iscroll.js" ></script></span><div id="recentMessagesCarousel" name="recentMessagesCarousel" ><div id="recentMessagesCarousel_carousel" class="mobi-carousel" style="border-top: 1px solid #999999;" ><div id="recentMessagesCarousel_scroller" class="mobi-carousel-scroller" ><ul id="recentMessagesCarousel_lister" class="mobi-carousel-list" ><li><div><a data-id='573uhp2db7f85' href='/mvc-mediacast/app?p=viewer&l=t&id=573uhp2db7f85' title='A'><img height='75' width='75' src='resources/uploads/573uhp2db7f85-small.png' style='border:none;'/></a></div></li></ul></div></div><div id="recentMessagesCarousel_dots" ><div class="mobi-carousel-cursor " style="border-top: 1px solid #999999;" ><div class="mobi-carousel-cursor-center" ><ul id="recentMessagesCarousel_ullist" class="mobi-carousel-cursor-list " ><li>1</li></ul></div></div></div><div id="recentMessagesCarousel_upd" name="recentMessagesCarousel_upd" ><input id="recentMessagesCarousel_hidden" type="hidden" value="0" /><span id="recentMessagesCarousel_script" ><script text="text/javascript" >setTimeout(function () {ice.mobi.carousel.loaded('recentMessagesCarousel',{key: 0});}, 1);</script></span></div></div></div>
</form><script type="text/javascript">
$('#recentMessagesCarousel').find("a").each(function(){
$(this).click(function(){
updateViewerPanel(this.getAttribute("data-id"));
});
$(this).attr("href","#");
});
</script>
</div>
Uncaught ReferenceError: iScroll is not defined icemobile.js:248
enhance icemobile.js:248
Carousel icemobile.js:262
ice.mobi.carousel.loaded icemobile.js:375
(anonymous function)
ajax content updated after ajax push:
<div>
<form id="carouselForm" action="/mvc-mediacast/carousel?l=t&group=photos" method="POST"><div style="border-top: 1px solid #999999;">
<span id="recentMessagesCarousel_libIScr" ><script text="text/javascript" src="/mvc-mediacast/icemobile-resources/javascript/iscroll.js" ></script></span><div id="recentMessagesCarousel" name="recentMessagesCarousel" ><div id="recentMessagesCarousel_carousel" class="mobi-carousel" style="border-top: 1px solid #999999;" ><div id="recentMessagesCarousel_scroller" class="mobi-carousel-scroller" ><ul id="recentMessagesCarousel_lister" class="mobi-carousel-list" ><li><div><a data-id='573uhp2db7f85' href='/mvc-mediacast/app?p=viewer&l=t&id=573uhp2db7f85' title='A'><img height='75' width='75' src='resources/uploads/573uhp2db7f85-small.png' style='border:none;'/></a></div></li></ul></div></div><div id="recentMessagesCarousel_dots" ><div class="mobi-carousel-cursor " style="border-top: 1px solid #999999;" ><div class="mobi-carousel-cursor-center" ><ul id="recentMessagesCarousel_ullist" class="mobi-carousel-cursor-list " ><li>1</li></ul></div></div></div><div id="recentMessagesCarousel_upd" name="recentMessagesCarousel_upd" ><input id="recentMessagesCarousel_hidden" type="hidden" value="0" /><span id="recentMessagesCarousel_script" ><script text="text/javascript" >setTimeout(function () {ice.mobi.carousel.loaded('recentMessagesCarousel',{key: 0});}, 1);</script></span></div></div></div>
</form><script type="text/javascript">
$('#recentMessagesCarousel').find("a").each(function(){
$(this).click(function(){
updateViewerPanel(this.getAttribute("data-id"));
});
$(this).attr("href","#");
});
</script>
</div>
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
rev 34629