Click here to Skip to main content
14,874,239 members
Home / Discussions / JavaScript
   

JavaScript

 
QuestionUse of assignment operator inside {} Pin
captain prime30-Apr-21 1:40
Membercaptain prime30-Apr-21 1:40 
AnswerRe: Use of assignment operator inside {} Pin
Richard Deeming30-Apr-21 1:49
mveRichard Deeming30-Apr-21 1:49 
GeneralRe: Use of assignment operator inside {} Pin
captain prime30-Apr-21 18:23
Membercaptain prime30-Apr-21 18:23 
QuestionMulti select with Id:Value init issue - Tabulator.js (Oli Folkerd) Pin
Member 105369227-Apr-21 23:38
MemberMember 105369227-Apr-21 23:38 
QuestionNode express.js API slow response on first time request Pin
Member 1395114022-Apr-21 1:36
MemberMember 1395114022-Apr-21 1:36 
QuestionHelp Pin
fielle14-Apr-21 22:17
Memberfielle14-Apr-21 22:17 
AnswerRe: Help Pin
Richard Deeming14-Apr-21 22:51
mveRichard Deeming14-Apr-21 22:51 
Question8yr JS now giving me console error in FF and CHROME Pin
Member 1514660811-Apr-21 9:07
MemberMember 1514660811-Apr-21 9:07 
Hello,

I am using a JS sniplet code from the web that is 8yr old or so and it is now giving me a console error in FF dev tools. DOMException: Permission denied to access property "frameElement" on cross-origin object...

I am using this code to inject a css style sheet into twitter so it can be styled on my website here.

Fantasy Football: Waterboys[^]

The code origin is found here.
GitHub - kevinburke/customize-twitter-1.1: Add your own custom CSS to modify the Twitter Embeddable Widget[^]

I dont have much expertise in JS and was trying to see if this error is something i will have to live with or the JS file can tweaked with newer code to work around this error and display properly with the css injection?

Of course I am always looking for a better mouse trap to achieve this goal if things have changed with newer coding etc...

MY CODE
<table id="nfltweets" class="report"><caption><span>NFL Tweets</span></caption><tr><td>

<!-- TWITTER -->
<script src="//dagrafixdesigns.com/scripts/twitter.js" type="text/javascript">
</script>
<script>
var options = {
    "url": "//dagrafixdesigns.com/Images/2008/DA_2019/zSticks_15387/WB_Twitter.css"
};
CustomizeTwitterWidget(options);
</script>


<a class="twitter-timeline" 
    data-chrome="noheader noborders transparent nofooter noscrollbar"
    data-link-color="#117dff"
    width="100%" height="600"
    data-theme="dark"
    data-dnt="true"
    data-widget-id="344811004590424064"
    href="//twitter.com/DA_Sticks/lists/dagrafix?ref_src=twsrc%5Etfw"></a>


<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'https':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>


</td>
</tr>
</table>


Thanks for all feedback and help.
-Stix
AnswerRe: 8yr JS now giving me console error in FF and CHROME Pin
Richard Deeming11-Apr-21 21:29
mveRichard Deeming11-Apr-21 21:29 
GeneralRe: 8yr JS now giving me console error in FF and CHROME Pin
Member 1514660812-Apr-21 3:00
MemberMember 1514660812-Apr-21 3:00 
GeneralRe: 8yr JS now giving me console error in FF and CHROME Pin
Richard Deeming12-Apr-21 3:09
mveRichard Deeming12-Apr-21 3:09 
GeneralRe: 8yr JS now giving me console error in FF and CHROME Pin
Member 1514660812-Apr-21 3:14
MemberMember 1514660812-Apr-21 3:14 
GeneralRe: 8yr JS now giving me console error in FF and CHROME Pin
Richard Deeming12-Apr-21 3:39
mveRichard Deeming12-Apr-21 3:39 
GeneralRe: 8yr JS now giving me console error in FF and CHROME Pin
Member 1514660812-Apr-21 4:00
MemberMember 1514660812-Apr-21 4:00 
QuestionKendo UI for jQuery Combobox noDataTemplate Not Loading Pin
Hypermommy5-Apr-21 9:35
MemberHypermommy5-Apr-21 9:35 
Questionquirks with use of Audio() Pin
Derell Licht31-Mar-21 16:03
professionalDerell Licht31-Mar-21 16:03 
QuestionBizarre JSON parse problem Pin
intoittendenz28-Mar-21 23:27
Memberintoittendenz28-Mar-21 23:27 
AnswerRe: Bizarre JSON parse problem Pin
Richard Deeming29-Mar-21 0:36
mveRichard Deeming29-Mar-21 0:36 
QuestionCreating a JSON body payload in plain JavaScript Pin
jkirkerx27-Mar-21 9:46
professionaljkirkerx27-Mar-21 9:46 
AnswerRe: Creating a JSON body payload in plain JavaScript [solved] Pin
jkirkerx27-Mar-21 10:52
professionaljkirkerx27-Mar-21 10:52 
GeneralRe: Creating a JSON body payload in plain JavaScript [solved] Pin
intoittendenz29-Mar-21 1:01
Memberintoittendenz29-Mar-21 1:01 
QuestionCannot figure out what code lines does mean ... Pin
Member 1501261727-Mar-21 0:01
MemberMember 1501261727-Mar-21 0:01 
AnswerRe: Cannot figure out what code lines does mean ... Pin
Member 1501261727-Mar-21 0:03
MemberMember 1501261727-Mar-21 0:03 
AnswerRe: Cannot figure out what code lines does mean ... Pin
Peter_in_278027-Mar-21 0:54
professionalPeter_in_278027-Mar-21 0:54 
GeneralRe: Cannot figure out what code lines does mean ... Pin
Member 1501261727-Mar-21 21:40
MemberMember 1501261727-Mar-21 21:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.