Logo 
Search:

Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

NOSCRIPT tag

  Asked By: Shauna    Date: May 05    Category: Sharepoint    Views: 4854

After installing the AKS, I've created a new website using a blank template, choosed the AKS_BlackBand.master and the Aks_Band_Blackband.css.

In SPdesigner removed the search control from the default.aspx. However when previewing the site, the default.aspx still has some <script/> tags and none <noscript/> equivalent. This generates an accessibility error.

Is there a way to have a <noscript> tag for every <script/> ? Where can one configure this?

This are the scripts present in the page:


<script type="text/javascript" language="javascript" src="/_layouts/2070/core.js?rev=EIpAXZ8VRr%2B%2BsetZQw9YnA%3D%3D" defer></script>
<script type="text/javascript" language="javascript" src="/_layouts/2070/non_ie.js?rev=yfNry4hY0Gwa%2FPDNGrqXVg%3D%3D"></script>
......
<script type="text/javascript">
var navBarHelpOverrideKey = "wssmain";
</script>
....
<script type="text/javascript">
<!--
var theForm = document.forms['aspnetForm'];
if (!theForm) {
theForm = document.aspnetForm;
}
function __doPostBack(eventTarget, eventArgument) {
if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
theForm.__EVENTTARGET.value = eventTarget;
theForm.__EVENTARGUMENT.value = eventArgument;
theForm.submit();
}
}
// -->
</script>

....

<script src="/WebResource.axd?d=oHDYBFi41e_Yin9uI8hiQQ2&t=633209186515218514" type="text/javascript"></script>

...

<script> var MSOWebPartPageFormName = 'aspnetForm';</script><script type="text/JavaScript" language="JavaScript">
<!--
var L_Menu_BaseUrl="/acess2";
var L_Menu_LCID="2070";
var L_Menu_SiteTheme="";
//-->
</script>
<script src="/WebResource.axd?d=_DeU6kVwBc-W4uB9VoDvbg2&t=633209186515218514" type="text/javascript"></script>
<script type="text/javascript">
<!--
function WebForm_OnSubmit() {
UpdateFormDigest('\u002facess2', 1440000);return _spFormOnSubmitWrapper();
return true;
}
// -->
</script>


.....


<script type="text/javascript">
<!--
var __wpmExportWarning='This Web Part Page has been personalized. As a result, one or more Web Part properties may contain confidential information. Make sure the properties contain information that is safe for others to read. After exporting this Web Part, view properties in the Web Part description file (.WebPart) by using a text editor such as Microsoft Notepad.';var __wpmCloseProviderWarning='You are about to close this Web Part. It is currently providing data to other Web Parts, and these connections will be deleted if this Web Part is closed. To close this Web Part, click OK. To keep this Web Part, click Cancel.';var __wpmDeleteWarning='You are about to permanently delete this Web Part. Are you sure you want to do this? To delete this Web Part, click OK. To keep this Web Part, click Cancel.';var zz1_logoLinkId_Data = new Object();
zz1_logoLinkId_Data.disappearAfter = 500;
zz1_logoLinkId_Data.horizontalOffset = 0;
zz1_logoLinkId_Data.verticalOffset = 0;
if (typeof(overrideMenu_HoverStatic) == 'function' && typeof(Menu_HoverStatic) == 'function')
{
_spBodyOnLoadFunctionNames.push('enableFlyoutsAfterDelay');
Menu_HoverStatic = overrideMenu_HoverStatic;
}
var zz2_GlobalNav_Data = new Object();
zz2_GlobalNav_Data.disappearAfter = 500;
zz2_GlobalNav_Data.horizontalOffset = 0;
zz2_GlobalNav_Data.verticalOffset = -8;
zz2_GlobalNav_Data.hoverClass = 'zz2_GlobalNav_13 topNavFlyOutsHover';
zz2_GlobalNav_Data.hoverHyperLinkClass = 'zz2_GlobalNav_12 topNavFlyOutsHover';
zz2_GlobalNav_Data.staticHoverClass = 'zz2_GlobalNav_11 topNavHover';
zz2_GlobalNav_Data.staticHoverHyperLinkClass = 'zz2_GlobalNav_10 topNavHover';
var zz3_CurrentNav_Data = new Object();
zz3_CurrentNav_Data.disappearAfter = 500;
zz3_CurrentNav_Data.horizontalOffset = 0;
zz3_CurrentNav_Data.verticalOffset = 0;
zz3_CurrentNav_Data.hoverClass = 'zz3_CurrentNav_17 leftNavFlyOutsHover';
zz3_CurrentNav_Data.hoverHyperLinkClass = 'zz3_CurrentNav_16 leftNavFlyOutsHover';
zz3_CurrentNav_Data.staticHoverClass = 'zz3_CurrentNav_15 leftNavHover';
zz3_CurrentNav_Data.staticHoverHyperLinkClass = 'zz3_CurrentNav_14 leftNavHover';
// -->
</script>





Share: 

 

1 Answer Found

 
Answer #1    Answered By: Emily Clark     Answered On: May 05

Unfortunately for you, there is no way to get rid all of the script elements by using the standard configuration settings. What you would need to do, is to create a HttpModule which would either remove all these scripts  (what could lead to breaking the SharePoint functionality) or add a noscript element to each script element.

 
Didn't find what you were looking for? Find more on NOSCRIPT tag Or get search suggestion and latest updates.




Tagged: