Results 1 to 5 of 5

Thread: not printing smartphp calendar event text in mozilla

  1. #1
    Join Date
    Mar 2012
    Posts
    16
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default not printing smartphp calendar event text in mozilla

    Hi,
    I am using smart php calendar in my application here i am using custom print for print background colors and hole calendar.

    but when i print the calendar its working in google crome but not working in mozilla..

    here is my custom print code..

    Code:
    <script>
          function printPage(printpage1)
          {
           var headstr = "<html><head><title></title></head><body><div style='-webkit-print-color-adjust:exact; color: #ffffff;'>";
           var footstr = "</div></body>";
           var newstr1 = document.getElementById(printpage1).innerHTML;
           var oldstr = document.body.innerHTML;
           document.body.innerHTML = headstr+newstr1+footstr;
           window.print();
           document.body.innerHTML = oldstr;
           location.reload();
           return false;
          }
    
    </script>
    Last edited by keyboard; 12-21-2012 at 05:09 AM. Reason: Format: Code Tags [code][/code]

  2. #2
    Join Date
    May 2012
    Location
    Hitchhiking the Galaxy
    Posts
    1,013
    Thanks
    47
    Thanked 139 Times in 139 Posts
    Blog Entries
    1

    Default

    That's because -webkit-print-color-adjust is for webkit alone, hence, it only works in webkit browsers (chrome and safari).

    If you want further help, you'll need to post your whole code.
    "Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program." - Linus Torvalds
    Anime Views Forums
    Bernie

  3. #3
    Join Date
    Mar 2012
    Posts
    16
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Hi, I removed -webkit-print-color-adjust but still same prob..

  4. #4
    Join Date
    May 2012
    Location
    Hitchhiking the Galaxy
    Posts
    1,013
    Thanks
    47
    Thanked 139 Times in 139 Posts
    Blog Entries
    1

    Default

    Do you have a live page you can show us? It should be much easier to diagnose the problem on a live page.
    "Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program." - Linus Torvalds
    Anime Views Forums
    Bernie

  5. #5
    Join Date
    Mar 2012
    Posts
    16
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Click image for larger version. 

Name:	google.jpg 
Views:	76 
Size:	79.0 KB 
ID:	4855
    Click image for larger version. 

Name:	mozilla.jpg 
Views:	72 
Size:	76.6 KB 
ID:	4856

    you can see the images what i am getting..

Similar Threads

  1. event calendar
    By jinu227 in forum PHP
    Replies: 0
    Last Post: 12-02-2011, 07:57 AM
  2. dynamic event calendar
    By chechu in forum Looking for such a script or service
    Replies: 10
    Last Post: 11-29-2009, 02:29 PM
  3. Getting 'Event.clientX' in Mozilla FF
    By TonyLoco23 in forum Dynamic Drive scripts help
    Replies: 6
    Last Post: 03-13-2009, 06:07 PM
  4. event calendar
    By denoteone in forum Looking for such a script or service
    Replies: 2
    Last Post: 01-19-2008, 12:58 AM
  5. Event calendar needed
    By doug57 in forum HTML
    Replies: 3
    Last Post: 02-21-2007, 12:52 AM

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
  •