Welcome to WebmasterWorld Guest from 54.167.86.211

Forum Moderators: open

Message Too Old, No Replies

Newbie javascript question

Need help with javascript

     

Ove

1:43 pm on Feb 14, 2003 (gmt 0)

Senior Member from SE 

WebmasterWorld Senior Member 10+ Year Member

joined:Apr 24, 2001
posts:786
votes: 0


If i got this in the top of a page before <html>
<SCRIPT SRC="http://insight_/http://www.mysite.com//ins.js"></SCRIPT>

What does this do?

/Ove

1:53 pm on Feb 14, 2003 (gmt 0)

Preferred Member

10+ Year Member

joined:Oct 4, 2000
posts:446
votes: 0


Should load in a javascript file to be used. Notice the difference between Javascript and Java. They are not the same! (It's like comparing Esperanto with English...)

Ove

1:55 pm on Feb 14, 2003 (gmt 0)

Senior Member from SE 

WebmasterWorld Senior Member 10+ Year Member

joined:Apr 24, 2001
posts:786
votes: 0


Ok its the same to me :-)

Could it be bad to have it? for the se's or does it matter at all

/Ove

2:01 pm on Feb 14, 2003 (gmt 0)

Preferred Member

10+ Year Member

joined:Oct 4, 2000
posts:446
votes: 0


> Ok its the same to me :-)

Please don't say that. I had a boss who did. Made him look very clueless when he kept confusing the to. Pity I wasn;t contract, then I would have charged him as a Java developer, rather than as Javascript one.

> Could it be bad to have it? for the se's or does it matter at all

For searchengines, its actually better to import the source from a seperate file. This keeps your html files smaller (faster download) and removes obsuring javascript code from the html file. Javascript may confuse some spiders.

It also makes life easier for human developers.

Ove

2:11 pm on Feb 14, 2003 (gmt 0)

Senior Member from SE 

WebmasterWorld Senior Member 10+ Year Member

joined:Apr 24, 2001
posts:786
votes: 0


Ok iam sorry i installed some cd from Nielsen Nettrading some stat prog and i see i got that line for every site i visiting hehe you learn somthing every day neilsen is logging me :-)

/Ove

2:15 pm on Feb 14, 2003 (gmt 0)

Preferred Member

10+ Year Member

joined:Oct 4, 2000
posts:446
votes: 0


No problem.... It can be confusing (I wasn't meaning to flame, just point out the difference before someone who isn't so nice does...)

Ove

2:18 pm on Feb 14, 2003 (gmt 0)

Senior Member from SE 

WebmasterWorld Senior Member 10+ Year Member

joined:Apr 24, 2001
posts:786
votes: 0


Yeah no problems

Thanks anyway i will read some books of it

/Ove