WPIntell

Source evidence

script not shown on website

Code Embed · support · 2022-07-12T09:10:00+00:00

mixedsentiment
mediumseverity
0.85relevance
8replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

7 / 35 rows with source links

20.0% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

28 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
v3nd0 resolved
Hello, in the beginning I want to notice that I am not programmer and with wordpress I am working just a week 🙂 We are making event sport result and i have script to integrate in page but this works only on computer where I am editing page (wordpress) and on other devices is show just spinning wheel. code for integration is for example: <div id="divRRPublish" class="RRPublish"></div> <script type="text/javascript" src="https://my.raceresult.com/RRPublish/load.js.php?lang=en"></script> <script type="text/javascript"> <!-- var rrp=new RRPublish(document.getElementById("divRRPublish"), 210488, "results"); rrp.ShowTimerLogo=true; rrp.ShowInfoText=false; --> </script> I do not know what is wrong. Please help me how to do it correctly. Thank You The page I need help with: [ log in to see the link] Hi, Can you confirm that the script you embedded on your page still matches the one above? Whereas you’re using <!-- and --> above, I’m seeing // in both instances when it’s displayed on your page. Here are screenshots from page: page in edit and this is what I want and see on my browser: Screen This reply was modified 3 years, 10 months ago by v3nd0 . Okay, so it appears WordPress itself is transforming those lines. Without a big think and re-write there’s nothing immediate I can do about that. However… I’m not sure why those lines are there anyway. <!-- and --> are used to indicate HTML comments, but this is JavaScript. What happens if you remove those 2 lines? i.e. it looks like this… <div id="divRRPublish" class="RRPublish"></div> <script type="text/javascript" src="https://my.raceresult.com/RRPublish/load.js.php?lang=en"></script> <script type="text/javascript"> var rrp=new RRPublish(document.getElementById("divRRPublish"), 210488, "results"); rrp.ShowTimerLogo=true; rrp.ShowInfoText=false; </script> Without any changes. On mine computer still display as before and on others devices still spinning wheel. I am so confused … Do you know what the difference is between your computer and others? Are you using different browsers, for example? Try visiting your website in Private/Incognito and see if it still works. MacOS : opera – logged as administrator works safari – without logging not working IOS: safari, opera – not logged not working Win: opera – not logged not working edge – logged as administrator and work looks like administrator/visitor issue? Yeah, so looks as if being logged in makes a difference here. At this point, we must part ways. This is not related to the plugin but the code which you’re trying to embed and I can’t assist with that. Your best bet here is to go back to wherever you got that code from to ask for assistance – I’m guessing it’s clashing in some way with your site set-up. Looking at the JS console in my browser I’m seeing this error, for example, which appears related to that script… [Error] TypeError: $.getJSON is not a function. (In '$.getJSON(rrp_server+"/RRPublish/data/config.php",{eventid:eventid,page:page,noVisitor:getCookie("ys"+eventid)})', '$.getJSON' is undefined) So after additional searching I have to turn off under Divi – Performance – Enqueue jQuery Compatibility Script. Just for future if someone will have similar issue. Thank a lot for effort and spent time.

Comments

8 shown
David Artiss 2022-07-12T09:16:00+00:00

Hi, Can you confirm that the script you embedded on your page still matches the one above? Whereas you’re using <!-- and --> above, I’m seeing // in both instances when it’s displayed on your page.

v3nd0 2022-07-12T09:25:00+00:00

Here are screenshots from page: page in edit and this is what I want and see on my browser: Screen This reply was modified 3 years, 10 months ago by v3nd0 .

David Artiss 2022-07-12T09:36:00+00:00

Okay, so it appears WordPress itself is transforming those lines. Without a big think and re-write there’s nothing immediate I can do about that. However… I’m not sure why those lines are there anyway. <!-- and --> are used to indicate HTML comments, but this is JavaScript. What happens if you remove those 2 lines? i.e. it looks like this… <div id="divRRPublish" class="RRPublish"></div> <script type="text/javascript" src="https://my.raceresult.com/RRPublish/load.js.php?lang=en"></script> <script type="text/javascript"> var rrp=new RRPublish(document.getElementById("divRRPublish"), 210488, "results"); rrp.ShowTimerLogo=true; rrp.ShowInfoText=false; </script>

v3nd0 2022-07-12T09:57:00+00:00

Without any changes. On mine computer still display as before and on others devices still spinning wheel. I am so confused …

David Artiss 2022-07-12T10:41:00+00:00

Do you know what the difference is between your computer and others? Are you using different browsers, for example? Try visiting your website in Private/Incognito and see if it still works.

v3nd0 2022-07-12T10:59:00+00:00

MacOS : opera – logged as administrator works safari – without logging not working IOS: safari, opera – not logged not working Win: opera – not logged not working edge – logged as administrator and work looks like administrator/visitor issue?

David Artiss 2022-07-12T11:09:00+00:00

Yeah, so looks as if being logged in makes a difference here. At this point, we must part ways. This is not related to the plugin but the code which you’re trying to embed and I can’t assist with that. Your best bet here is to go back to wherever you got that code from to ask for assistance – I’m guessing it’s clashing in some way with your site set-up. Looking at the JS console in my browser I’m seeing this error, for example, which appears related to that script… [Error] TypeError: $.getJSON is not a function. (In '$.getJSON(rrp_server+"/RRPublish/data/config.php",{eventid:eventid,page:page,noVisitor:getCookie("ys"+eventid)})', '$.getJSON' is undefined)

v3nd0 2022-07-12T12:10:00+00:00

So after additional searching I have to turn off under Divi – Performance – Enqueue jQuery Compatibility Script. Just for future if someone will have similar issue. Thank a lot for effort and spent time.