SEO Scripts
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   SEO Chat ForumsOtherSEO Scripts

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 SEO Chat Forums Sponsor:
  #1  
Old February 10th, 2008, 11:53 PM
tinaceer tinaceer is offline
Contributing User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Dec 2007
Location: India
Posts: 270 tinaceer User rank is Corporal (100 - 500 Reputation Level)tinaceer User rank is Corporal (100 - 500 Reputation Level)tinaceer User rank is Corporal (100 - 500 Reputation Level)tinaceer User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 5 Days 40 m 11 sec
Reputation Power: 2
Send a message via Google Talk to tinaceer
How to find out from HTML code that it's Internal JS & it's External JS

Hi all,Good Morning,Can anybody please say me what is the difference between Internal & External Javascript?I know something
but I want to know that how to find out from HTML code that this is Internal Javascript & this is External Javascript

Reply With Quote
  #2  
Old February 11th, 2008, 09:20 PM
leftybogs's Avatar
leftybogs leftybogs is offline
learn from lurking
SEO Chat Beginner (1000 - 1499 posts)
 
Join Date: Oct 2006
Posts: 1,495 leftybogs User rank is Corporal (100 - 500 Reputation Level)leftybogs User rank is Corporal (100 - 500 Reputation Level)leftybogs User rank is Corporal (100 - 500 Reputation Level)leftybogs User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 6 Days 19 h 23 m 22 sec
Reputation Power: 6
<script src="script.js">

i believe if theres something looks like this its external
which means the whole process within that file is external or save as different file and call it to the page...
__________________
Dog Bath | Barking Dog

Reply With Quote
  #3  
Old February 11th, 2008, 11:48 PM
tinaceer tinaceer is offline
Contributing User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Dec 2007
Location: India
Posts: 270 tinaceer User rank is Corporal (100 - 500 Reputation Level)tinaceer User rank is Corporal (100 - 500 Reputation Level)tinaceer User rank is Corporal (100 - 500 Reputation Level)tinaceer User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 5 Days 40 m 11 sec
Reputation Power: 2
Send a message via Google Talk to tinaceer
Quote:
Originally Posted by leftybogs
<script src="script.js">

i believe if theres something looks like this its external
which means the whole process within that file is external or save as different file and call it to the page...


Thanks dear,
Please give example of Internal JS
& please explain below scripts whether they are external or internal
<script language="javascript" type="text/javascript" src="/include/ac_runactivecontent.js"></script>

<script type="text/javascript" src="/include/functions.js"></script>

<script language="javascript" type="text/javascript" src="https://travel.gotravel123.net/content/air/odysol-en-suppliers.js"></script>

Reply With Quote
  #4  
Old April 21st, 2008, 01:08 PM
morph's Avatar
morph morph is offline
Im a SPAM!
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Sep 2007
Posts: 73 morph User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 1 h 8 m 13 sec
Reputation Power: 1
External JS - your JS coding is separated in a new file with an extensions .js.. then the web page you will be using the separated JS is can be accessed by adding the code <script type="text/javascript" src="url of the .js"></script> into your html...

Internal JS - your JS coding is coded at your html file. it is coded between the <script> your code......... </script>

Reply With Quote
  #5  
Old April 22nd, 2008, 01:58 AM
tinaceer tinaceer is offline
Contributing User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Dec 2007
Location: India
Posts: 270 tinaceer User rank is Corporal (100 - 500 Reputation Level)tinaceer User rank is Corporal (100 - 500 Reputation Level)tinaceer User rank is Corporal (100 - 500 Reputation Level)tinaceer User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 5 Days 40 m 11 sec
Reputation Power: 2
Send a message via Google Talk to tinaceer
Quote:
Originally Posted by morph
External JS - your JS coding is separated in a new file with an extensions .js.. then the web page you will be using the separated JS is can be accessed by adding the code <script type="text/javascript" src="url of the .js"></script> into your html...

Internal JS - your JS coding is coded at your html file. it is coded between the <script> your code......... </script>


Hi morph,

see below examples , as u said first 2 are internal JS & last is external ???

<script language="javascript" type="text/javascript" src="/include/ac_runactivecontent.js"></script>

<script type="text/javascript" src="/include/functions.js"></script>

<script language="javascript" type="text/javascript" src="https://travel.gotravel123.net/content/air/odysol-en-suppliers.js">
__________________
GaryTheScubaGuy's Top 12 seo tips - 2008
bbcode

-------------------------------------------------------------
Success is not a destination but its a journey

Reply With Quote
  #6  
Old April 22nd, 2008, 03:08 AM
JagNet JagNet is offline
Smoke me a kipper...
Click here for more information
 
Join Date: Aug 2007
Posts: 1,514 JagNet User rank is Sergeant Major (2000 - 5000 Reputation Level)JagNet User rank is Sergeant Major (2000 - 5000 Reputation Level)JagNet User rank is Sergeant Major (2000 - 5000 Reputation Level)JagNet User rank is Sergeant Major (2000 - 5000 Reputation Level)JagNet User rank is Sergeant Major (2000 - 5000 Reputation Level)JagNet User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 4 Weeks 1 Day 3 h 50 m 35 sec
Reputation Power: 25
Quote:
Originally Posted by tinaceer
see below examples , as u said first 2 are internal JS & last is external ???
No, all three examples are "external" javascript files. It matters not whether the files are hosted on the same domain or a different one, rather whether the javascript is embedded on the page, or linked to from the page.

Read morph's post again - he explained it very well.

Reply With Quote
  #7  
Old April 22nd, 2008, 05:13 AM
tinaceer tinaceer is offline
Contributing User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Dec 2007
Location: India
Posts: 270 tinaceer User rank is Corporal (100 - 500 Reputation Level)tinaceer User rank is Corporal (100 - 500 Reputation Level)tinaceer User rank is Corporal (100 - 500 Reputation Level)tinaceer User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 5 Days 40 m 11 sec
Reputation Power: 2
Send a message via Google Talk to tinaceer
Quote:
Originally Posted by JagNet
No, all three examples are "external" javascript files. It matters not whether the files are hosted on the same domain or a different one, rather whether the javascript is embedded on the page, or linked to from the page.

Read morph's post again - he explained it very well.


Hi JagNet,

means if I found src= in coding (We can called external JS file at anywhere) then it is external JS ( means here JS is linked )

& I think given one is internal JS

<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-2098610-1");
pageTracker._initData();
pageTracker._trackPageview();
</script>

here JS is embed

If I am still wrong then let me be correct

Last edited by tinaceer : April 22nd, 2008 at 05:16 AM.

Reply With Quote
  #8  
Old April 22nd, 2008, 05:20 AM
jalaj4you's Avatar
jalaj4you jalaj4you is offline
On a learning curve.....
Click here for more information. Click here for more information
 
Join Date: Mar 2007
Location: India....
Posts: 1,318 jalaj4you User rank is Sergeant (500 - 2000 Reputation Level)jalaj4you User rank is Sergeant (500 - 2000 Reputation Level)jalaj4you User rank is Sergeant (500 - 2000 Reputation Level)jalaj4you User rank is Sergeant (500 - 2000 Reputation Level)jalaj4you User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 3 Weeks 2 Days 16 h 20 sec
Reputation Power: 12
Send a message via Yahoo to jalaj4you Send a message via Google Talk to jalaj4you
Quote:
Originally Posted by tinaceer
Hi JagNet,

means if I found src= in coding (We can called external JS file at anywhere) then it is external JS ( means here JS is linked )

& I think given one is internal JS

<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-2098610-1");
pageTracker._initData();
pageTracker._trackPageview();
</script>

here JS is embed

If I am still wrong then let me be correct




Its been an year now when i last did any sort of coding but if i am not wrong it is as simple as that when an external .js file is being referenced it is an external script, which is quite easy to make out.


and when you have an internal code segment without any reference to an external file like the one you mentioned, its an internal script, thats an independent code block.



Well, please correct me Jagnet or any one else and pardon me if i am wrong. I used to be a coder, somehow dont get any chance.
__________________
Upload Music - My Friend's Musical Passion!
SEO Chat FAQ's
Worried About PR? Read This First!
Fools rush in where angels fear to tread!

Reply With Quote
  #9  
Old April 22nd, 2008, 05:35 AM
full house's Avatar
full house full house is offline
Contributing User
SEO Chat Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Philippines
Posts: 626 full house User rank is Corporal (100 - 500 Reputation Level)full house User rank is Corporal (100 - 500 Reputation Level)full house User rank is Corporal (100 - 500 Reputation Level)full house User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 Days 23 h 1 m 23 sec
Warnings Level: 10
Number of bans: 1
Reputation Power: 3
Send a message via Yahoo to full house Send a message via Google Talk to full house
see it here http://www.tutorio.com/external-tutorials.html

I think it will help.

Reply With Quote
  #10  
Old April 22nd, 2008, 05:47 AM
JagNet JagNet is offline
Smoke me a kipper...
Click here for more information
 
Join Date: Aug 2007
Posts: 1,514 JagNet User rank is Sergeant Major (2000 - 5000 Reputation Level)JagNet User rank is Sergeant Major (2000 - 5000 Reputation Level)JagNet User rank is Sergeant Major (2000 - 5000 Reputation Level)JagNet User rank is Sergeant Major (2000 - 5000 Reputation Level)JagNet User rank is Sergeant Major (2000 - 5000 Reputation Level)JagNet User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 4 Weeks 1 Day 3 h 50 m 35 sec
Reputation Power: 25
Yes, from the Google Analytics code example above, that's internal (embedded) Javascript, which relies on the Javascript in the external file referenced through src= to work.

Reply With Quote
  #11  
Old April 22nd, 2008, 06:02 AM
tinaceer tinaceer is offline
Contributing User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Dec 2007
Location: India
Posts: 270 tinaceer User rank is Corporal (100 - 500 Reputation Level)tinaceer User rank is Corporal (100 - 500 Reputation Level)tinaceer User rank is Corporal (100 - 500 Reputation Level)tinaceer User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 5 Days 40 m 11 sec
Reputation Power: 2
Send a message via Google Talk to tinaceer
Thanks to all of u guys

Reply With Quote
  #12  
Old April 22nd, 2008, 04:02 PM
morph's Avatar
morph morph is offline
Im a SPAM!
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Sep 2007
Posts: 73 morph User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 1 h 8 m 13 sec
Reputation Power: 1
Quote:
Originally Posted by tinaceer
Hi JagNet,

means if I found src= in coding (We can called external JS file at anywhere) then it is external JS ( means here JS is linked )

& I think given one is internal JS

<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-2098610-1");
pageTracker._initData();
pageTracker._trackPageview();
</script>

here JS is embed

If I am still wrong then let me be correct


100% correct...now you got it..

Reply With Quote
Reply

Viewing: SEO Chat ForumsOtherSEO Scripts > How to find out from HTML code that it's Internal JS & it's External JS


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 |