Community Forums › Forums › Archived Forums › General Discussion › Generated Javascript elements just disappeared?
Tagged: javascript disappearing
- This topic has 7 replies, 4 voices, and was last updated 8 years, 10 months ago by mikemdg.
-
AuthorPosts
-
June 9, 2015 at 7:34 am #155565mikemdgMember
I have two websites with very similar setups (non-genesis) that I'm helping someone with.
For some reason on both sites, just out of the blue it seems some generated javascript elements are not loading.One is an email sign up form from a 3rd party (AWeber) which is a javascript snippet that just produces the sign up form on your page. The second one is a checkout form generated by "Membermouse" which has a "buy now" and a "Paypal" button to checkout with... but the Paypal button is not showing up (also generated with javascript.
I don't think it's an issue related to the individual plugins, but possibly a call to some javascript library?? Just wondering if anyone has experienced anything similar, found a solution or have any suggestions on what to try/check?
Thanks!
June 9, 2015 at 9:04 am #155572MoodyRivieraMemberHave you tried turning off all plugins not needed for what you're trying to do, and seeing if that alleviates the problem? If that makes a difference, then you'll have to step-by-step figure out what combination of plugins is causing the trouble.
*MoodyRiviera*
June 9, 2015 at 10:51 am #155589mikemdgMemberI did that but didn't notice any difference.
One thing I forgot to mention, is that the javascript items seem to show up in Safari, but no other browser.
This was also happening with YouTube videos, when using an older Youtube Embed plugin. Any videos just started showing up as a black screen and wouldn't play - except in Safari. Upgrading to a different youtube plugin fixed that issue though.June 9, 2015 at 11:16 am #155592Erik D. SlaterMember@mikemdg (and anyone else who stumbles across this post): Always provide links ... so we can see what is really going on 🙂
Erik D. Slater: Digital Platform Consultant • LinkedInJune 9, 2015 at 11:58 am #155599mikemdgMemberSorry, that's probably helpful 🙂
There's a blank grey area on the right under "we respect your privacy...." The form is supposed to be above that. Shows up in Safari, and nothing else.
https://speedsecrets.com/June 9, 2015 at 3:36 pm #155625CraigMemberThe problem is with security. Your website uses https, but it's trying to pull in the form using plain http which is causing an error:
Mixed Content: The page at 'https://speedsecrets.com/' was loaded over HTTPS, but requested an insecure script 'http://forms.aweber.com/form/67/703585067.js'. This request has been blocked; the content must be served over HTTPS.
June 9, 2015 at 4:19 pm #155630Erik D. SlaterMember@mikemdg: Thanks for the link ... and as @craig-simpson mentioned, that's exactly what I was hoping to see ... especially when you mentioned about browser inconsistencies.
I checked to see if the https version of the AWeber JS file exists. It does ... which means you could go ahead and modify the the .js link from http to https. But if you do that, you might as well simply remove the http part altogether (to make it protocol-relative), i.e. change
js.src = "http://forms.aweber.com/form/67/703585067.js";
tojs.src = "//forms.aweber.com/form/67/703585067.js";
. This would provide the maximum compatibility should you decide to switch back to http access in the future.However, since the code is 3rd-party, you may want to double-check with AWeber to make sure my proposal is appropriate. They may have a different way of handling access over https.
Erik D. Slater: Digital Platform Consultant • LinkedInJune 10, 2015 at 8:29 am #155721mikemdgMemberThanks very much to both of you! I was looking in the console for any errors and feel like an idiot now since I totally missed that error message. Makes total sense though and I've seen this happen before on other sites. Just surprised it popped up now as this site has been running on https for a long time now and it never happened before.
Well, off to fix it! Thanks again for your quick help!
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.