none
AYUDA URGENTE: errores de javascript en Sharepoint 2007 en las busquedas y en los reportes RRS feed

  • Pregunta

  • Buenos dias a todos:

    tengo un problema que me esta causando muchos problemas en MOSS 2007. Acabo de crear una master page con MOSS 2007 pero cuando deseo realizar una busqueda, o revisar algun reporte me marcan unos errores de javascript que, al salir, impiden que siga funcionando el portal.. Estos errores salen en las secciones de noticias y reportes. Al parecer el problema está en el master page ya que al cambiarlo a los defaults todo funciona correctamente.

     

    Espero que alguien me pueda ayudar con esto. Aqui dejo el codigo fuente del masterpage

     

    <%@ Master language="C#" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <%@ Import Namespace="Microsoft.SharePoint" %>
    <%@ Register Tagprefix="SPSWC" Namespace="Microsoft.SharePoint.Portal.WebControls" Assembly="Microsoft.SharePoint.Portal, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register Tagprefix="PublishingWebControls" Namespace="Microsoft.SharePoint.Publishing.WebControls" Assembly="Microsoft.SharePoint.Publishing, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register Tagprefix="PublishingNavigation" Namespace="Microsoft.SharePoint.Publishing.Navigation" Assembly="Microsoft.SharePoint.Publishing, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register TagPrefix="wssuc" TagName="Welcome" src="~/_controltemplates/Welcome.ascx" %>
    <%@ Register TagPrefix="wssuc" TagName="DesignModeConsole" src="~/_controltemplates/DesignModeConsole.ascx" %>
    <%@ Register TagPrefix="PublishingVariations" TagName="VariationsLabelMenu" src="~/_controltemplates/VariationsLabelMenu.ascx" %>
    <%@ Register Tagprefix="PublishingConsole" TagName="Console" src="~/_controltemplates/PublishingConsole.ascx" %>
    <%@ Register TagPrefix="PublishingSiteAction" TagName="SiteActionMenu" src="~/_controltemplates/PublishingActionMenu.ascx" %>

    <html dir="<%$Resources:wss, multipages_direction_dir_value %>" runat="server" __expr-val-dir="ltr">
    <head runat="server">
     <meta name="GENERATOR" content="Microsoft SharePoint">
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
     <meta http-equiv="Expires" content="0">
     <SharePoint:RobotsMetaTag runat="server"/>
     <title id="onetidTitle">
      <asp:ContentPlaceHolder id="PlaceHolderPageTitle" runat="server"/>
     </title>
     <Sharepoint:CssLink runat="server" />
     <!--Styles used for positioning, font and spacing definitions-->
     <SharePoint:CssRegistration name="<% $SPUrl:~SiteCollection/Style Library/Master.css%>" runat="server"/>
     <!--Placeholder for additional overrides-->
     <asp:ContentPlaceHolder id="PlaceHolderAdditionalPageHead" runat="server"/>
    </head>

    <%-- When loading the body of the .master page, MOSS 2007 also loads the SpBodyOnLoadWrapper class. This class handles .js calls for the master page. --%>
    <body onload=_spBodyOnLoadWrapper();">
     <%-- The SPWebPartManager manages all of the Web part controls, functionality, and events that occur on a Web page. --%>  
     <WebPartPages:SPWebPartManager runat="server"/>

     <form runat="server" onsubmit="return _spFormOnSubmitWrapper();">
      <table width="100%" border="0" cellpadding="-1" cellspacing="-1">
       <tr>
        <td colspan="2">
         <wssuc:DesignModeConsole id="IdDesignModeConsole" runat="server"/><PublishingConsole:Console runat="server"/>
        </td>
       </tr>
       <tr>
        <td bgcolor="#C3DBF9" align="right" colspan="2">
         <table align="left" border="0" cellspacing="0" cellpadding="0">
          <tr>
           <td>
            <PublishingVariations:VariationsLabelMenu id="labelmenu1" runat="server"/>
            <asp:ContentPlaceHolder id="PlaceHolderSearchArea" runat="server">
             <SPSWC:SearchBoxEx id="SearchBox" RegisterStyles="false" TextBeforeDropDown="Buscar en: " TextBeforeTextBox="Palabras a buscar: " TextBoxWidth="100"
             GoImageUrl="<% $SPUrl:~sitecollection/Style Library/Images/search.gif %>"
             GoImageUrlRTL="<% $SPUrl:~sitecollection/Style Library/Images/search.gif %>"
             goimageactiveurl="<% $SPUrl:~sitecollection/Style Library/Images/search-selected.gif %>"
             UseSiteDefaults="true" DropDownMode = "ShowDD" SuppressWebPartChrome="true" runat="server" showadvancedsearch="true" />
             </asp:ContentPlaceHolder>
            <%--<asp:ContentPlaceHolder id="PlaceHolderSearchArea" runat="server">
             <SharePoint:DelegateControl runat="server" ControlId="SmallSearchInputBox"/>
             </asp:ContentPlaceHolder>--%>
           </td>
          </tr>
         </table>
         <!--Authentication for Authors only-->
         <table cellpadding="0" cellspacing="0" align="right" height="100%">
          <tr>
           <td class="ms-globallinks"><wssuc:Welcome id="explitLogout" runat="server"/></td>
           <td class="ms-globallinks"><PublishingSiteAction:SiteActionMenu runat="server"/></td>
          </tr>
         </table>
        </td>
       </tr>
       <tr>
        <td width="80%" class="Header">
         <h1 class="TituloPagina">Portal de Intranet</h1>
         <span id="filmstrip">&nbsp;</span>
        </td>
        <td width="20%" align="right" class="slogan">
         <table width="100%" height="100%" border="0">
          <tr><td width="100%" align="right"><h1>Slogan de la empresa</h1></td></tr>
         </table>
        </td>
       </tr>
       <tr>
        <td colspan="2" class="Menu"> 
         <!--<table align="left" cellspacing="0" cellpadding="0" class="MenuStatic"><tr><td><a href="http://portal/sites/prueba2/Pages/default.aspx" style="text-decoration:none;margin-top:1px;">Inicio</a></td></tr></table>   -->
         
          <table align="left" border="0" cellpadding="-1" cellspacing="-1"><tr><td class="MenuStatic" style="text-decoration:none;padding-top:1px;"><asp:SiteMapPath SiteMapProvider="SPSiteMapProvider" id="GlobalNavigationSiteMap" RenderCurrentNodeAsLink="true" SkipLinkText="" NodeStyle-CssClass="ms-sitemapdirectional" runat="server"/></td></tr></table>
         <PublishingNavigation:PortalSiteMapDataSource ID="siteMapDataSource1" Runat="server"
          SiteMapProvider="CombinedNavSiteMapProvider" EnableViewState="true"
          StartFromCurrentNode="true" StartingNodeOffset="0" ShowStartingNode="false"
          TreatStartingNodeAsCurrent="true" TrimNonCurrentTypes="Heading" />

         <SharePoint:AspMenu ID="GlobalNav" Runat="server" DataSourceID="SiteMapDataSource1"
          Orientation="Horizontal" StaticDisplayLevels="1" MaximumDynamicDisplayLevels="1"
          StaticSubMenuIndent="0" DynamicHorizontalOffset="0" DynamicVerticalOffset="-8"
          StaticEnableDefaultPopOutImage="false" ItemWrap="false" SkipLinkText="<%$Resources:cms,masterpages_skiplinktext%>">
           <StaticMenuItemStyle CssClass="MenuStatic" ItemSpacing="0px"/>
           <dynamicmenustyle cssclass="MainMenuDynamic" />
           <DynamicMenuItemStyle CssClass="MenuDynamic"/>
           <DynamicHoverStyle CssClass="ms-topNavFlyOutsHover"/>
           <DynamicSelectedStyle CssClass="ms-topNavFlyOutsSelected"/>
         </SharePoint:AspMenu>
         <%--<SharePoint:DelegateControl runat="server" ControlId="TopNavigationDataSource">
          <Template_Controls>
           <asp:SiteMapDataSource
             ShowStartingNode="False"
             SiteMapProvider="SPNavigationProvider"
             id="topSiteMap"
             runat="server"
             StartingNodeUrl="sid:1002"/>
           </Template_Controls>
         </SharePoint:DelegateControl>

         <SharePoint:AspMenu
           ID="TopNavigationMenu" runat="server" DataSourceID="topSiteMap" EnableViewState="false" AccessKey="<%$Resources:wss,navigation_accesskey%>"
           Orientation="Horizontal" StaticDisplayLevels="2" MaximumDynamicDisplayLevels="1" DynamicHorizontalOffset="0" StaticPopoutImageTextFormatString=""
          DynamicHoverStyle-BackColor="#CBE3F0" SkipLinkText="" StaticSubMenuIndent="0" CssClass="menustatic">
           <StaticMenuStyle/>
           <StaticMenuItemStyle CssClass="menustatic" ItemSpacing="0px"/>
           <StaticSelectedStyle CssClass="ms-topnavselected" />
           <StaticHoverStyle CssClass="ms-topNavHover" />
           <DynamicMenuStyle  cssclass="mainmenudynamic"/>
           <DynamicMenuItemStyle CssClass="ms-topNavFlyOuts"/>
           <DynamicHoverStyle CssClass="ms-topNavFlyOutsHover"/>
           <DynamicSelectedStyle CssClass="ms-topNavFlyOutsSelected"/>
         </SharePoint:AspMenu>--%>

        </td>
       </tr>
       <tr><td colspan="2"><asp:ContentPlaceHolder ID="PlaceHolderMain" runat="server" /></td></tr>
       <tr><td colspan="2" class="Footer"><div align="center"><span>Esta página puede ser mejor vista con una resolución de 800 X 600 pixeles o más</span><span>Derechos Reservados© portal 2003-2007</span></div></td></tr>
      </table>
      <asp:panel visible="false" runat="server">
       <asp:ContentPlaceHolder id="PlaceHolderTitleBreadcrumb" runat="server" />
       <asp:ContentPlaceHolder id="PlaceHolderPageTitleInTitleArea" runat="server" />
       <asp:ContentPlaceHolder ID="PlaceHolderLogin" runat="server" />
       <asp:ContentPlaceHolder ID="PlaceHolderLeftNavBar" runat="server" />
       <asp:ContentPlaceHolder ID="PlaceHolderTitleInTitleArea" runat="server" />
       <asp:ContentPlaceHolder ID="PlaceHolderPageImage" runat="server" />
       <asp:ContentPlaceHolder ID="PlaceHolderBodyLeftBorder" runat="server" />
       <asp:ContentPlaceHolder ID="PlaceHolderNavSpacer" runat="server" />
       <asp:ContentPlaceHolder ID="PlaceHolderTitleLeftBorder" runat="server" />
       <asp:ContentPlaceHolder ID="PlaceHolderTitleAreaSeparator" runat="server" />
       <asp:ContentPlaceHolder ID="OSSConsole" runat="server" />
       <asp:ContentPlaceHolder ID="PlaceHolderMiniConsole" runat="server" />
       <asp:ContentPlaceHolder ID="PlaceHoldercalendarNavigator" runat="server" />
       <asp:ContentPlaceHolder ID="PlaceHolderLeftActions" runat="server" />
       <%--<asp:ContentPlaceHolder ID="PlaceHolderPageDescription" runat="server" />--%>
       <asp:ContentPlaceHolder ID="PlaceHolderBodyAreaClass" runat="server" />
       <asp:ContentPlaceHolder ID="PlaceHolderTitleAreaClass" runat="server" />
      </asp:panel>
     </form>
    </body>
    </html>

     

    Espero sus comentarios al respecto y muchas gracias

    viernes, 16 de marzo de 2007 19:31

Respuestas

  • Buenas tardes de nuevo

     

    Solo para comentar que el primer error ya lo corregi. Las busquedas ya se pueden realizar y ya se quitaron los errores. sin embargo en la seccion de "reportes" aparecen 3 errores que no encuentro la razon de por qué estan saliendo. Para corregir el error en las busquedas solo agregue los siguientes placeholders:

    <asp:ContentPlaceHolder id="PlaceHolderTitleBreadcrumb" runat="server">
          <div class="breadcrumb">
           <asp:SiteMapPath ID="siteMapPath" Runat="server" SiteMapProvider="CurrentNavSiteMapProviderNoEncode"
            RenderCurrentNodeAsLink="false" CurrentNodeStyle-CssClass="breadcrumbCurrent" NodeStyle-CssClass="ms-sitemapdirectional"/>
          </div>

    ya ya funcino correctamente. Alguno de ustedes me podría ayudar por favor por qué salen esos errores de javascript

    Los errores son los siguientes:

    line 370
    char: 1
    error:"Contextinfo is undefined"
    code:0
    url=http://portal/reports/pages/default.aspx

    line: 621
    char: 1
    error:"_spbodyonloadfunctionnames" is undefined
    code: 0
    url=http://portal/reports/pages/default.aspx

    line: 40
    char: 1
    error: Object expected
    code: 0
    url: http://portal/reports/pages/default.aspx

     

    Ojala me puedan ayudar con esto porque por este motivo el portal no puede ser dado de alta.

    Muchas gracias

    Phoenixzero

    • Marcado como respuesta Uriel Almendra jueves, 4 de abril de 2013 17:38
    viernes, 16 de marzo de 2007 23:21