Atlanta .NET Regular Guys

Community Blog for two guys in Atlanta that focus on Microsoft and Community.

Quick About

This is the community blog for Brendon Schwartz and Matt Ranlett.  If you want to see their technical posts visit http://www.sharepointguys.com

Back To DevCow

Recent Posts

Tags

Email Notifications

    Archives

    Be careful about hard coding Javascript in SharePoint 2007

    Have you ever gotten "Please wait while scripts are loaded..." in SharePoint 2007?  This is caused by a script error on the current SharePoint page.  To solve this problem just fix the javascript errors on the page and it should go away.  If you are a using a minimal or custom WCM master page you might run into this.  One place you might see this after applying a new master page is in the Survey form.  This is due to a hard coded script line in a content area that tries to set an element without checking if the element exists first.  Actually this should happen in an list that uses the form.aspx where the code actually lives.

    <script id="onetidPageTitleAreaFrameScript">
        document.getElementById("onetidPageTitleAreaFrame").className="ms-areaseparator";
    </script>

    If you don't have this element the message to wait for scripts will never go away.  To define the element just add it to a table as defined on the default.master page like the following table row:

    <td valign=top id="onetidPageTitleAreaFrame" class='ms-pagetitleareaframe' nowrap>

    Comments

    novolocus.com » Corrupt Breadcrumbs in the in PageAreaTitleFrame said:

    Pingback from  novolocus.com &raquo; Corrupt Breadcrumbs in the in PageAreaTitleFrame

    # October 30, 2008 8:01 AM