Java Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesJava Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 13th, 2003, 08:11 AM
Goran1999 Goran1999 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: Austria
Posts: 1 Goran1999 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Problems with reading .JS file

Hi guys!

I have problem with loading external .JS file.

The file is loaded sometimes and sometimes not. P.e after refreshing the site the script sometimes works.

1st part:

<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">

var SCT_TICKER_FONT_COLOR="#000000";
var SCT_TICKER_BG_COLOR="#FF0000";
var SCT_TICKER_LINK_COLOR="#FFFF00";
var SCT_TICKER_VLINK_COLOR="#FFFF99";
var SCT_TICKER_HOVER_COLOR="#000000";
var SCT_TICKER_FONT="Arial";
var SCT_TICKER_RESSORT="";

var SCT_TICKER_HOVER_UNDERLINE="underline";
var SCT_TICKER_LINK_UNDERLINE="none";
var SCT_TICKER_FONTBOLD="bold";
var SCT_TICKER_WIDTH=650;
var SCT_TICKER_HEIGHT=20;
var SCT_TICKER_FONT_SIZE=9;
var SCT_TICKER_SPEED=8;
var SCT_TICKER_HOVER_STOP=1;
var SCT_TICKER_TRANSPARENT=0;
var SCT_TICKER_OFFSET=325;
</script>

2nd part

<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript" SRC="http://www.sportal.de/de/content/js/dlcticker.js"> </script>



What should I do in order to display it always.

Regards,
Goran1999

Reply With Quote
  #2  
Old February 13th, 2003, 07:50 PM
ngibsonau ngibsonau is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 138 ngibsonau User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
This question is in the wrong area it should have been posted to
Clientside: HTML javascript etc.

If you include the javascript from a file you must not use the <script> and </script> tags. Just remove them from the .js file!
__________________
--

ngibsonau

Reply With Quote
  #3  
Old March 20th, 2003, 04:26 AM
edwardo edwardo is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 1 edwardo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
.js not loading fast enough

Hello,

I am having the same problem.. I am trying to load an external .js file in the <script> tag, and then trying to call a function inside it using "onload" in the Body tag..

Apparently the script doesnt load quickly enough for the "onload" function to be able to call it! How do I fix this? Should I make some sort of delay script?

Thanks,

Edwardo

Reply With Quote
  #4  
Old March 20th, 2003, 04:52 AM
ishnid's Avatar
ishnid ishnid is offline
kill 9, $$;
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Sep 2001
Location: Dublin, Eire
Posts: 5,568 ishnid User rank is General 6th Grade (Above 100000 Reputation Level)ishnid User rank is General 6th Grade (Above 100000 Reputation Level)ishnid User rank is General 6th Grade (Above 100000 Reputation Level)ishnid User rank is General 6th Grade (Above 100000 Reputation Level)ishnid User rank is General 6th Grade (Above 100000 Reputation Level)ishnid User rank is General 6th Grade (Above 100000 Reputation Level)ishnid User rank is General 6th Grade (Above 100000 Reputation Level)ishnid User rank is General 6th Grade (Above 100000 Reputation Level)ishnid User rank is General 6th Grade (Above 100000 Reputation Level)ishnid User rank is General 6th Grade (Above 100000 Reputation Level)ishnid User rank is General 6th Grade (Above 100000 Reputation Level)ishnid User rank is General 6th Grade (Above 100000 Reputation Level)ishnid User rank is General 6th Grade (Above 100000 Reputation Level)ishnid User rank is General 6th Grade (Above 100000 Reputation Level)ishnid User rank is General 6th Grade (Above 100000 Reputation Level)ishnid User rank is General 6th Grade (Above 100000 Reputation Level) 
Time spent in forums: 3 Months 1 Week 4 Days 1 h 39 m 10 sec
Reputation Power: 1395
As ngibsonau said, this should be posted to the HTML/Javascript/CSS forum.
~ishnid

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > Problems with reading .JS file


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway