When recaptcha v2 laods on any page of this site, in Chrome, you have to press the browser back button 3 times to return to the previous page:
https://fromhere.to/6m4sh
Firefox, Opera and Edge are fine. This only happens in Chrome.
In the network tab of browser tools, clicking the back button shows a lot of requests to recaptcha and nothing happens. On the 3rd click, you finally get back to the previous page.
As far as I am aware, this only started happening today.
I'm using Version 67.0.3396.99 (Official Build) (64-bit).
Can anyone see what's going on?
UPDATE:
I found another site using the same theme (Rosa) and it has the same problem so that seems to be the issue.
This turned out to be unrelated to recaptcha and an issue with the Wordpress Rosa theme.
The function causing the problem in the theme's main.js file:
function initVideos() {
var videos = $('iframe, video');
// Figure out and save aspect ratio for each video
videos.each(function() {
$(this).data('aspectRatio', this.width / this.height)
// and remove the hard coded width/height
.removeAttr('height')
.removeAttr('width');
});
// Firefox Opacity Video Hack
$('iframe').each(function(){
var url = $(this).attr("src");
if ( !empty(url) )
$(this).attr("src", setQueryParameter(url, "wmode", "transparenartt"));
});
}
There are no videos on any page of the site so I am pointing the finger at the 'Firefox Hack' which modifys any iframe with a src attribute and adds a misspelt query parameter to the end of it :).
Recaptcha loads in an iframe which is probably why I could always see the problem on a page with a form.
Related
Right, I don't really know how to explain this one but I will do my best by giving a scenario:
Homepage -> Contact page
Home page elements and text displays on top of the contact pages text.
Anyone know why this would be happening? Or if there has been any issues like this from the past?
Help and suggestions will be much appreciated
Edit: There is also nested menus and it is always the homepage that displays on top of content. The url seems to change first to the secondary page url, then it suddenly changes to the homepage url. It also blinks but I think this is an issue that jQuery mobile havent fixed using jQuery mobile 1.2.0
I'm adding a facebook share button to each post on a Wordpress (Using Facebook Share Button New plugin), it works ok for each post/page except when i'm loading them trough ajax, the result it's a normal Facebook like button but the popup (to write a comment) appears inside the button it is not expanded.
To check go to: http://iwanttobeher.com/ and then click on any face at the bottom of the page, then test the like button and you'll see what happens.
I don't know what to do, i tried to FB.XFBML.parse() after loading the content but the result is the same.
Switching to HTML5 didn't help in our case. What did was to remove the FB object just prior to new content being inserted into the page via Ajax:
delete FB;
wrapper.html(response.data);
We reload full pages via Ajax and so new page content recreates the FB object and re-initializes XFBML anyway. Not sure if this workaround would work if we reloaded only parts of the page though.
The original answer is here.
I've managed to fix it by changing the implementation to HTML5 instead Iframe or XFBML using Facebook's tool to generate like buttons: https://developers.facebook.com/docs/reference/plugins/like/
I am using backbone.js and pushstate. In IE9, it degrades to using the hashtag and AJAX requests work just fine. The issue I have is with refreshing the page. My links are in the following format:
/a_username/a_collection_id
in IE9 if I am on:
/me/collection1
and I click on the AJAX link:
/me/collection2
I get this:
/me/collection1#me/collection2
When I refresh the page however, because the server knows nothing after the hashtag, I am brought back to /me/collection1 instead of the intended /me/collection2.
What is a workaround for this problem in browsers that don't have pushstate?
You could do a check on initial page load and see if there is a hashtag and then do a redirection. Something similar to this:
window.onload = function(){
if (window.location.hash){
window.location.replace("...root url..." + window.location.hash);
}
};
Not the cleanest solution as it will cause a redirect whenever someone lands on a link with a hashtag but it will give you the result you're looking for.
If using the current Chrome, Firefox, and Safari, when switching between
http://www.facebook.com/my_name
http://www.facebook.com
The side panel for feed and chat, and any chat box actually stays. I thought when the URL changes, the page has to refresh as a whole, but obviously, this is not the case here. How is that done?
On IE 9, the URL actually became http://www.facebook.com/#! and using the "hash" to do ajax without refreshing the page, which is more understandable.
You can change the URL and page history from javascript without actually reloading the page.
See this answer on another question.
Note, that if you type the new URL by yourself and press enter the whole page reloads.
this might be the internal linking in the webpage with hidden DIVs with IDs and onClick those Hidden DIVs get visible with javascript and with AJAX content is loaded it will be a good if you browse the site disabling javascipt
With JQuery Mobile and MVC3 ASP.NET, on an iPad, created a home screen bookmark.
The app pulls up with no problems, it does not show safari's bar.
I login to my app and click a link, THE LINK OPENS SAFARI, NOT INTENDED.
My question is how to prevent the clicked link from opening outside of my bookmarked app?
I've tried:
$(document).bind("pageinit", function () {
$("a").click(function (e) {
e.preventDefault();
$.mobile.changePage($(this).attr('href'));
});
});
The code above seems like it should work based on the docs from jquery mobile.
When I click the link/button the link/button highlights but no error or page load.
Also, another question is why when I leave the app and come back the session dies?
iOS will treat links where you have stipulated data-ajax="false" as a link that should be opened by Safari. I had the same problem in my MVC site that is using jQueryMobile. I found this post very helpful and the following piece of code works very well in my application.
$("a[data-ajax='false']").live("click", function (event) {
if (this.href) {
event.preventDefault();
location.href = this.href;
return false;
}
});
Is this webpage you are linking to being packaged with the app? You need to do so. The app cannot find it and goes out to the browser.
The code itself is fine.
http://jsfiddle.net/m35BU/5/
Session variables are stored on a server...are you talking about a javascript cookie?
If so, unless you set an expiration date for the cookie (mktime()+3600*7 for 7 days) or whatever, it will expire when the app is closed.