rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: TSG on October 28, 2006, 01:11:51 PM

Title: [javascript]
Post 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 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.
Title: [javascript]
Post by: TSG on October 28, 2006, 01:58:24 PM
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.
Title: Re: [javascript]
Post by: rejetto on October 28, 2006, 05:25:09 PM
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
Title: Re: [javascript]
Post by: TSG on October 29, 2006, 10:42:40 AM
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. :)
Title: Re: [javascript]
Post by: rejetto on October 29, 2006, 05:32:31 PM
a single thread for js discussing is not enough, i think.
if many threads come up, i will open a specific forum.