jump to navigation

Error: var logoImg = documentGetElementsByName – MoveSiteTitle February 24, 2013

Posted by juanpablo1manrique in SharePoint, SharePoint Development.
Tags: ,
trackback

Hola Amigos

Ahora que ingresamos al mundo cross-browser, con sharepoint 2013, encontrmos que sharepoint 2010 todavia tiene algunos incovenientes, uno de ellos se me present en estos días al estar trabajando con el SharePoint recien instalado y con el Master.Page v4 que trae sharepoint por defecto, en Chrome en el momento de hacer debug se evidenciaba error en estas 2 líneas.

PlaceHolderPageTitleInTitleArea

solucion medio temporal:

En SharePoint designer se busca el PlaceHolder:PlaceHolderPageTitleInTitleArea  al abrir el master page se le dice a que visible = false

<asp:ContentPlaceHolder id=”PlaceHolderPageTitleInTitleArea” runat=”server” Visible=”false” />

Esto ya no renderiza este molesto código en sharepoint

Se intento bajar el ultimo Cumulative Update de Diciembre 2012 http://support.microsoft.com/hotfix/KBHotfix.aspx?kbnum=2596957

Pero esto no soluciono el problema

Asi que este place holder quedo con la propiedad visible=”false”, esta solución no me convence del todo así que seguire investigando sobre el tema, cualquier sugerencia con gusto sera recibida.

SHPludos

Comments»

1. Tunec - April 1, 2013

Thank you very much from Russia 🙂
God bless google chrome with embedded translator

2. Daniel Tiziani (@dtiziani) - December 5, 2013

Put this code inside your master page above the s4-workspace tag or similar:

if(typeof documentGetElementsByName===’undefined’)
{
documentGetElementsByName = function(value){
if($(‘[name=”‘+value+'”]’))
{
return $(‘[name=”‘+value+'”]’);
}
return null;
};
}

if(typeof MoveSiteTitle===’undefined’)
{
MoveSiteTitle = function(value){
return “”;
};
}

juanpablo1manrique - December 5, 2013

Tu solucion es possible pero tiene 2 problemas.

– Estas agregando más codigo a la página y por lo tanto la estas hacienda más pesada.
– Estas usando jQuery lo cual no se va a poder en todos los casos.

Pero es una excelente opción definer las funciones que fallan, cuando este tag sea completamente necesario,

Muchas Gracias por tu aporte


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: