Active desktop problem..

Discussion in 'Windows Desktop Systems' started by kid23, Sep 23, 2003.

  1. kid23

    kid23 Guest


    I'm having a little problem with one of the features I added to my active desktop, and wondered if anybody could help :)

    The part causing the problem is the websearch feature, I'm using a select box to choose between google, yahoo..., a text input box, and a button to launch the search.

    Here's my code:

    function CheckWebSearch()
    SearchWindow =,'Windowname');


    <form action="javascript:CheckWebSearch()" name="fWebSearch" target="_new">
    <select size="1" name="searchtype">
    <option selected value="">Google</option>
    <option value="">Yahoo</option>

    <input type="text" name="strSearch" maxlength="256" size="22" value="">
    <input type="submit" name="btnG" value="Find!!" onSubmit='CheckWebSearch()' onClick='CheckWebSearch()'>

    Now my problem.. when I test all this by lauching my AD in IE, everything works fine, I can do the searches on any web sites. But when I do it from the AD itself, it opens 2 IE windows, one with the correct website (my search results), and a 2nd one containing nothing but "javascript:CheckWebSearch()" in the address bar.

    Any idea how I can get rid of this unwanted 2nd window ?

    Thx in advance :)
  2. kid23

    kid23 Guest

    Nevermind.. I found my mistake..

    <form action="javascript:CheckWebSearch()" name="fWebSearch" target="_new">

    should be :

    <form onSubmit='CheckWebSearch()' name="fWebSearch" target="_self">