28, May 2012

External JS - webmaster forum

 
Webdigity webmaster forums
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  JavaScript
Topic: External JS
« previous next »
Pages: [1] Print
Instabuck - The easy way to sell digital products online

Author Topic: External JS  (Read 2255 times)
Der Führer
I feel pretty...
***
Gender: Male
Posts: 184
481 credits
Members referred : 0



« on: Jul 11, 2006, 10:58:07 am »

ok so I have another issue. I can't seem to get this sites script to work when useing external javascript.
http://www.dynamicdrive.com/dynamicindex16/disableenter.htm

I am useing this code to get it.
Code:
<head>
<script src="external.js" language="Javascript"></script>
</head>

Any ideas?
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #1 on: Jul 11, 2006, 11:00:26 am »

You should check if the path of the file is right.

Also have in mind that the right code is :

Code:
<head>
<script src="external.js" type="text/javascript"></script>
</head>

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Der Führer
I feel pretty...
***
Gender: Male
Posts: 184
481 credits
Members referred : 0



« Reply #2 on: Jul 11, 2006, 11:07:21 am »

I edited it to the proper script and still no go. both files are in the same folder (on my desktop).
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #3 on: Jul 11, 2006, 11:10:06 am »

Try this :

Code:
<head>
<script type="text/javascript" src="./external.js"></script>
</head>

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Der Führer
I feel pretty...
***
Gender: Male
Posts: 184
481 credits
Members referred : 0



« Reply #4 on: Jul 11, 2006, 11:12:13 am »

nope  Cry
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #5 on: Jul 11, 2006, 11:13:52 am »

Maybe the script that you've included is not intended to be included.

Try to put the whole script in your page and see if it works

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Der Führer
I feel pretty...
***
Gender: Male
Posts: 184
481 credits
Members referred : 0



« Reply #6 on: Jul 11, 2006, 11:17:47 am »

see its wierd because it will work if I put the javascript directly on the html page, but doesn't work when I use external. So Im thinking that Im doing it wrong.
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #7 on: Jul 11, 2006, 11:24:28 am »

see its wierd because it will work if I put the javascript directly on the html page, but doesn't work when I use external. So Im thinking that Im doing it wrong.

Propably the script uses some properties that are not global in a seperate file.

If this is for the interestial pop up code, it will not work in an include(I tried it too)

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Der Führer
I feel pretty...
***
Gender: Male
Posts: 184
481 credits
Members referred : 0



« Reply #8 on: Jul 11, 2006, 11:31:11 am »

I can't get any of the form effect scripts on that site to work with external javascript. Thats wierd, probably should just do it how they say to lol.
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=3228
Tags : javascript html pop up Bookmark this thread : Digg Del.icio.us Dzone more....

Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  JavaScript
Topic: External JS
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 12:06:11 pm





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!






Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2012 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.