0

In other words, can I use a typical IDE like WebStorm, create some HTML, Javascript and CSS, then stick it on my Sharepoint site and will it work?

Here is a sample of what I'm trying:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Test Sharepoint App</title>
    <script type="text/javascript" language="JavaScript">
        (function() {
            Alert("Javascript works!");
        })();
    </script>
</head>
<body onload="Alert('Testing Javascript')">
    This is a test3 application with JS.
</body>
</html>

Neither of the alerts fire.

5
  • 1
    I never touch Visual studio, mainly use WebStorm, note the deployment of your files you have to take care of yourself. For CSR development check iCSR ans especially the Cisar Chrome Extension Be sure to watch the may 4th webinar on SharePoints future Apr 27 '16 at 13:31
  • Is CSR the reason my javascript isn't working? Apr 27 '16 at 14:43
  • Just a note that due to licensing, you can't use SPO for public-facing internet sites. Also, while it might be possible to make a plain old html site within SPO, it definitely isn't the best tool for the job - better off just using a normal web hosting service, unless for whatever reason you have no other choice than to use SPO.
    – Hutch
    Apr 27 '16 at 15:30
  • It's for our internal company which uses SPO for document storage. We rely 100% on spreadsheets and such. I want to replace one of the more complex sheets with a web app but I'm only versed in HTML/JS/CSS and don't want to learn more SP than I have to. It would be nice to leverage lists and other integrated features eventually, but for now I'm just aiming for an HTML/JS/CSS proof of concept. Apr 27 '16 at 15:32
  • CSR is an additional technique to overwrite how SharePoint displays content. If you do not apply CSR it can not break anything else. Apr 27 '16 at 17:51
1

Yes, it is possible to create custom HTML, Javascript and CSS in your SharePoint site.

A tool called SharePoint Designer is also available that shall help you to perform this. It is suggested that rather than this IDE it would better if you would use SharePoint Designer as it is designed for SharePoint specifically.

You would be able to download this here.

Also, please keep in mind that you do not mess up with the existing structure of SharePoint while doing this custom changes.

4
  • Thanks for the quick answer. I've used Sharepoint designer and it "compiles" to an aspx file, right? I do lots of custom web dev so I'd like to stick to my IDE and platforms of choice, that's kind of the whole point. Is this possible? Apr 27 '16 at 12:59
  • Yes, it does. You could very well stick to your IDE and perform these html, css and javascript changes. Apr 27 '16 at 13:13
  • 1
    Be sure to rename all your HTML pages to .ASPX when you want to use them. Otherwise SP will try to download them. Apr 27 '16 at 13:29
  • Got the HTML working after renaming to aspx, thanks. Still can't get JS to work. Apr 27 '16 at 14:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.