Programmatically Search Settings Configuration in Moss 2007

Today i found an article for setting search configuration in Moss 2007 using API.

string url = “your site collection url”;
using (SPSite site = new SPSite(url))
using (SPWeb web = site.RootWeb)
string searchCenter = “your search center url”;
web.AllProperties[“SRCH_ENH_FTR_URL”] = searchCenter;

Thanks to Gary Lapointe MVP.

Javascript How to get parent element value without ID

I need to get the parent node value from the current node click event (without using ID, since the data is generated using some automated process, so i don’t know the ID value during construction of element).

I used the following code to achieve this

JS :
function fnGetParentNodeValue(anchorTag)

var ParentContent = document.activeElement.parentElement.children[0].innerHTML;


<div><a href=”javascript:fnGetParentNodeValue(this)”>GetParentData</a></div>