Go Back   Dynamic Drive Forums > General Coding > JavaScript
Search Dynamic Drive Forums:

Reply
 
Thread Tools Search this Thread
  #1  
Old 11-04-2009, 03:13 AM
hemi hemi is offline
Junior Coders
 
Join Date: Aug 2009
Posts: 51
Thanks: 4
Thanked 1 Time in 1 Post
Default script tracker

hi,

i got a source code from google and i want to use it but there is a script in that
"i think it tracks our information"(not exactly sure). if i remove it my script it is not working.becoz there is ab.js in that url .

i downloaded that ab.js file seperately

can any one tell what exactly the bellow script is for if it is for tracking plz tell me how to avoid without disturbing my script


-------------------------------------------

<script type="text/javascript">
var Host = (("https:" == document.location.protocol) ?
"https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + Host +
"abc.com/ab.js' type='text/javascript'%3E%3C/script%3E"));
</script>

------------------------------
Reply With Quote
  #2  
Old 11-04-2009, 11:59 AM
vwphillips vwphillips is offline
Regular Coders
 
Join Date: Dec 2008
Location: Portsmouth, UK
Posts: 343
Thanks: 0
Thanked 72 Times in 72 Posts
Default

it writes to the document

<script src='https://ssl.abc.com/ab.js' type='text/javascript' ></script>
or
<script src='http://www.abc.com/ab.js' type='text/javascript' ></script>

dependent on the document.location.protocol
__________________
Vic

God Loves You and will never love you less.
http://www.vicsjavascripts.org.uk/
Reply With Quote
  #3  
Old 11-04-2009, 02:22 PM
hemi hemi is offline
Junior Coders
 
Join Date: Aug 2009
Posts: 51
Thanks: 4
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by vwphillips View Post
it writes to the document

<script src='https://ssl.abc.com/ab.js' type='text/javascript' ></script>
or
<script src='http://www.abc.com/ab.js' type='text/javascript' ></script>

dependent on the document.location.protocol
tnku for ur post,

can u tell me how to avoid it doing and use that ab.js within my files(iam having that file)

when iam removing that script from my file my code is not exactly working
Reply With Quote
  #4  
Old 11-04-2009, 05:01 PM
jscheuer1's Avatar
jscheuer1 jscheuer1 is offline
No Kidding?
 
Join Date: Mar 2005
Location: SE PA USA
Posts: 19,005
Thanks: 19
Thanked 1,135 Times in 1,121 Posts
Blog Entries: 3
Default

Just replace it with an external script tag that points to your copy of the script, ex:

Code:
<script type="text/javascript" src="ab.js"></script>
If the ab.js file isn't in the same folder as the page, include its path in the src attribute.
__________________
WWWWWWWWWWWW
- John
________________________

Really Show Your Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:18 AM.

Home - Contact Us - Archives - Link to DD - Top 

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.