aym / google-ajax-apis

Automatically exported from code.google.com/p/google-ajax-apis
0 stars 0 forks source link

CustomSearchControl: script errors in IE8 (exceptions not caught) #532

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
In Internet Explorer 8, submitting queries to the Custom Search Control may 
cause errors (exceptions not caught) in ads-related scripts.

This issue was originally reported by 2 users in the Custom Search help forum.  
Here is the original thread:

http://www.google.com/support/forum/p/customsearch/thread?tid=3a329136cdfaa854

The original reports describe two error cases: one that may occur on an initial 
search, and another that occurs on subsequent searches.  In my initial testing 
I have observed only the latter case, using IE8 version 8.0.6001.18702 in 
Windows XP.  (If I get a chance later I'll test again with a more recent 
version of IE8.)

To demonstrate the problem please follow these steps:

1)  Implement a simple test page using the Custom Search Control on any CSE.

2)  Put the page on a remote web server. *

* (Note:  If you test the page "locally", IE8 might hang when you submit a 
query.  That may be a separate problem which may also be worth investigating.  
For our current purposes please test remotely.)

3)  In IE8, click "Tools" > "Internet Options" > "Advanced".  Enable the option 
to "Display a notification about every script error."  Also enable script 
debugging (remove the check-mark on "Disable script debugging (Internet 
Explorer).")

4)  Visit your test page in IE8, and submit a search query.  The first query 
may or may not produce an error in a script named "searchframe.I.js".

5)  Submit a second query, and observe an error in a script named 
"search.I.js".  Subsequent queries may again produce the same error.

Note:
The browser's error messages indicate exceptions thrown but not caught.  
Investigation in the script debugger may suggest that these might be 
permission-related errors possibly associated with HTML5 messaging.

Original issue reported on code.google.com by omr99...@yahoo.com on 19 Oct 2010 at 12:20

GoogleCodeExporter commented 8 years ago
Typo Correction:

In steps 4 and 5 of the procedure above, I mentioned the names of two scripts.  
In step 4, the script name is misspelled.  The correct spelling is: 
"searchiframe.I.js".

Original comment by omr99...@yahoo.com on 19 Oct 2010 at 12:22

GoogleCodeExporter commented 8 years ago
This seems to happen in Firefox, too (v3.6.10), whereas Safari seems unaffected 
(v5.0.2).

My CSE has ads disabled because it's for a non-profit organization: don't know 
whether that has anything to do with the reported behaviour.

Original comment by infarin...@gmail.com on 20 Oct 2010 at 9:41

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I am having the same issue (Message: Exception thrown and not caught Line: 12 
Char: 117) but it is occurring in search.I.js. It works fine in Firefox 3.6.11 
and Chrome 7 but not IE8. My CSE has also ads disabled due to its non-profit 
status.

Original comment by laver...@gmail.com on 26 Oct 2010 at 3:40

GoogleCodeExporter commented 8 years ago
For me it works in Opera and Safari. Havent tried Chrome and IE7.

Actually I get 2 different errors. One when i try the global site search box 
and another when I try the searchresult page search box

In global site search box 
I get error in IE6, IE8 and Firefox 3.6.11
http://xxx.com/Internet/htdocs/errorpage/dialogbox.jsp?msgType=ERROR&source=JAVA
SCRIPT&errCode='o[...](...)' is null or not an 
object&element=241&customMsg=http://www.google.com/uds/api/search/1.0/06d38d8d43
03569fde240e4e6fa982a3/default+no.I.js

In searchresult page search box
I get error in IE6 and IE8  
http://xxx.com/Internet/htdocs/errorpage/dialogbox.jsp?msgType=ERROR&source=JAVA
SCRIPT&errCode=Exception thrown and not 
caught&element=12&customMsg=http://www.google.com/uds/api/ads/2.0/5fd0d58530e555
e14f56d48f806b2b3c/search.I.js

Original comment by vivek.lu...@gmail.com on 27 Oct 2010 at 6:46

GoogleCodeExporter commented 8 years ago
I'm having the same error:
"Exception thrown and not caught"
search.I.js
line 12 character 117

When I'm trying to view 
"http://code.google.com/intl/el-GR/apis/ajaxsearch/documentation/customsearch/" 
from IE8.

FF, Opera, Chrome works fine.

Original comment by kirt...@gmail.com on 27 Oct 2010 at 12:24