google loader causing browser to change location FF or blank page in chrome - google-ajax-api

I have an issue using the google loader in an existing webpages.
When I call e.g.
google.load("translate","1");
If FireFox, the browser changes it's location trying to load something from google which it never finishes and in Chrome the page just goes blank.
Has anyone experienced this before?
These pages are doing a lot of jquery, javascript and asp.net AJAX too. But I can't find anyting which seems to be causing it.
Thanks!

I had the same issue, after a while I found this solution.
http://markmail.org/message/vn57b44u7eqbrn3c
If you post your script I can probably provide more help

Same issue, same solution as suggested by Allartk: adding the "callback" options to the load() call.
Here you can find detatailed and updated documentation:
Google Loader API
Example:
function myCallback(){console.info("callback!");}
google.load("translate","1","callback": myCallback);

Related

Drupal 8 Generate all images for all styles

I'm working on a Drupal 8.6 multi site installation, where every site has it's own database, and I'm having a problem where the first time a content is shared on Facebook it uses the wrong image.
The meta tag is configured right, it is something like this:
<meta property="og:image" content="https://xxxx.com/image.jpg?itok=w8tMeCC0" />
This image problem happens only at the first share and I believe it happens because the image has not been created yet at the moment of the first share.
I would like to know what I could do to force the image to be generated as soon as the content is published and if there is a way to create all the missing images.
I found this post and I'm trying to implement in a module (I never worked on Drupal before) but I don't even know how to schedule this piece of script to be executed.
Is there an existing module or setting that does that?
Thanks for any help!
Have you tried the facebook Debugger?
https://developers.facebook.com/tools/debug/
Facebook usually stores the metatags in cache during shares. What I usually do is debug the webpage at least once with the right metatags configured in the debugger and ensure the page loads correctly there.
Afterwards, the share will be loading all the assets correctly.

ColdFusion: cftooltips display on one site but not another on same server

I just deployed a new site, call it SiteA, that uses cftooltip, but the tooltips are not displaying. When I hover over the link, nothing happens. SiteB has been running on the same server for a long time, and it's tooltips display fine. The folders for SiteA, SiteB and CFIDE are all in inetpub/wwwroot.
My browser reports the following when trying to display tooltips on SiteA:
'ColdFusion is undefined'
'YAHOO' is undefined.
It would seem that SiteA can't find what it needs in cfide/scripts, but SiteB doesn't have this problem. In the CF Admin, I have a mapping to cfide.
Any ideas? Thanks in advance for help.
Peter
It's not exactly a solution, but you can cut and paste the CFIDE/scripts folder into the webroot of SiteA, which should at least get it working until you work it out!
Things to check are the mappings (obviously), but also any URL rewriting etc; look into chrome dev tools or firebug to see what is being returned from the missing .js call (i.e is it an IIS or apache 404, or something else?)

JQuery html5 Loader not working in internet explorer

I created a site with a background video...
So to avoid page lagging i used a preloader.Works fine on every browser except ie.Can anyone help me this is a link to my site:Link
My site Files
It doesn't work, I've the same problem.
Output $("body").jpreLoader(); if browser != Chrome

QWebFrame load() not sending cookies upon initial page load

I am using QtWebkit to implement a browser in C++/Qt. When I open a new tab in it with a QWebView instance and load a URL using load() the page loads normally, but when it's a site where I'm logged in using cookies, it'll appear as though I'm not logged in at all, due to the cookies for that page not being sent along with the HTTP request (verified using SocketSniff).
The only thing I think that might make a difference would be the custom cookiejar I created, but I'm unsure what it might be since the cookiejar works fine otherwise. You can find the full source code at the Github link on the project page for the browser: http://www.mayaposch.com/wildfox.php and the Github link: https://github.com/MayaPosch/WildFox
Any clues are welcome :)
Well, I at last found out what the problem was. I narrowed it down to the custom cookiejar I implemented, which has an in-memory structure containing new and accessed cookies, and stores non-session cookies in an SQLite structure on disk. The problem was that after first loading a site, it'd find cookies in the SQLite database, load them into the in-memory structure, but not use them.
Small glitch with big consequences and very easy to figure out once you get down to it. My sincere apologies for wasting your time with this question. Hopefully this answer will help someone, though :)

I'm trying to use the likebox plugin on my website with the "iframe" option and it's not working

I coped and pasted the code that is supplied, and the i frame is displaying with a "page cannot be found". Does anyone know if this is just a bug? Or if they're not maintaining the "iframe" option anymore?
Facebook is still using the iframe option. Did you put in the link to your Facebook page? You might try using the tool again. http://developers.facebook.com/docs/reference/plugins/like-box/