Embedding a custom Google Maps in Google Sites - google-maps-api-3

I made a custom google map that I would like to embed on a Google Site. I tested the code in a Dynamic Content Writer and it worked fine. I tried to load it into the HTML box and got the following message:
"9+9 - 58: failed to load external url js?sensor=false".
I read that I could try converting the code in a Google Gadget,but that produced this error message:
The gadget you added is not valid
Unsupported feature: org.apache.shindig.common.xml.XmlException: The entity name must immediately follow the '&' in the entity reference. At: (1,927)
My code is available here: https://gist.github.com/anonymous/1295106d8bb997a046e2500feb584a6f

Related

Wordpress quiz plugin not getting supporting jquery and popper file?

I have created one classes website in wordpress and in that i have used the wordpress quiz plugin and after installing it , i see that few of the functionalities is not working like no effect after click on MCQs of perticular exam question.
JQMIGRATE: Migrate is installed,
version 1.4.1
(index):480 GET http://demo.proserindustries.com/wp-content/themes/hestia/assets/js/jquery.min.js net::ERR_ABORTED 404 (Not Found)
(index):1 Failed to find a valid digest in the 'integrity' attribute for resource
'http://demo.proserindustries.com/wp-content/themes/hestia/assets/js/popper.min.js'
with computed SHA-256 integrity 'l2cF9FVtf7NyoWlrYREvAJEYLhdhonp/8mHK+02lUdo='.
The resource has been blocked.
(index):487 Uncaught TypeError: $ is not a function
at (index):487
After page inspect i have seen following error are occurred in console and that are for the plugin is not getting jquery and popper file, so please suggest me how can i overcome this problem ?

Google Analytics Receiving Data -- but no analytics in view source

My client created a website and a google analytics account. The report indicates that the account is receiving data -- and yet, when we do a view-source of the pages of the site, there is definitely absolutely no analytics code there. How is this posssible?
It is possible that the Analytics code is added via Javascript, not appearing in the "View Source" page. It is also possible for it not to appear in the inspector either.
I do not know how this happens, but I have encountered scripts that exist and run although they are not displayed in either the source page or the live DOM inspector (in Google Chrome). This happened to me while loading a PHP template containing Javascript through an Ajax request.
If you have access to the source code of your website, search the entire project for for the Analytics ID (Here's how to find it: https://support.google.com/analytics/answer/1032385?hl=en), and you'll locate your tracking code.
If your project is running on a Linux server, here's a post about how to quickly find a keyword (like the Analytics ID) in a folder: How do I find all files containing specific text on Linux?

Embed API Working with Custom Components fails to display

Google Analytics demo code at .
Logged in to Google Chrome as the owner of the Analytics Account and then navigating to that page displays my Google analytics data correctly.
I follow instructions on the page and embed the code into a simple page .
Authentication works as indicated by the displayed message: “You are logged in as: me(at)gmail.com” but there is nothing more, no graph no message.
I am reasonably certain that the page is coded correctly as I have:
Basic Dashboard (basic.html)
Multipleviews (multipleviews.html)and
Interactive Charts (ic.html)
all working and displaying correctly (they display but not styled like the demo).
Why will the page not display the graphics?
As Eike pointed out in the comments, you've simply copied and pasted the code from the demo without downloading the components to your own server. If you open up your JavaScript console, you'll notice that you have 404 errors saying the browser can't find those components. Here's a screenshot of what I see on your site:
To add those components to your site, you have a number of options. I've answered a similar question on one of the repo's Github issues, but I'll copy it here for convenience.
The built and minified versions of those components are located in the build/javascript/embed-api/components directory. You can simply download those files and add them as script tags on your page, or include them in your site's main, bundled script.
If you're using an AMD script loader like RequireJS, you can also just point to those built files as they're wrapped in a UMD wrapper.
If you're using a tool like browserify or webpack, you can npm install this repo and require the files in the src/javascript/embed-api/components directory.

i18n translations do not work when error page is inluded by ACS commons error page handler

The i18n part of error page does not work when response from the error page designated by the errorPages property is included by the error page handler.
The translations work fine when the error page is requested directly . However it fails to pick up any values and falls back to the key when the response of the error page is included by includeUsingGET method
Example :
com.day.cq.i18n.I18n i18n = new com.day.cq.i18n.I18n(slingRequest.getResourceBundle(currentPage.getLanguage(false)));
String translatedValue = i18n.get("key");
out.write(translatedValue);
Output when error page is accessed directly with a get request -> translatedValue
Output when the error page is included by errorpagehandler on a 404
-> key
The value of currentPage.getLanguage(false).getLanguage() is same in both the cases.
NOTE : I have already created an issue on github regarding this, asking a question here as stackoverflow has larger audience.
Please, try add config /apps/sling/config/org.apache.sling.i18n.impl.I18NFilter.xml.
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
jcr:primaryType="sling:OsgiConfig"
service.ranking="-10000"
sling.filter.scope="[REQUEST,ERROR]"/>
Also you can do this config in the "Adobe Experience Manager Web Console
Configuration" (http://example.com:4502/system/console/configMgr).
At least in version 5.5 we encountered this problem for any page that resulted in an error page getting loaded. We did not find a good solution. This goes beyond the ACS commons error page and seems to be an issue internal to CQ5.
You are likely going to have to write your own code to load the bundle OUTSIDE of the sling request. I would suggest writing your own OSGI service for this and calling that instead of the the slingRequest.getResourceBundle() approach.
Just edit your org.apache.sling.i18n.impl.I18NFilter.config, adding the following line (without spaces):
sling.filter.scope=["REQUEST","ERROR"]
As Rampant says , it is a Bug with the application and has nothing to do with ACS-commons error page handler. The bug was in Sling (link) , i18n filter which loads the correct resourceBundle was not firing for error scope. The issue has been corrected in r1430633. Looks like this fix hasn't made its way to 5.6.1 yet. A workaround for dealing with it can be found at https://forums.adobe.com/message/5012581.

SignalR issues with existing website

When I am trying to add SignalR in our existing web application (with MVC 4) I am getting below error message on page load.
Message: Unable to get value of the property 'signalR': object is null or undefined
URI: http://dev.casino.bwin.com/signalr/hubs
I tried to navigate to signalr/hubs jquery and it seems to be working fine as my client hub class is available in the javascript.
Any pointers on what i might be doing wrong.
You should be including "Scripts/jquery.signalR-1.0.1.min.js" after jQuery but before the "/signalr/hubs" script.
Look at Javascript + HTML Client section of http://www.asp.net/signalr/overview/signalr-20/hubs-api/hubs-api-guide-javascript-client for reference.

Resources