Attaching javascript files - Post ID...

User 2291446 Photo


Registered User
6 posts

All-

Is there a simple way to attach javascript files to SCCPro shops? What I mean is that can I add the .js file to an export folder so that it can be referenced with a relative versus absolute address? Or do I need to do all of the heavy lifting of FTPing the file and then setting up the ref in the HTML?

I really would like to be able to preview with the javascript before I upload. Can SCCPro manage this without me having to change all of the .js address references?

Jimmy D.
User 187934 Photo


Senior Advisor
20,242 posts

Any custom HTML that you add to your shop that references files outside the application will have to be ftp'd by you.:) It's actually pretty easy to ftp.;)
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2291446 Photo


Registered User
6 posts

Thank you for your response, Rolly.

So what your saying is that I must first FTP (upload) the .js file to my server and then use an absolute reference to attach it to the SCCPro HTML?

How to I insert HTML in the Shop Home (or any other page's) header? In order to use the .js file I need to attach it to the header before I reference it anywhere else in the <body>.

(BTW...I know hoe to FTP, I just find it awkward, as a designer - not a coder, to have to keep switching back and forth between so many different programs - SCDPro, SCCPro, FTP software, cPanel, etc.)

Thank you
Jimmy D
User 187934 Photo


Senior Advisor
20,242 posts

You use the HTML tool that's provided in SCCP or just type the brackets yourself and place your script code between them.
[[[Your code goes here]]]
You can use relative links for your code also as long as you understand the structure of your site. I always recommend using absolute for testing then changing them to relative after you know your scripts work. Take a look at my CC test shop. I make use of scripts like jquery and php. There's really not many restrictions. You just need to think outside the shop now and then.:lol:
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.