Results 1 to 7 of 7
  1. #1
    New Member
    Join Date
    Jan 2009
    Location
    Israel
    Posts
    4

    Multi search radio in Hebrew

    Hello all,
    As described on:
    http://www.mediacollege.com/internet/javascript/form/multi-search-radio.html

    I did a simple copy paste to my page and it is working fine. The problem is that it is possible to make English searches only. When I try to use Hebrew words (Google fully supports that), I am getting some results but they are all gibberish. Also, the search box is filled with the characters like the following:

    %u05E0%u05D9%u05E1%u05D9%u05D5%u05DF

    Can anyone suggest a way to perform a Hebrew search with radio buttons?

    Thanks.

    Bruno

  2. #2
    that's javascript escaping of the input... not sure how you can escape only special characters but leave standard unicode untouched or to allow non-latin1 charsets.
    Eric Adler (tonsofpcs)
    http://www.videoproductionsupport.com/ Chat at: http://tinyurl.com/vpschat
    Follow me on twitter: @videosupport @eric_adler

  3. #3
    New Member
    Join Date
    Jan 2009
    Location
    Israel
    Posts
    4
    Hi Tonsofpcs,
    Thank you very much for the post and efforts.
    Since I have no experience in HTML or Java, all I know is from trial and error. In my case, lots and lots of errors.

    It took me only about two hundred trials to realize that when I use non standard characters, it's submission is NOT possible in the browser address line. This submission happens since the HTML code offered sends the searched term DIRECTLY to the address line (after the "...q=" at the end of the address line). The browser can't handle that.
    When I search the "original" Google at google.com or google.co.il and use non standard characters, there is some "hidden" mechanism that is able to read it and make sense of it. So, I think the code offered in the link is no good for such task.

    Do you (or anyone else) know a code that is able to handle non standard characters and use the same feature of multi radio search?

    Thanks again.

    Bruno

  4. #4
    just remove the escape

    Code:
    <script language="JavaScript">
    function dosearch() {
    var sf=document.searchform;
    for (i=sf.sengines.length-1; i > -1; i--) {
    if (sf.sengines[i].checked) {
    var submitto = sf.sengines[i].value + sf.searchterms.value;
    }
    }
    window.location.href = submitto;
    return false;
    }
    </script>

  5. #5
    New Member
    Join Date
    Jan 2009
    Location
    Israel
    Posts
    4
    Smifis,
    That is great! It works! I was trying to figure out what you did exactly because the Java part looks the same to me.
    Can you please shortly explain?

    Also, there is a Google CSE that a good friend made. The link is:
    http://www.google.com/coop/cse?cx=01...09y83jzk&hl=iw

    This engine is for locally searching environmental laws and regulations.
    Is there a way to add this Google CSE to the engines list and use it with these radio buttons? I already tried to replace the address of one of the engines in the list with the above link but it did not work. The best I could do was that after pressing the search button, I am reaching the home page of the CSE. There is no search, not even in Gibberish. Nither standard or non-standard characters work.

    Can you (or anyone) help me with this last bit?
    Thanks a lot.

    Bruno

  6. #6
    New Member
    Join Date
    Jan 2009
    Location
    Israel
    Posts
    4

    Please ignore my last post

    Hi guys,
    Please ignore my last post from Jan 12, 13:57.
    Managed to work this out by myself.

    Thanks a lot to Tonsofpcs and Smifis those who helped

    Bruno

  7. #7
    Quote
    Quote: smifis
    View Post
    just remove the escape

    Code:
    <script language="JavaScript">
    function dosearch() {
    var sf=document.searchform;
    for (i=sf.sengines.length-1; i > -1; i--) {
    if (sf.sengines[i].checked) {
    var submitto = sf.sengines[i].value + sf.searchterms.value;
    }
    }
    window.location.href = submitto;
    return false;
    }
    </script>


    I would think that would cause problems if "/" or " " or some other characters appeared in the searchterms....
    Eric Adler (tonsofpcs)
    http://www.videoproductionsupport.com/ Chat at: http://tinyurl.com/vpschat
    Follow me on twitter: @videosupport @eric_adler

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Subscribe to us on YouTube