1) Script Title: Continuous Reel Slideshow
2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...lslideshow.htm
3) Describe problem: When I add the slideshow to a page that has an Ajax livesearch - that functionality stops when reelslideshow.js is included. I cannot determine why this is happening.
The javascript for the livesearch is sourced in the last line before </body>
Code:function findValue(li) { if( li == null ) return alert("No match!"); // if coming from an AJAX call, let's use the CityId as the value if( !!li.extra ) var sValue = li.extra[0]; // otherwise, let's just display the value in the text box else var sValue = li.selectValue; //alert("The value you selected was: " + sValue); } function selectItem(li) { findValue(li); } function formatItem(row) { return row[0]; } function getBusinessId() { return 'top-business'; } $("#zip").autocomplete("page2.php", { delay:5, minChars:1, matchSubset:1, matchContains:1, cacheLength:10, onItemSelect:selectItem, onFindValue:findValue, formatItem:formatItem, extraParams:{b:getBusinessId()}, maxItemsToShow: 12, //autoFill:true } ); $("#business").autocomplete("page1.php", { delay:5, minChars:1, matchSubset:1, matchContains:1, cacheLength:10, onItemSelect:selectItem, onFindValue:findValue, formatItem:formatItem, maxItemsToShow: 12, //autoFill:true } );



Reply With Quote


Bookmarks