PDA

View Full Version : How to make Dock Content Script work on Safari?



shirster
11-03-2006, 08:03 PM
1) Script Title: Dock Content

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/dockcontent.htm

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

Thanks in advance ! :)

Shirley

jscheuer1
11-04-2006, 07:13 PM
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:


<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.

jscheuer1
11-05-2008, 07:56 PM
For anyone wondering, this issue has been resolved here:

http://www.dynamicdrive.com/forums/showthread.php?p=168253