Using Prototype's Element.insert
Strangely, Prototype’s documentation for Element.insert does not have any examples, so I cooked something up quick:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Template</title>
<script type="text/javascript" src="prototype.js"></script>
<script type="text/javascript">
Event.observe(window, 'load', function() {
// Using Element.insert to insert after, before, top, or bottom
Element.insert($('para1'), { before: "<p>This is paragraph zero.</p>" });
Element.insert($('para1'), { after: "<p>This is paragraph two.</p>" });
// notice we have to insert using the content container
Element.insert($('content'), { top: "<p>This is the first paragraph.</p>" });
Element.insert($('content'), { bottom: "<p>This is the last paragraph</p>" });
});
</script>
</head>
<body>
<div id="content">
<p id="para1">This is paragraph one.</p>
<p id="para3">This is paragraph three.</p>
</div>
</body>
</html>
Failed to extract the cab file in the solution.
Got the following message when trying to deploy a solution file to the server:
Failed to extract the cab file in the solution.
Luckily Robert Bogue had already found the answer: we had duplicated an entry for a web part in our solution’s .ddf file. Apparently, makecab allows you to have the same file in the same location multiple times. I’m not really sure why it doesn’t just overwrite it, but in any case, the solution doesn’t know what to do with it either.
Enterprise Search and SharePoint
I’ve learned a couple of different things from messing with Enterprise Search and SharePoint. A lot of this has to do with the initial setup and how different crawls affect the index.
What this assumes:
-
You know how to get to Central Admin and the Search Admin screens
-
Any URLs below you will have to replace “centraladmin” with your own server ip
-
The place where you can run incremental or full crawls is: