The code actually came from an old dw extension that i had from dwfaq, i just 
changed some names around and I had put it into a snippet so i just used it but 
its been awhile (aka pre-my osx days) so I had never tried it in safari till 
now.


Thanks, to those that responded, i'll try them out and see.



>Dave,
>
>You're basically using the Dreamweaver code--which is crap. (Pardon the
>language.)
>
>Anyway, I suspect the reason it's failing is because you're passing in an
>object to the "pv" function, but the "typeof" operator is not seeing at as
>"object" but as an "htmlElementNode" or something like that. That would
>cause an error.
>
>Try putting the following line at the top of the pv function:
>
>alert(typeof obj);
>
>and see what it returns. My guess is it's returning something other than
>"object"--which is cause the condition to fail. To correct the problem, I'd
>just change the line from:
>
>       if(typeof(obj)!='object'){var obj=document.getElementById(obj);}
>
>to:
>
>       if(typeof(obj)=='string'){var obj=document.getElementById(obj);}
>
>The bottom line is if the "obj" variable is anything other than a string,
>the getElementById() statement would fail anyway. There's only two types of
>things that should be passed to that function anyway: a string contain the
>ID of an element to get or a reference to the actual element--everything
>else would cause errors.
>
>-Dan
>
>if(!obj.jw_OD){obj.jw_OD=(cS!='none'&&cS!='')?cS:(obj.tagName.toUpper
>>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:255290
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to