rejetto forum

[javascript]

TSG · 5 · 2032

0 Members and 1 Guest are viewing this topic.

Offline TSG

  • Operator
  • Tireless poster
  • *****
    • Posts: 1934
    • View Profile
    • RAWR-Designs
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.


Offline TSG

  • Operator
  • Tireless poster
  • *****
    • Posts: 1934
    • View Profile
    • RAWR-Designs
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.
« Last Edit: October 28, 2006, 02:54:59 PM by That_Stevens_Guy »


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13308
    • View Profile
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


Offline TSG

  • Operator
  • Tireless poster
  • *****
    • Posts: 1934
    • View Profile
    • RAWR-Designs
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. :)


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13308
    • View Profile
a single thread for js discussing is not enough, i think.
if many threads come up, i will open a specific forum.