Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 1681 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     PHP and MySQL :

My 2nd simple question of the day. (Java question)

Thread title: My 2nd simple question of the day. (Java question)
Closed Thread    
    Thread tools Search this thread Display Modes  
10-06-2005, 09:37 PM
#1
Stan is offline Stan
Status: Member
Join date: Aug 2005
Location:
Expertise:
Software:
 
Posts: 269
iTrader: 0 / 0%
 

Stan is on a distinguished road

Send a message via AIM to Stan

  Old  My 2nd simple question of the day. (Java question)

Can I save my few little javascripts into one .js file and link it like i do css files?

i have a preloading image script and a netscape browser fix, could i just put them into 1 .js file or do they have to be in seperate ones?

If this is possible, i want to do it to keep the actual code one views as neat and
minimal as possible


thanks in advance

10-06-2005, 11:20 PM
#2
Salathe is offline Salathe
Salathe's Avatar
Status: Community Archaeologist
Join date: Jul 2004
Location: Scotland
Expertise: Software Development
Software: vim, PHP
 
Posts: 3,820
iTrader: 25 / 100%
 

Salathe will become famous soon enough

Send a message via MSN to Salathe

  Old

Yes, you can put them into a single file without a problem.

10-06-2005, 11:24 PM
#3
Dray is offline Dray
Dray's Avatar
Status: Request a custom title
Join date: Sep 2005
Location: Texas
Expertise:
Software:
 
Posts: 1,139
iTrader: 0 / 0%
 

Dray is on a distinguished road

  Old

Yeah it is possible. Use this: <script type="text/javascript" src="ur_javascript.js"></script>

and then in the file you dont have to put the <script></script> tags...just put your code.

10-12-2005, 03:55 PM
#4
Travis is offline Travis
Status: Member
Join date: Jul 2004
Location:
Expertise:
Software:
 
Posts: 445
iTrader: 0 / 0%
 

Travis is on a distinguished road

  Old

Java and Javascript are two different things.

Closed Thread    


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed