0

Hi all,

I'm having problem with the javascript functions.
I'm using OOB webpage that uses MOSS features for search.

It seems that when I click the search button, it doesn't work using firefox browser.

Here is the code from the XML page:

<td bgcolor="#666666" width="70px"><img src="../images/Search-buttonA.gif" onclick='gosearch()' id="searchImage" style="cursor:pointer"></td>

<script language="javascript">
function gosearch()
{
var scope = "&s=Discussions"
var resultsurl="../Pages/Discussions.aspx";
var Search = document.getElementById("txtSearch0").getAttribute("value");
var resultsurl = resultsurl + "?k=" + Search + scope;
window.navigate(resultsurl)
}
</script>

Can anyone help me on this?
Am I missing something???

3
Contributors
2
Replies
3
Views
10 Years
Discussion Span
Last Post by MidiMagic
1
window.nagivate()

is IE specific. If you want it to work in both browsers then use

window.location.href = "pagename"

Hope it helps!

0

If OOB means Out Of the Box, and that is really supposed to be xml, you got rooked. I see deprecated code, which is part of html, but which is NOT part of either xhtml or xml:

bgcolor is deprecated.

width as a property is deprecated, but is allowed as a CSS style.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.