Google Maps API 403 Forbidden, Linking Properly and Not Over Limits - google-maps

I'm getting a consistent 403 forbidden error from Google Maps API, although I'm linking the API properly and am far from the request limits and using neither "client" nor "signature."
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?v=3.4&key=AIzaSyDuaKJpqDygX3vtsLQuybrIcL6fmu-6Ht8&sensor=true"></script>
The issue is appearing here: http://local.americawantstowork.org/labor2014
Any ideas? The other pages using this exact code have no issues at all. :(

This page (can't say about the others, you didn't provide links to "working" pages) is including the Google Maps Javascript API v3 twice, once legally, once with local code copied from Google's servers (which is against the terms of service:
1st include (per documentation, includes the earliest version of the API available, not 3.4)):
<!-- include google maps if required -->
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?v=3.4&key=AIzaSyDuaKJpqDygX3vtsLQuybrIcL6fmu-6Ht8&sensor=true"></script>
2nd include (copies of Google's loader and main.js files on your local server):
<!-- include google maps if required -->
<script type="text/javascript" src="/javascripts/js"></script>
<script src="javascripts/main.js" type="text/javascript"></script>
from the last:
getScript("http://maps.gstatic.com/mapfiles/api-3/15/21/main.js");
version 3.15 was just retired, so that will no longer work. (explains why it just "broke")

I also saved the Google Maps file locally and it stopped working after some time. I needed to add ?v=3.exp to the end of my URL to get it working
https://maps.googleapis.com/maps/api/js?v=3.exp
The answer from #geocodezip helped me. I can't comment because my reputation isn't high enough.

Related

Firebase link to add project to web app not working

When you want to add firebase to a web application it gives you some links to write in the html file. I've coppied and pasted those links in my project but an error appeared in the console. I've realized that writing (taking out "-app" in one of the links):
<script src="https://www.gstatic.com/firebasejs/7.12.0/firebase.js"></script>
instead of:
<script src="https://www.gstatic.com/firebasejs/7.12.0/firebase-app.js"></script>
works perfectly.
Is that normal? Am I doing something wrong?
As explained in the doc,
<script src="https://www.gstatic.com/firebasejs/7.11.0/firebase-app.js"></script>
is the core Firebase SDK and is always required and must be listed first. But then you need to add the imports for the other SDKs you plan to use, like, for example:
<script src="https://www.gstatic.com/firebasejs/7.11.0/firebase-auth.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.11.0/firebase-firestore.js"></script>
On the other hand, you can include the entire Firebase JavaScript SDK, rather than individual SDKs, as follows:
<script src="https://www.gstatic.com/firebasejs/7.11.0/firebase.js"></script>
Doing this way, all the Firebase SDKs will be imported, but it is not recommended for production apps, as stated in the doc.

Opening an App from a WebPage

I am developing a web app which I need to open a particular app. I have found this site: http://handleopenurl.com/ which gives some of the app url. But there isn't the app that I want, which is PolyCom RealPresence.
How can I get any app url which is not in that site.
I have tried the following:
99845075 <!-- Works -->
New SMS Message <!-- Works -->
ITunes <!-- Works -->
PolycOM <!-- Do not Work -->
Thanks,
Mark
a Polycom rep says the only way to call in the app is IP dialing only (basic mode), or with alias or IP based (pro mode) - custom URL scheme to open the app and direct a specific call is not supported as of June 2013
see Polycom rep answer identical question here on their forums - http://community.polycom.com/t5/RealPresence-Mobile/Is-it-possible-for-the-RealPresence-Mobile-iOS-to-dial-URL/td-p/13480
Check out Implementing Custom URL Schemes in iOS App Programming Guide: Advanced App Tricks.
If the third party app in question implements a custom URL scheme, you need to figure out what it is and use that. Otherwise, I'm afraid you're out of luck.

how to redirect a html page to another website which is hosted in google drive urlshorten by gdriv.es

I am new to this.
Can any one tell me why my HTML page which is hosted in Google Drive, cannot redirect to a particular webpage while URL is shortened in GDRIV .
my html file content was
<html>
<body>
<p>you will be redirected soon.</p>
<meta http-equiv="refresh" content="0; url=http://examplesite.com">
</body>
</html>
I shared the Folder to the public and it was working fine, but the URL was bitty flabby like
https#://googledrive.com/host/0BXXXXXXXXXXXXXMGM/site.html
So I shortened the URL with the help of GDRIV
and i got a decent short URL something like
http#://gdriv.es/XXXX/site.html
But the redirecting function is no more working while using the shorten URL and work fine with that clumsy URL
Can any one tell me why this happen and well I think it is irrelevant to ask you tat ' Can i use PHP coding in Google drive hosted sites? '
It works. I did same thing in above example you provided and it did redirect my gdriv.es shortened address to redirected website.
Of course I assume you are aware of typo you made by adding # in your URL.
If it still doesn't work for you there is a "Send Feedback" link at the bottom of gdrive.es main page.
Fill that form and I'm sure they'll check that problem.
For your second question: No, you can not use PHP or any other server side scripting language on Google Drive Hosted Web Sites.
However you can use Google Apps Script which works under Google Drive and it uses Javascript language. You can do many things with GAS, one of them provides you a facility similar to PHP: HTML Service.
One caveat though: It has a javascript sanitization mechanism called CAJA. Meaning you can't just run any javascript code you like. Check last link for restrictions.

jQuery-ui library not loaded/served by Google CDN from the Google site "insert html box" tool [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Jquery-ui library will not loaded/served by Google CDN from the Google site “insert html box”
I am struggling with the Google sites "insert html box" tool to get the CDN to serve the jQuery user interface library — jQueryUI — without any success.
I have used the following code and its variants without any themes but to no avail;
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.21/themes/base/jquery-ui.css"/>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js" type="text/javascript"></script>
The jQuery library loads fine but not the jQueryUI library. The Google developer site suggests that this should work, but I only get error messages — "failed to load external url jquery-ui.css" or "folding element body into parent".
What am I doing wrong?
Bug filed here, which you can track. It will get fixed in Sites a week or two after it is marked fixed on that tracker.

Google Maps API places library gives 404 error

I have this on my page:
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?libraries=places&sensor=false"></script>
I use this library so that on certain input elements I can display an autocomplete list of places.
Until a few days ago, it was working fine. Now, it doesn't work and I noticed this error on my Chrome's console:
GET http://maps.gstatic.com/cat_js/intl/en_us/mapfiles/api-3/9/10a/%7Bmain,places%7D.js?_=1343069114062 404 (Not Found)
I've come so far as to understanding that it's the ?_=1343069114062 part that is breaking (try http://maps.gstatic.com/cat_js/intl/en_us/mapfiles/api-3/9/10a/%7Bmain,places%7D.js - works fine.)
Can you help me figure this out?
Thank you.
Apparently something else on my document was interfering.
I just moved the script tag to another position in the document and everything now works fine.