Search.js
function initSearch()
{
var searchIcon = $get('SearchIcon');
if (dnn.getVar('SearchIconSelected') == 'S')
{
searchIcon.style.backgroundImage=dnn.getVar('SearchIconSiteUrl');
}
else
{
searchIcon.style.backgroundImage=dnn.getVar('SearchIconWebUrl');
}
$addHandler(searchIcon, 'click', toggleDropDown);
var siteIcon = $get('SearchIconSite');
siteIcon.style.backgroundImage=dnn.getVar('SearchIconSiteUrl');
$addHandler(siteIcon, 'click', selectSearch);
$addHandler(siteIcon, 'mouseover', searchHilite);
$addHandler(siteIcon, 'mouseout', searchDefault);
var webIcon = $get('SearchIconWeb');
webIcon.style.backgroundImage=dnn.getVar('SearchIconWebUrl');
$addHandler(webIcon, 'click', selectSearch);
$addHandler(webIcon, 'mouseover', searchHilite);
$addHandler(webIcon, 'mouseout', searchDefault);
/* Set the default display style to resolve DOM bug */
$get('SearchChoices').style.display='none';
}
" Microsoft JScript runtime error: Object expected "
I got the above error in search.js file in dotnetnuke folder
Default.vb page
<script type="text/javascript" src="/dotnetnuke/Resources/Search/Search.js" ></script>
<script>dnn.controls.initMenu($('dnn_dnnNAV_ctldnnNAV'));<
and the error in this tag of a Default.vb page of dotnetnuke
If any one know how to fix this error please help
ThanX in advance
nitin