This project is read-only.

search box not working

Oct 16, 2009 at 9:31 PM

when i try and search with the search box from the default.aspx page, the page refreshes and appears to do nothing.  When I consulted fiddler what is happening is it is going to the search.aspx page and bouncing back to the default.aspx page.

here is the url for the site:


Oct 17, 2009 at 1:48 AM

The Search is 'invoked' from both the Search button as well as the Search field (if you hit the Enter key while in the Search field, Search is invoked).

Everytime the JavaScript 'Search' function is called, it should be prefaced with "return".  The problem now is with the Search() calls on the Search image button.  It looks like this on your site:

<input type="image" value="" border="0" id="searchbutton" src="/digital-insight/pics/btn_search_base.gif" onmouseup="this.src='/digital-insightpics/btn_search_base.gif'" onmouseout="this.src='/digital-insight/pics/btn_search_base.gif'" onmousedown="this.src='/digital-insight/pics/btn_search_press.gif'" onclick="Search('/digital-insight/');" onkeypress="Search('/digital-insight/');" style="padding:0px; margin:0 0 3px 0; outline:0px;vertical-align:middle;" />

The call to Search is in there twice (in the onclick and onkeypress handlers).  Instead of:


in both instances, it should be:

return Search('/digital-insight/')

The search field is already doing it right.

Oct 19, 2009 at 3:34 PM

Thanks that worked.