That probably means that where you have something like this:
Code:
<script type="text/javascript">
var gallery=new virtualpaginate({
piececlass: "virtualpage", //class of container for each piece of content
piececontainer: 'div', //container element type (ie: "div", "p" etc)
pieces_per_page: 1, //Pieces of content to show per page (1=1 piece, 2=2 pieces etc)
defaultpage: 0, //Default page selected (0=1st page, 1=2nd page etc). Persistence if enabled overrides this setting.
wraparound: false,
persist: false //Remember last viewed page and recall it when user returns within a browser session?
})
gallery.buildpagination(["gallerypaginate", "gallerypaginate2"])
</script>
there is no element on the page with an id of gallerypaginate2. If that's the problem, you could just change it to:
Code:
gallery.buildpagination(["gallerypaginate"])
Or you could add an error correcting routine to the script. Find the buildpagination function in the script and replace it with this one:
Code:
// -------------------------------------------------------------------
// PUBLIC: buildpagination()- Create pagination interface by calling one or more of the paginate_build_() functions
// -------------------------------------------------------------------
virtualpaginate.prototype.buildpagination=function(divids, optnavtext){
var divids=(typeof divids=="string")? [divids] : divids //force divids to be an array of ids
var primarypaginatediv=divids.shift() //get first id within divids[]
var paginaterawHTML=document.getElementById(primarypaginatediv).innerHTML
this.paginate_build(primarypaginatediv, 0, optnavtext)
for (var i=0; i<divids.length; i++){
if(document.getElementById(divids[i])){
document.getElementById(divids[i]).innerHTML=paginaterawHTML
this.paginate_build(divids[i], i+1, optnavtext)
}
}
}
BTW, this is probably an error in all browsers, but in IE - until IE 9, virtually all errors are reported by default. With IE 9 and virtually all other browser, errors can only be seen in an error console, which by default is not on.
Since this apparently is a non-fatal error, the script still works.
Bookmarks