I'm getting this J.S. error when Enter is pressed for a Search.The page stays on the page it is on and doesn't perform a Search:
'document.getElementById(...)' is null or not an object
The Search works on FireFox. I found one difference:
FireFox view source:
onclick="if(Page_ClientValidate('Search')){window.location='/Search.aspx?
IE8:
onclick="if(Page_ClientValidate('Search')){window.location='/DCP3/Search.aspx?
The Search page is in the root folder. Can this be fixed?
Source code from Default.aspx(IE8) :
<input type="submit" name="ctl00$wpm$HomePage$ctl00$SearchButton" value="GO!"
onclick=
"if(Page_ClientValidate('Search')){window.location='/DCP3/Search.aspx?k='+encodeURIComponent(ctl00_wpm_HomePage_ctl00_SearchPhrase.value);}return false;
WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("ctl00$wpm$HomePage$ctl00$SearchButton", "", true, "Search", "", false, false))"
id="ctl00_wpm_HomePage_ctl00_SearchButton" />
'document.getElementById(...)' is null or not an object
The Search works on FireFox. I found one difference:
FireFox view source:
onclick="if(Page_ClientValidate('Search')){window.location='/Search.aspx?
IE8:
onclick="if(Page_ClientValidate('Search')){window.location='/DCP3/Search.aspx?
The Search page is in the root folder. Can this be fixed?
Source code from Default.aspx(IE8) :
<input type="submit" name="ctl00$wpm$HomePage$ctl00$SearchButton" value="GO!"
onclick=
"if(Page_ClientValidate('Search')){window.location='/DCP3/Search.aspx?k='+encodeURIComponent(ctl00_wpm_HomePage_ctl00_SearchPhrase.value);}return false;
WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("ctl00$wpm$HomePage$ctl00$SearchButton", "", true, "Search", "", false, false))"
id="ctl00_wpm_HomePage_ctl00_SearchButton" />