How do you link to other program files in thr sanbox? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How do you link to other program files in thr sanbox?

so typically in building a program you need to link to other codes in external files. to do so you would simply reference the folder path. what is the folder path for the sandbox? for instance programming an html page with javascripting(obviously already integrated, good thinking thanks) to call a python program. if both my html pagrs and my python program are on the sandbox, and or published publicly(i intend to keep all of my codes public. open source is true freedom of information to me) what would be my folder reference for the python program?

21st Oct 2018, 3:09 PM
Charles Beason
Charles Beason - avatar
15 Answers
24th Oct 2018, 5:58 PM
Mirko Klotzsche
Mirko Klotzsche - avatar
+ 1
You can reference other program files but you need an external storage. Sololearn is not Github but it is to test your coding ideas. So what's the problem to put additional files on a dropbox account (or each other you want)?
23rd Oct 2018, 6:19 AM
Mirko Klotzsche
Mirko Klotzsche - avatar
+ 1
oh theres no problem. im new to the community and trying to get a feel for how everything works. how do you reference other files in external sources then? ive got plenty of cloud storage at my disposal. total i think google give me like 565 gigs combined between my 2 accounts
23rd Oct 2018, 9:45 AM
Charles Beason
Charles Beason - avatar
+ 1
whats the reference for the sololearn sandbox lol
24th Oct 2018, 5:51 PM
Charles Beason
Charles Beason - avatar
+ 1
oh snap. is that what shows up when you click the + and insert code?
24th Oct 2018, 10:01 PM
Charles Beason
Charles Beason - avatar
+ 1
so to answer my own question now that we have breached the communications barrier: to find the link reference to link to other programs within the sololearn cloud click the share button on your code. chose your method sharing/saving(i chose text message) and copy that link in as the url. in html for instance the <a href>.
25th Oct 2018, 12:41 PM
Charles Beason
Charles Beason - avatar
0
You need a server were you can put f.e. pictures, sound files and so on. That's the only way to use external files.
21st Oct 2018, 9:09 PM
Mirko Klotzsche
Mirko Klotzsche - avatar
0
so i cant reference other program files in the digital sandbox here in sololearn?
22nd Oct 2018, 9:57 AM
Charles Beason
Charles Beason - avatar
0
It depends on the programming language and what type of file you want to use. Here is an example for javascript: <script src='https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js'> </script> I suggest to look on public codes from other users. Besides you should start to code your own project. If problems will rise make your code public and ask the community regarding the special problem.
23rd Oct 2018, 10:10 AM
Mirko Klotzsche
Mirko Klotzsche - avatar
0
im working on my own project already. 3 actually, currently i do everything offline using ide platforms and such like netbeans, ive also been known to use google drive for on the go access, but i like the community here and wanted to share my codes on the sandbox. but the codes requires either the full folder to be uploaded for proper referencing to maintain, or me to just upload the seperate files and make the code changes for referencing where the program is at. i dont see how your script would work to reference to any file. what im meaning by reference is like <a href> where is the location i put? normally its just /blahfolder/blahfile.html or whatever
23rd Oct 2018, 9:29 PM
Charles Beason
Charles Beason - avatar
0
For me it seems that you already know that absolute references are necessary (f.e. <a/href="http://www.blahserver/blahfolder/blahfile.com>) to use external files on sololearn. So I don't understand what's actually your question?
24th Oct 2018, 2:13 PM
Mirko Klotzsche
Mirko Klotzsche - avatar
0
for instance: i have RTIC on my codes. how do i reference its file in another program? whats the href? is it /sololearn/rtic.html? whats the folder path?
24th Oct 2018, 5:53 PM
Charles Beason
Charles Beason - avatar
0
That's it but every file has it's own special key.
24th Oct 2018, 5:59 PM
Mirko Klotzsche
Mirko Klotzsche - avatar
24th Oct 2018, 10:03 PM
Charles Beason
Charles Beason - avatar
0
awesome lol
24th Oct 2018, 10:03 PM
Charles Beason
Charles Beason - avatar