Results 1 to 7 of 7

Thread: Contents of glidecontent div in Featured Content Glider overlapping in print view

  1. #1
    Join Date
    Nov 2012
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Contents of glidecontent div in Featured Content Glider overlapping in print view

    1) Script Title: Featured Content Glider

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

    3) Describe problem: I am using your script on this page: http://www.berezanmanagement.net/calgaryNE.htm

    The problem I have encountered is that when someone tries to print information about any property other than the topmost one (while using Internet Explorer) the information about ALL properties overlaps so that nothing can be read - you can see what I mean in print preview with IE. This issue does not occur with any other browser. Is there some code I can add perhaps to the css so that only the information visible in the selected glidecontent div is printed and the rest hidden from print view?

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,978
    Thanks
    43
    Thanked 3,195 Times in 3,157 Posts
    Blog Entries
    12

    Default

    You could have that problem in any browser if the user sets their browser to not print the background images and colors*. I believe that's the default in IE, others perhaps not, or you might have changed it. I almost never print in IE. I do in others and often need the background in order to get it to print right.

    Anyways, without background, there's nothing to prevent previously glided in content from bleeding through because it's now behind the one you see in the browser.

    I've modified the featuredcontentglider.js script you are currently using (in case it already had any custom modifications) so that previously glided in content is moved out of position after the current content is glided in. That seems to take care of it (right click and 'Save As'):

    featuredcontentglider.js

    Use that version.

    The browser cache may need to be cleared and/or the page refreshed to see changes.


    *Some browsers, even when not printing the background, will use it in layout. Chrome and Firefox do that so there would be no problem in them. Opera does not, so would be like IE.
    Last edited by jscheuer1; 03-27-2013 at 04:33 PM. Reason: add * info
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Nov 2012
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks, John. That cleared up the overlap issue from the first page but IE creates a second page that still has all the divs overlapping each other. I myself hardly ever print webpages but obviously visitors to this website do and although all pertinent information is usually on the first page, the second page of overlapped content seems to bother them(!). I am an absolute novice at this but perhaps we could somehow curtail the printing to just one page - that would probably take care of the problem?

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,978
    Thanks
    43
    Thanked 3,195 Times in 3,157 Posts
    Blog Entries
    12

    Default

    Yuk. That didn't happen in the local mock up I made from your previous page (the one I sent you some time back as glidermap.zip) remember it?

    Anyways, one difference is in the css for the glidecontentwrapper class. On the current page it's set to 1150px. Try changing that to 850px. That's in the featuredcontentglider.css file.

    The browser cache may need to be cleared and/or the page refreshed to see changes.

    It might be something else, or that and something else. Give that a shot:

    Code:
    @charset "utf-8";
    /* CSS Document */
    
    .glidecontentwrapper{
    position: relative; /* Do not change this value */
    width: 100%;
    height: 850px; /* Set height to be able to contain height of largest content shown*/
    border: 0;
    overflow: hidden;
    }
    /*
    	Total wrapper width: 350px+5px+5px=360px
    	Or width of wrapp . . .
    No it's just that. I since tested it and that fixes it. I also noticed that there's no cache busting on the import of the external calgaryNEcontent.htm file. That means that if you change that file, in some browsers a returning visitor will still see the old version.

    You can fix that by adding to the on page init:

    Code:
     <script type="text/javascript">
    
    featuredcontentglider.init({
    	gliderid: "calgaryneproperties", //ID of main glider container
    	contentclass: "glidecontent", //Shared CSS class name of each glider content
    	togglerid: "p-select", //ID of toggler container
    	remotecontent: "calgaryNEcontent.htm?bust="+new Date().getTime(), //Get gliding contents from external file on server? "filename" or "" to disable
    	selected: 0, //Default selected content index (0=1st)
    	persiststate: false, //Remember last content shown within browser session (true/false)?
    	speed: 500, //Glide animation duration (in milliseconds)
    	direction: "downup", //set direction of glide: "updown", "downup", "leftright", or "rightleft"
    	autorotate: false, //Auto rotate contents (true/false)?
    	autorotateconfig: [3000, 2] //if auto rotate enabled, set [milliseconds_btw_rotations, cycles_before_stopping]
    })
    
    </script>
    Last edited by jscheuer1; 03-27-2013 at 07:44 PM. Reason: tested more
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Nov 2012
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Wow, you remembered glidermap.zip. That's impressive considering you must help hundreds of people and that was months ago!

    Thanks for the new suggestions especially the cache busting tip. I tried changing the height to 850px and while that resolves the print issue, it creates another problem. Some of the content in the glidecontent divs is now being truncated -- try the properties in http://berezanmanagement.net/calgarySW.htm and you'll see what I mean. The last few lines of information are being cut off. It's all fine if the printout is one page but the overlap happens as soon as it runs into a second page.

  6. #6
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,978
    Thanks
    43
    Thanked 3,195 Times in 3,157 Posts
    Blog Entries
    12

    Default

    I remembered working on it. I found it by searching for your previous posts.

    OK, I've made another update to the .js file. This one automatically gets a fresh copy of the external page, so you no longer have to add the ?bust=, etc. to each init for the various pages. It also makes the unseen contents visibility hidden. So they don't show up, even on a two page view. This also allows you to make the glidecontwarapper as tall as you like. I'd suggest perhaps 900px though. The shorter you can make it without contents getting cut off, the better the pages will look. At least that's my theory. 1150px will work though, any height will work. The higher it is though, the more space there will be after the content and before the information on the offices:

    featuredcontentglider.js
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  7. #7
    Join Date
    Nov 2012
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Genius! That works perfectly. And thanks for the advice re height of div. I'll experiment and will use the shortest height that works. Unfortunately, the contents of that page are constantly being modified by the client so I have to try and provide adequate space for all possible content and 1150px seemed to meet all possible requirements.

    Thanks a million for your help with this. I could never have resolved it without your expert input! Can't thank you enough.

Similar Threads

  1. Featured Content Glider - print CSS - all content showing at once?
    By Beverleyh in forum Dynamic Drive scripts help
    Replies: 4
    Last Post: 03-26-2013, 02:29 AM
  2. Combining Featured Content Slider with Featured Content Glider problems.
    By ortizhj in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 05-18-2011, 02:12 PM
  3. update contents of featured content slider 2.4 on each rotation
    By pixelrow in forum Dynamic Drive scripts help
    Replies: 5
    Last Post: 02-25-2010, 11:05 AM
  4. Featured Content Glider
    By rairor in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 01-26-2010, 03:17 PM
  5. Resolved Featured Content Glider
    By mhepekiz in forum Dynamic Drive scripts help
    Replies: 3
    Last Post: 02-06-2009, 02:40 PM

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
  •