<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Separate CSS and JS files not working in HTML Form in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Separate-CSS-and-JS-files-not-working-in-HTML-Form/m-p/935185#M367701</link>
    <description>&lt;P&gt;Yes, it shows this error. But I don't know what this MIME is.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Error-Form-SAS.png" style="width: 503px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/98259iE81A0DB70D6B8A5D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Error-Form-SAS.png" alt="Error-Form-SAS.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Jul 2024 16:29:36 GMT</pubDate>
    <dc:creator>arthurdpereira</dc:creator>
    <dc:date>2024-07-09T16:29:36Z</dc:date>
    <item>
      <title>Separate CSS and JS files not working in HTML Form</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Separate-CSS-and-JS-files-not-working-in-HTML-Form/m-p/934860#M367575</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I created a form in SAS Viya V.03.05 using Job Execution (Studio), but when I place the style.css and script.js files separate from the HTML code, neither of them work.&lt;/P&gt;&lt;P&gt;Even using a library like Bootstrap does not work.&lt;/P&gt;&lt;P&gt;Am I doing something wrong, or does SAS not execute files outside the form?&lt;/P&gt;&lt;P&gt;I tried the following methods:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;/SASJobExecution/?_program=/Public/JES/script.js
/SASJobExecution/?_program=/Public/JES/style.css&lt;/PRE&gt;&lt;PRE&gt;&amp;lt;link href="/SASJobExecution/?_program=/Public/JES/style.css" type="text/css" rel="stylesheet"&amp;gt;
&amp;lt;link href="style.css" type="text/css" rel="stylesheet"&amp;gt;&lt;/PRE&gt;&lt;PRE&gt;&amp;lt;script src="/SASJobExecution/?_program=/Public/JES/script.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script src="script.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;/PRE&gt;&lt;P&gt;Could someone please help me?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 23:12:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Separate-CSS-and-JS-files-not-working-in-HTML-Form/m-p/934860#M367575</guid>
      <dc:creator>arthurdpereira</dc:creator>
      <dc:date>2024-07-05T23:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: Separate CSS and JS files not working in HTML Form</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Separate-CSS-and-JS-files-not-working-in-HTML-Form/m-p/934869#M367577</link>
      <description>&lt;P&gt;Have you tried this:&lt;/P&gt;
&lt;PRE&gt;&amp;lt;link href="/Public/JES/style.css" type="text/css" rel="stylesheet"&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 06 Jul 2024 07:27:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Separate-CSS-and-JS-files-not-working-in-HTML-Form/m-p/934869#M367577</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2024-07-06T07:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: Separate CSS and JS files not working in HTML Form</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Separate-CSS-and-JS-files-not-working-in-HTML-Form/m-p/934872#M367579</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;when I place the style.css and script.js files separate from the HTML code, neither of them work.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If that's an HTML page with existing css and js files, have you tried adding the file path?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&amp;lt;link href="/Public/JES/style.css" type="text/css" rel="stylesheet"&amp;gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jul 2024 10:53:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Separate-CSS-and-JS-files-not-working-in-HTML-Form/m-p/934872#M367579</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2024-07-06T10:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: Separate CSS and JS files not working in HTML Form</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Separate-CSS-and-JS-files-not-working-in-HTML-Form/m-p/934873#M367580</link>
      <description>&lt;P&gt;No, it doesn't work either. I had already tried that.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jul 2024 14:44:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Separate-CSS-and-JS-files-not-working-in-HTML-Form/m-p/934873#M367580</guid>
      <dc:creator>arthurdpereira</dc:creator>
      <dc:date>2024-07-06T14:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: Separate CSS and JS files not working in HTML Form</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Separate-CSS-and-JS-files-not-working-in-HTML-Form/m-p/934874#M367581</link>
      <description>&lt;P&gt;No, it's not an .html file, but rather HTML written in the 'HTML form'. Do I need to create an HTML file and "link" to it?&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jul 2024 14:46:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Separate-CSS-and-JS-files-not-working-in-HTML-Form/m-p/934874#M367581</guid>
      <dc:creator>arthurdpereira</dc:creator>
      <dc:date>2024-07-06T14:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: Separate CSS and JS files not working in HTML Form</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Separate-CSS-and-JS-files-not-working-in-HTML-Form/m-p/934875#M367582</link>
      <description>&lt;P&gt;You must place the stylesheet and scriptfile in a location from where the web server (apache/httpd, not the web application server) can serve them, and use the corresponding web path as your href. Keep in mind that the browser is the place where everything has to come together.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jul 2024 14:50:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Separate-CSS-and-JS-files-not-working-in-HTML-Form/m-p/934875#M367582</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2024-07-06T14:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: Separate CSS and JS files not working in HTML Form</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Separate-CSS-and-JS-files-not-working-in-HTML-Form/m-p/934877#M367584</link>
      <description>I tested it this other way and it still didn't work.</description>
      <pubDate>Sat, 06 Jul 2024 14:51:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Separate-CSS-and-JS-files-not-working-in-HTML-Form/m-p/934877#M367584</guid>
      <dc:creator>arthurdpereira</dc:creator>
      <dc:date>2024-07-06T14:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: Separate CSS and JS files not working in HTML Form</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Separate-CSS-and-JS-files-not-working-in-HTML-Form/m-p/934879#M367585</link>
      <description>Thank you for the answer. That makes sense. How do I upload the file to the Apache/httpd server? Is there a reference link I can follow?</description>
      <pubDate>Sat, 06 Jul 2024 14:56:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Separate-CSS-and-JS-files-not-working-in-HTML-Form/m-p/934879#M367585</guid>
      <dc:creator>arthurdpereira</dc:creator>
      <dc:date>2024-07-06T14:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: Separate CSS and JS files not working in HTML Form</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Separate-CSS-and-JS-files-not-working-in-HTML-Form/m-p/935068#M367646</link>
      <description>&lt;P&gt;Check out the section "Including a File in an HTML Form" in&lt;/P&gt;&lt;P&gt;&lt;A href="https://documentation.sas.com/api/docsets/jobexecug/v_002/content/jobexecug.pdf?locale=en" target="_blank"&gt;&amp;nbsp; https://documentation.sas.com/api/docsets/jobexecug/v_002/content/jobexecug.pdf?locale=en&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See if it works in V3.5.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 22:08:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Separate-CSS-and-JS-files-not-working-in-HTML-Form/m-p/935068#M367646</guid>
      <dc:creator>DeMer</dc:creator>
      <dc:date>2024-07-08T22:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: Separate CSS and JS files not working in HTML Form</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Separate-CSS-and-JS-files-not-working-in-HTML-Form/m-p/935177#M367697</link>
      <description>&lt;P&gt;I tried to put everything in 'Including a File in an HTML Form', but it still didn't work&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 16:18:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Separate-CSS-and-JS-files-not-working-in-HTML-Form/m-p/935177#M367697</guid>
      <dc:creator>arthurdpereira</dc:creator>
      <dc:date>2024-07-09T16:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: Separate CSS and JS files not working in HTML Form</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Separate-CSS-and-JS-files-not-working-in-HTML-Form/m-p/935181#M367700</link>
      <description>&lt;P&gt;Was there anything in the browser F12 console log?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 16:25:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Separate-CSS-and-JS-files-not-working-in-HTML-Form/m-p/935181#M367700</guid>
      <dc:creator>DeMer</dc:creator>
      <dc:date>2024-07-09T16:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: Separate CSS and JS files not working in HTML Form</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Separate-CSS-and-JS-files-not-working-in-HTML-Form/m-p/935185#M367701</link>
      <description>&lt;P&gt;Yes, it shows this error. But I don't know what this MIME is.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Error-Form-SAS.png" style="width: 503px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/98259iE81A0DB70D6B8A5D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Error-Form-SAS.png" alt="Error-Form-SAS.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 16:29:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Separate-CSS-and-JS-files-not-working-in-HTML-Form/m-p/935185#M367701</guid>
      <dc:creator>arthurdpereira</dc:creator>
      <dc:date>2024-07-09T16:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: Separate CSS and JS files not working in HTML Form</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Separate-CSS-and-JS-files-not-working-in-HTML-Form/m-p/935188#M367702</link>
      <description>&lt;P&gt;Means that the CSS file has been stored in the File Service with a content type that is not text/css.&lt;/P&gt;&lt;P&gt;I think the easiest way in V3.5 is to import the files using SAS Drive.&amp;nbsp; It will set the MIME type based on the file type in the file name e.g.&amp;nbsp; myfile.css.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 16:42:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Separate-CSS-and-JS-files-not-working-in-HTML-Form/m-p/935188#M367702</guid>
      <dc:creator>DeMer</dc:creator>
      <dc:date>2024-07-09T16:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: Separate CSS and JS files not working in HTML Form</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Separate-CSS-and-JS-files-not-working-in-HTML-Form/m-p/935208#M367712</link>
      <description>&lt;P&gt;I tried every way, with and without the extension name; putting '/SASJobExecution?_FILE=/Public/JES/style.css'; '/SASJobExecution?_FILE=/Public/JES/style'; 'files/files/4341684f-d65e-4760-af63-5b8123b0a370/content'', but I couldn't find it in any of them...&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Error-Form-SAS-02.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/98262i775A2354ACA84223/image-size/large?v=v2&amp;amp;px=999" role="button" title="Error-Form-SAS-02.png" alt="Error-Form-SAS-02.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The strangest thing is that SAS recognizes the file format, but it still gives this type of error.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 18:08:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Separate-CSS-and-JS-files-not-working-in-HTML-Form/m-p/935208#M367712</guid>
      <dc:creator>arthurdpereira</dc:creator>
      <dc:date>2024-07-09T18:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: Separate CSS and JS files not working in HTML Form</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Separate-CSS-and-JS-files-not-working-in-HTML-Form/m-p/935210#M367713</link>
      <description>&lt;P&gt;Can you see the file characteristics in a browser with a URL like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A href="http://yoursystem/files/files/4341684f-d65e-4760-af63-5b8123b0a370" target="_blank"&gt;http://yoursystem/files/files/4341684f-d65e-4760-af63-5b8123b0a370&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 18:21:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Separate-CSS-and-JS-files-not-working-in-HTML-Form/m-p/935210#M367713</guid>
      <dc:creator>DeMer</dc:creator>
      <dc:date>2024-07-09T18:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: Separate CSS and JS files not working in HTML Form</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Separate-CSS-and-JS-files-not-working-in-HTML-Form/m-p/935213#M367714</link>
      <description>&lt;P&gt;Yeap, it shows it this way:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Error-Form-SAS-03.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/98263i9ED14DB23F67CE3D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Error-Form-SAS-03.png" alt="Error-Form-SAS-03.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 18:39:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Separate-CSS-and-JS-files-not-working-in-HTML-Form/m-p/935213#M367714</guid>
      <dc:creator>arthurdpereira</dc:creator>
      <dc:date>2024-07-09T18:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: Separate CSS and JS files not working in HTML Form</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Separate-CSS-and-JS-files-not-working-in-HTML-Form/m-p/935218#M367717</link>
      <description>&lt;P&gt;Looks like the content type is application/octet-stream.&amp;nbsp; Need it to be text/css.&lt;/P&gt;&lt;P&gt;If you haven't already, I think you need to reload your file using SAS Drive to get it set correctly.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 19:26:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Separate-CSS-and-JS-files-not-working-in-HTML-Form/m-p/935218#M367717</guid>
      <dc:creator>DeMer</dc:creator>
      <dc:date>2024-07-09T19:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: Separate CSS and JS files not working in HTML Form</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Separate-CSS-and-JS-files-not-working-in-HTML-Form/m-p/935237#M367725</link>
      <description>&lt;P&gt;DeMer, thanks for your help. You gave me more determination to keep insisting. And I did it.&lt;/P&gt;
&lt;P&gt;I still don't know why, but the problem occurs that the .css file needs to have the &amp;lt;style&amp;gt;&amp;lt;/style&amp;gt; tag in the file. Example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&amp;lt;style&amp;gt;
	body {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		height: 100vh;
		background-color: #181c35;
		font-family: Arial, sans-serif;
	}
	/* Your CSS styles */
&amp;lt;/style&amp;gt;&lt;/PRE&gt;
&lt;P&gt;This way, the link created from the SASDrive URI recognizes as CSS:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&amp;lt;link href="/files/files/########/content" type="text/css" rel="stylesheet"&amp;gt;&lt;/PRE&gt;
&lt;P&gt;Thanks guys for all the support!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 21:08:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Separate-CSS-and-JS-files-not-working-in-HTML-Form/m-p/935237#M367725</guid>
      <dc:creator>arthurdpereira</dc:creator>
      <dc:date>2024-07-09T21:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: Separate CSS and JS files not working in HTML Form</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Separate-CSS-and-JS-files-not-working-in-HTML-Form/m-p/935248#M367728</link>
      <description>&lt;P&gt;The &amp;lt;style&amp;gt; tags being required is very odd, and maybe not as expected really, but good on you on insisting and finding a solution.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2024 02:03:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Separate-CSS-and-JS-files-not-working-in-HTML-Form/m-p/935248#M367728</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2024-07-10T02:03:31Z</dc:date>
    </item>
  </channel>
</rss>

