rejetto forum
Software => HFS ~ HTTP File Server => Topic started by: TSG on October 28, 2006, 01:11:51 PM
-
I have a feature request, although it may have already been stated.
It would be nice if you could define a javascript page like you do with a style page [style] so you would be able to go [javascript] and have all of them inside this.
They would then probably be linked with:
<script src="%javascript%" language="javascript" type="text/javascript" />
</script>
or
<script language="javascript" type="text/javascript">\n%javascript%\n</script>
I dont know much about doing this, but its just an idea that popped into my head.
-
Also viewing other webpages i have made on the HFS program, i find hfs can run or import an external css page for these sites, why is this, i think an external javascript page can run when linked, but css just wont do it.
<link rel="stylesheet" type="text/css" href="style.css" /> that is the code they use.
-
1. put all your code in a file called code.js
2. add this file to the VFS
3. make it invisible
4. use <script src='code.js' etc etc
-
So basically even hosting a .css file on the server say, style.css, it should run just the same as a .js file would if hosted within the VFS, Flynsarmy told me about this, but its nice to have a sticky entirely for discussing javascript. :)
-
a single thread for js discussing is not enough, i think.
if many threads come up, i will open a specific forum.