Results 1 to 2 of 2

Thread: Redirection

  1. #1
    Join Date
    Dec 1969

    Default Redirection

    Good Afternoon,<BR><BR>I have a combo box with 3 values. When the user clicks the submit button the value of the list box is passed to the WhichButton function.<BR><BR>If the Search Type is 2, then the value of the text box is sent as a search value to Google. Currently the function works but the search page opens as a new page rather than in the parent page. I am redirecting the page using the document.location.href property in IE 6 on a Win2k box.<BR><BR>&#060;script language="JavaScript" type="text/JavaScript"&#062;<BR>&#060;!--<BR>function WhichButton(SearchType){<BR>alert("SearchType = " + SearchType)<BR><BR> if (SearchType == "2")<BR> var searchfor = document.frmWhichSearch.namesearch.value<BR>{ alert("Searching Webster Pages for " + document.frmWhichSearch.namesearch.value);<BR> var FullSearchUrl = <BR>"" + searchfor ;<BR>document.location.href = FullSearchUrl; <BR> }<BR> if (SearchType == "3")<BR>{ alert("Searching Abandoned Property Pages for " + document.frmWhichSearch.namesearch.value); <BR> var xreturn = namesearch_check(document.frmWhichSearch)<BR> alert(xreturn)<BR> var SearchExe ="";<BR> document.location.href = SearchExe ;<BR> <BR> }<BR> }<BR>//--&#062;<BR>&#060;/script&#062;<BR><BR>Any suggestions would be greatly appreciated.<BR><BR>Michael<BR>

  2. #2
    Join Date
    Dec 1969

    Default window object?

    have you tried<BR>window.location = FullSearchURL ?<BR><BR>Stephane Dorion<BR><BR>Good Luck

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts