Results 1 to 2 of 2

Thread: Virtual pagination losing pagebox placement control in IE

  1. #1
    Join Date
    Feb 2006
    Posts
    236
    Thanks
    8
    Thanked 3 Times in 3 Posts

    Default Virtual pagination losing pagebox placement control in IE

    1) Script Title: Virtual Pagination

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...pagination.htm

    3) Describe problem: Using Flatview, and it generates the page numbers in the little boxes just fine, but in IE, when there are more than 3 pages, the next box(s) shift to a line below the rest. I haven't found anything in the style sheets that will change how the containing div behaves. Of course, it works perfectly in FF.

    Now, if I try to insert the alternate array for textbox links, it won't work in either browser, and I can't find any reason for that, but I can live without it for a while, but sure would be good to fix this at the same time. And yes, it works on your demo page. The only thing unusual is that I have an onload function that starts the lightbox, virtual page, and hvmenu:
    Code:
    <script language="JavaScript1.2">
    function _begin() {
    	var pagecontent=new virtualpaginate("virtualpage", 1)
    	pagecontent.buildpagination("paginatediv")
    	if ( typeof window.addEventListener != "undefined" )
    	    window.addEventListener( "load", initLightbox, false );
    	else if ( typeof window.attachEvent != "undefined" )
    	    window.attachEvent( "onload", initLightbox );
    	else {
    	    if ( window.onload != null ) {
    	        var oldOnload = window.onload;
    	        window.onload = function ( e ) {
    	            oldOnload( e );
    	            initLightbox();
    		    };
    	    }
        else
            window.onload = initLightbox;
    	}
    	Go()
    	}
    </script>
    (Many thanks to J. Schurer for this in a previous post.)

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Assuming you've kept the same CSS class names used by default by the script, the DIV that houses the pagination links is affected by this CSS definition:

    Code:
    .paginationstyle{ /*Style for demo pagination divs*/
    width: 250px;
    text-align: center;
    padding: 2px 0;
    margin: 10px 0;
    }
    Generally what you described is due to the pagination DIV being too small to display all the pagination links on one line. Change the code in red above to something wider, such as 400px.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •