Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have just inserted a javascript world clock via a text doc and a CEWP. However now that this is functional on my page I cannot see my drop downs from the top nav bar. It was working fine before I put the javascript in. Any thoughts?

Thanks.

share|improve this question
    
What exactly ended up being the error here? I have literally this EXACT same issue. –  Lando Feb 15 '13 at 21:21
    
Im assuming its the one marked below. I use a different clock now anyway, the original one was riddled with errors. –  Charles Baker Feb 21 '13 at 13:37
add comment

1 Answer

up vote 3 down vote accepted

Could be a script conflict, error in the world clock that's not visible, CSS override, etc. One thing you can try is opening the Developer toolbar in IE (press F12) and click the script tab, then click Start Debugging. That should reload your page and throw any script errors if there are any.

However, chances are it's a CSS issue, does the world clock have it's own CSS references? Is it overriding any OOTB SharePoint classes? Can you point us to the script?

share|improve this answer
    
+1 it is either a conflict or an error. If it a conflict then you might want to scope your included javascript. tech.myemma.com/iifes-javascript-control-variable-scope –  Hugh Wood Nov 19 '12 at 16:49
    
+1 A script error in the script you pasted, or a conflict would prevent any other JavaScript on the page from executing. –  webdes03 Nov 19 '12 at 17:27
    
David, followed the debugging steps you outlined and the only thing it returned was this: "SCRIPT5009: '_spBodyOnLoadFunctionNames' is undefined Home2.aspx, line 150 character 1". Im not great with script, only very basic javascript so any help you could offer would be greatly appreciated. If not, thanks for your help already –  Charles Baker Nov 20 '12 at 8:42
    
Remove the web part and debug again, see if this is an existent error or not. Sometimes SP will error for the fun of it :/ –  David Lozzi Nov 20 '12 at 12:44
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.