OnClientSelectedIndexChanging
function
OnClientSelectedIndexChanging(sender, eventArgs)
{
var
Combo1Item = eventArgs.get_item();
var
Combo1Value = Combo1Item.get_value();
var
Combo2 = $find("<%= RadComboBoxDescription.ClientID %>");
var
Combo2Value = Combo2.findItemByValue(Combo1Value);
if
(Combo2Value)
{
Combo2Value.select();
}
}
"/_catalogs/" contains reserved name. Please try another one."
I've found that if I add items to the Image Path in the config file it works:
<property name="ImagesPaths">
<item>SiteCollectionImages</item>
</property>
But that leaves users unable to browse the libraries on the current Web for images, which makes the image viewer pretty useless in our environment (we have many Webs in the Site Collection that don't have permissions to any single library such as the SiteCollectionImages library).
Our environment runs MOSS 2007 SP1, has a single Farm with one Site Collection that uses the Collaboration Portal template, and a site Collection for each user's My Site. The mains site collection has about fifty subsites that mostly use the publishing site template.
We have several SharePoint test boxes with the same environments set up, and we're getting this error on each one. I'm finding that on a fresh SharePoint install of MOSS on a virtual server, this problem is not present.Here is the full error info:
An unhandled exception was generated during the execution
of the current web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.
|
[SPException: "/_catalogs/" contains reserved name. Please try another one.]
|
| <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" %> |
| <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <html xmlns="http://www.w3.org/1999/xhtml" > |
| <head runat="server"> |
| <title></title> |
| </head> |
| <body> |
| <form id="form1" runat="server"> |
| <telerik:RadScriptManager ID="ScriptManager1" runat="server" EnableTheming="True"></telerik:RadScriptManager> |
| <telerik:RadScriptBlock runat="server"> |
| <script type="text/javascript"> |
| function ShipOut() { |
| var grid = $find("<%= RadGrid1.ClientID %>").get_masterTableView().get_selectedItems(); |
| if (grid == null || grid.length < 1) |
| return; |
| var docids = ""; |
| var docids1 = ""; |
| for (i = 0; i < grid.length; i++) { |
| var dataitem = grid[i]; |
| docidsdocids = docids + dataitem.get_cell("DocID").innerText + ","; //.getDataKeyValue("DocID").toString(); |
| } |
| if (docids.length > 1) |
| docidsdocids1 = docids.substring(0, docids.length - 1); |
| var wnd = window.radopen("CreateManifest.aspx?DocID=" + docids1, "ShipOut"); |
| wnd.setSize(600, 400); |
| wnd.set_modal(true); |
| wnd.set_title("ShipOut"); |
| wnd.add_close(OnClientClose); |
| return false; |
| } |
| function OnClientClose(sender, eventArgs) { |
| var btn = document.getElementById('btnRebind').click(); |
| } |
| </script> |
| </telerik:RadScriptBlock> |
| <telerik:RadWindowManager ID="RadWindowManager1" runat="server" Skin="WebBlue"></telerik:RadWindowManager> |
| <div> |
| <telerik:RadTabStrip ID="RadTabStrip1" runat="server" AutoPostBack="true" MultiPageID="RadMultiPage1"> |
| <Tabs> |
| <telerik:RadTab Text="page1" runat="server" PageViewID="RadPageView1"></telerik:RadTab> |
| <telerik:RadTab Text="page2" runat="server" PageViewID="RadPageView2"></telerik:RadTab> |
| </Tabs> |
| </telerik:RadTabStrip> |
| <asp:UpdatePanel runat="server"><ContentTemplate> |
| <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0"> |
| <telerik:RadPageView ID="RadPageView1" runat="server">page 1</telerik:RadPageView> |
| <telerik:RadPageView ID="RadPageView2" runat="server"> |
| <telerik:RadGrid ID="RadGrid1" runat="server" GridLines="None"> |
| <MasterTableView> |
| <RowIndicatorColumn> |
| <HeaderStyle Width="20px" /> |
| </RowIndicatorColumn> |
| <ExpandCollapseColumn> |
| <HeaderStyle Width="20px" /> |
| </ExpandCollapseColumn> |
| <Columns> |
| <telerik:GridClientSelectColumn UniqueName="testselect"></telerik:GridClientSelectColumn> |
| </Columns> |
| </MasterTableView> |
| <ClientSettings> |
| <Selecting AllowRowSelect="True" /> |
| </ClientSettings> |
| <FilterMenu EnableTheming="True"> |
| <CollapseAnimation Duration="200" Type="OutQuint" /> |
| </FilterMenu> |
| </telerik:RadGrid> |
| <a href="#" onclick="return ShipOut();" id="lnkShipOutwards" runat="server" |
| enableviewstate="True">CREATE MANIFEST</a> |
| </telerik:RadPageView> |
| </telerik:RadMultiPage> |
| <asp:Button ID="btnRebind" runat="server" Text="Button" /> |
| </ContentTemplate></asp:UpdatePanel> |
| </div> |
| </form> |
| </body> |
| </html> |
| using System; |
| using System.Collections.Generic; |
| using System.Linq; |
| using System.Web; |
| using System.Web.UI; |
| using System.Web.UI.WebControls; |
| using System.Data; |
| namespace WebApplication1 |
| { |
| public partial class _Default : System.Web.UI.Page |
| { |
| protected void Page_Load(object sender, EventArgs e) |
| { |
| if (!IsPostBack) |
| { |
| DataTable dT = new DataTable(); |
| dT.Columns.Add("DocID"); |
| DataRow row1 = dT.NewRow(); |
| row1["DocID"] = 1; |
| dT.Rows.Add(row1); |
| row1 = dT.NewRow(); |
| row1["DocID"] = 2; |
| dT.Rows.Add(row1); |
| row1 = dT.NewRow(); |
| row1["DocID"] = 3; |
| dT.Rows.Add(row1); |
| row1 = dT.NewRow(); |
| row1["DocID"] = 4; |
| dT.Rows.Add(row1); |
| row1 = dT.NewRow(); |
| row1["DocID"] = 5; |
| dT.Rows.Add(row1); |
| dT.AcceptChanges(); |
| RadGrid1.DataSource = dT; |
| RadGrid1.DataBind(); |
| } |
| } |
| } |
| } |
umm... what is this error I see on every pages?
a[i].getAttribute("href") is null
It seems in this function: (line 33 is where it breaks)
| // Iterates through all the <a> links on a page and adds | |
| // them to the queue to be prefetched. | |
| function doEnhancedPrefetch(aEvent, pos) { | |
| // exit if enhanced prefetching is turned off | |
| // or if the site has opted out of prefetching | |
| if(!PreferencesService.getBoolPref("extensions.fasterfox.enhancedPrefetching")) return; | |
| // doc is document that triggered "onload" event | |
| var doc = aEvent.originalTarget; | |
| // if this isn't an http:// page, retun | |
| if (doc.location.href.indexOf("http://") != 0) return; | |
| // load whitelist | |
| var whitelist = PreferencesService.getCharPref("extensions.fasterfox.whitelist").split(","); | |
| var whitelistLen = whitelist.length; | |
| // find all links | |
| var a = doc.getElementsByTagName('a'); | |
| var href, numLinksToPrefetch, i, j; | |
| // prefetch a max of 100 links | |
| numLinksToPrefetch = (a.length>100) ? 100 : a.length; | |
| // if its the first time, set the pos to 0, | |
| // if a pos was passed in, we'll start the for loop there instead | |
| if (pos == null || pos <=0) pos = 0; | |
| // iterate through the links | |
| mainLinkLoop: | |
| for (i=pos; i<numLinksToPrefetch; i++) { | |
| href = a[i].getAttribute('href').toLowerCase(); | |
| // make sure there is a link | |
| if(href && href.length > 4) { | |
| // Don't prefetch links w/ query strings | |
| // or the same page we are on | |
| if(href.indexOf('?')>=0 || href == doc.location.href) continue; | |
| // Don't prefetch things that look like a logout link | |
| // Special thanks to b1naryb0y and Kai Risku for this bug fix | |
| if(href.indexOf('logout')>=0 || href.indexOf('logoff')>=0) continue; | |
| // Only prefetch static content, this causes dynamic pages to be ignored | |
| fileExtensionStartPos = href.length-4; | |
| if(!(href.indexOf('.htm') == fileExtensionStartPos | |
| || href.indexOf('.html') == fileExtensionStartPos-1 | |
| || href.indexOf('.jpg') == fileExtensionStartPos | |
| || href.indexOf('.gif') == fileExtensionStartPos | |
| || href.indexOf('.png') == fileExtensionStartPos | |
| || href.indexOf('.jpeg') == fileExtensionStartPos-1 | |
| || href.indexOf('.txt') == fileExtensionStartPos | |
| || href.indexOf('.text') == fileExtensionStartPos-1 | |
| || href.indexOf('.xml') == fileExtensionStartPos | |
| || href.indexOf('.pdf') == fileExtensionStartPos)) continue; | |
| // Don't prefetch whitelist links | |
| href = ff_GetAbsoluteUrl(href, doc.location.href); | |
| for(j=0; j<whitelistLen; j++) { | |
| if(whitelist[j].length > 0 && href.indexOf(whitelist[j]) >= 0) continue mainLinkLoop; | |
| } | |
| // test if site is opting out of prefetching | |
| var shouldOptOut = ff_IsSiteOptOut(href, aEvent, i); | |
| if(shouldOptOut) { | |
| continue; | |
| } else if (shouldOptOut == -1) { | |
| return; | |
| } | |
| try { | |
| PrefetchService.prefetchURI(ff_makeURI(ff_GetAbsoluteUrl(a[i].getAttribute('href'), doc.location.href)), ff_makeURI(doc.location.href), true); | |
| } catch(e) { | |
| //if(e.name != "NS_ERROR_ABORT") alert(ff_GetAbsoluteUrl(href, doc.location.href) + '\n' + e.toString()); | |
| } | |
| } | |
| } | |
| } | |