We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

Vanwege onderhoudswerkzaamheden die uw ervaring zouden moeten verbeteren, heeft deze website beperkte functionaliteit. Als een artikel uw probleem niet verhelpt en u een vraag wilt stellen, kan onze ondersteuningsgemeenschap u helpen in @FirefoxSupport op Twitter en /r/firefox op Reddit.

Zoeken in Support

Vermijd ondersteuningsscams. We zullen u nooit vragen een telefoonnummer te bellen, er een sms naar te sturen of persoonlijke gegevens te delen. Meld verdachte activiteit met de optie ‘Misbruik melden’.

Meer info

Deze conversatie is gearchiveerd. Stel een nieuwe vraag als u hulp nodig hebt.

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

  • 8 antwoorden
  • 1 heeft dit probleem
  • 19 weergaven
  • Laatste antwoord van 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

Alle antwoorden (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