为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Google Custom Search does not work with Firefox. All other browsers work.

  • 8 个回答
  • 1 人有此问题
  • 19 次查看
  • 最后回复者为 SherryOB

more options

Google has suggested we contact Firefox support for this question. My site is jointmathematicsmeetings.com. When you search in the Google custom search box, no results show up from the site. This search works in Chrome, Safari and IE. There is something about Firefox that prevents the search from working. Here is the script for the search: <script>

 (function() {
   var cx = '006070101833274801941:25ou21ndpva';
   var gcse = document.createElement('script');
   gcse.type = 'text/javascript';
   gcse.async = true;
   gcse.src = 'https://cse.google.com/cse.js?cx=' + cx;
   var s = document.getElementsByTagName('script')[0];
   s.parentNode.insertBefore(gcse, s);
 })();

</script> <gcse:searchbox-only></gcse:searchbox-only>

and here is the script for the results page:

<script>

 (function() {
   var cx = '006070101833274801941:25ou21ndpva';
   var gcse = document.createElement('script');
   gcse.type = 'text/javascript';
   gcse.async = true;
   gcse.src = 'https://cse.google.com/cse.js?cx=' + cx;
   var s = document.getElementsByTagName('script')[0];
   s.parentNode.insertBefore(gcse, s);
 })();

</script> <gcse:searchresults-only></gcse:searchresults-only>

Firefox is our primary browser which is why it is so important that this Google custom search work in Firefox.

Thanks for your help,

Sherry O'Brien American Mathematical Society

Google has suggested we contact Firefox support for this question. My site is jointmathematicsmeetings.com. When you search in the Google custom search box, no results show up from the site. This search works in Chrome, Safari and IE. There is something about Firefox that prevents the search from working. Here is the script for the search: <script> (function() { var cx = '006070101833274801941:25ou21ndpva'; var gcse = document.createElement('script'); gcse.type = 'text/javascript'; gcse.async = true; gcse.src = 'https://cse.google.com/cse.js?cx=' + cx; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(gcse, s); })(); </script> <gcse:searchbox-only></gcse:searchbox-only> and here is the script for the results page: <script> (function() { var cx = '006070101833274801941:25ou21ndpva'; var gcse = document.createElement('script'); gcse.type = 'text/javascript'; gcse.async = true; gcse.src = 'https://cse.google.com/cse.js?cx=' + cx; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(gcse, s); })(); </script> <gcse:searchresults-only></gcse:searchresults-only> Firefox is our primary browser which is why it is so important that this Google custom search work in Firefox. Thanks for your help, Sherry O'Brien American Mathematical Society

所有回复 (8)

more options

Firefox can't find the server at www.jointmathematicsmeetings.com

Is this your site? http://jointmathematicsmeetings.org/jmm

more options

If the problem is on the site that Fred found, the Web Console shows this error:

TypeError: google.search.Search.apiary5811 is not a function File: https://www.googleapis.com/customsearch/v1element

Note: the function name (such as it is) keeps changing.

I don't know why it's not working. About one out of five times if I Shift+click the reload button on the address bar, the results will appear normally. But it's not consistent enough for me to say it's a caching problem.

more options

FredMcD said

Firefox can't find the server at www.jointmathematicsmeetings.com Is this your site? http://jointmathematicsmeetings.org/jmm

Yes, sorry. I forgot the name of my own site for a moment. Thanks for your help, Sherry O'Brien

more options

Hi Sherry, I saw your thread on Google's forum. They're so helpful.

Do you know whether this problem started in Firefox 48, or are you experiencing it in Firefox 47 as well? There was a plumbing-level change in JavaScript in Firefox 48 that affects some scripts (e.g., Microsoft Dynamics CRM 2011 Lookup Error in Firefox Version 48.0.2), so I wonder whether that might be related.

more options

If it helps I note threads in two Google fora one is from March 2016

more options

This link sent me back to one of my own posts earlier this year. It probably wasn't clear what the name was on the post. Anyway, his solution didn't work.

Thanks,

Sherry O'Brien

more options

This link sent me back to one of my own posts earlier this year. It probably wasn't clear what the name was on the post. Anyway, his solution didn't work.

Thanks,

Sherry O'Brienjscher2000 said

Hi Sherry, I saw your thread on Google's forum. They're so helpful. Do you know whether this problem started in Firefox 48, or are you experiencing it in Firefox 47 as well? There was a plumbing-level change in JavaScript in Firefox 48 that affects some scripts (e.g., Microsoft Dynamics CRM 2011 Lookup Error in Firefox Version 48.0.2), so I wonder whether that might be related.
more options

Hi,

I'm using Google 47.01 so I guess the change with 48 doesn't apply here.

Thanks for your help,

Sherry O'Brien AMS