Search code examples
javascriptinternet-explorer-6google-search-api

Search result links from Google Custom Search not working when viewed in IE6


One of the community sites I work on currently has this issue when viewing search results from Google CS in IE6.

For example these results. Attempting to click on any result doesn't provoke the browser into following the link. Strangely though, shift clicking or right clicking and opening in a new window both work.

Has anybody seen anything like this before? Any ideas on how to fix it?


Solution

  • Here is a potential solution:

    Replace the following line of code:

    var a=encodeURIComponent||escape;
    

    With:

    var a=encodeURIComponent;
    

    Or:

    var a=escape;
    

    From this Google Support thread.

    Note that this fixed problems on specific IE6 version:

    6.0.2900.2180.xpsp_sp2_gdr.080814-1233
    

    I tested your example page with IE6 version:

    6.0.2900.5512.xpsp_sp3_gdr.090206-1234CO
    

    And had no problems loading results or following result links.

    If the above doesn't help, make sure the Navigate subframes across different domains security setting is set to Enable. See this post for more details.

    Hope this helps!