Results 1 to 3 of 3

Thread: How to make Dock Content Script work on Safari?

  1. #1
    Join Date
    Nov 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile How to make Dock Content Script work on Safari?

    1) Script Title: Dock Content

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

    3) Describe problem: I'd like to have it working on Safari, could anyone offer some suggestions?

    Thanks in advance !

    Shirley

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    I have no Mac to test on but, after looking at the script, I see two things that might be a problem for Safari. If you are getting any errors, this would help me determine if it is one or both of those two things or perhaps something else.

    Before I offer any suggestions, to test my theories, put this on your page after removing all scripts and javascript calls but, otherwise leaving the page as it is, and let me know what it does:

    Code:
    <script type="text/javascript">
    onload=function(){
    var d=typeof document.all;
    var db=document.body? document.body.offsetWidth : 'no document.body';
    var de=document.documentElement? document.documentElement.offsetWidth : 'no documentElement'
    var t=document.createTextNode('document.all type='+d+'\r\ndocument.body result='+db+'\r\ndocumentElement result='+de)
    var r=document.createElement('pre');
    r.style.position='absolute';
    r.style.top=0;
    r.style.left=0;
    r.style.color='black';
    r.style.backgroundColor='white';
    r.appendChild(t);
    document.getElementsByTagName('body')[0].appendChild(r)
    }
    </script>
    If it generates text in the upper left corner of the page (it should), copy and paste that into your reply.

    Also let me know if you are using a DOCTYPE or not and, if so, which one.
    Last edited by jscheuer1; 11-04-2006 at 09:07 PM. Reason: clarity
    - John
    ________________________

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

  3. #3
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    For anyone wondering, this issue has been resolved here:

    http://www.dynamicdrive.com/forums/s...d.php?p=168253
    - John
    ________________________

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

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
  •