Skip to main content

New answers tagged

0 votes

Host a static JS-enabled webpage behind SharePoint credentials

You could create a wiki page with a Content Editor Web Part (CEWP). Then you can host your html, js, css, etc. files in the SiteAssets library. Your cewp simply points to the location of the html file ...
Luis's user avatar
  • 21
0 votes

Running a function within a .ts file that is triggered by a button inside of a separate .tsx file

If you're using tsx I'll assume this is React. You should not be mixing react code with native DOM API code. You should do this in a React way with an onclick handler.
Derek Gusoff's user avatar
  • 8,011
0 votes

Running a function within a .ts file that is triggered by a button inside of a separate .tsx file

I think part of the problem is that your button may not actually be rendered yet when the code in your .ts file is executed, so your getElementsByTagName doesn't actually find anything. In order to ...
Dylan Cristy's user avatar
  • 12.7k

Top 50 recent answers are included