473,407 Members | 2,306 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

problem using Superstats code

One of the websites I manage uses Superstats for tracking, etc.,
however, each time the Javascript code is included to perform the
track, I got this appearing each time at the top of every page:

');

I am unable to remove it unless I comment out the last four
"document.write()" methods from the code:

[Javascript]
<!-- Start Superstats code
version 3.0b. Copyright 1997-2001 MyComputer.com, Inc. More info
available at www.mycomputer.com -->
<script type="text/javascript" language="JavaScript">
/* You may give each page an identifying name, server, and channel on
the next lines. */
var pageName = "Application";

/**** DO NOT ALTER ANYTHING BELOW THIS LINE! ****/
var code = ' ';
</script>
<script type="text/javascript"
src="http://code.superstats.com/code/ss/vsign_1991661/0/30b"></script>
<script type="text/javascript" language="JavaScript">
br = navigator.appName + parseInt(navigator.appVersion);
if (code != ' ' || br == 'Netscape2') {
document.write(code);
} else {
document.write(''+ ' <im'+'g'+ '
src="http://stats.superstats.com/b/ss/vsign_1991661/1'+ '?pageName=' +
escape(pageName) + '" border="0">');
}
// document.write('<');
// document.write('!-- ');
</script>
<noscript><img src="http://stats.superstats.com/b/ss/vsign_1991661/1"
border="0"></noscript>
<script type="text/javascript" language="JavaScript">
/// document.write(' --');
//document.write('>');

</script>

<!--End Superstats tracking
code. -->
[/Javascript]

If I uncomment the last four "document.write()" methods, the

');

appears again, otherwise, it does not, but I am not sure how I have
affected back-end functionality. What technical advice do you offer,
other than switching to another stat counter?

Thanx
Phil

Oct 26 '06 #1
2 1441
Phil Powell said the following on 10/26/2006 11:21 AM:
One of the websites I manage uses Superstats for tracking, etc.,
however, each time the Javascript code is included to perform the
track, I got this appearing each time at the top of every page:

');

I am unable to remove it unless I comment out the last four
"document.write()" methods from the code:
Remove them entirely.
If I uncomment the last four "document.write()" methods, the

');
What I get with them uncommented is --which is what I expected. The
script attempts to write out HTML comments and fails to make them JS
comments as well. The entire script looks like something a High School
student would write out in an attempt to write a decent script.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Oct 26 '06 #2

Randy Webb wrote:
Phil Powell said the following on 10/26/2006 11:21 AM:
One of the websites I manage uses Superstats for tracking, etc.,
however, each time the Javascript code is included to perform the
track, I got this appearing each time at the top of every page:

');

I am unable to remove it unless I comment out the last four
"document.write()" methods from the code:

Remove them entirely.
That's what I did and everything looks fine. If it works is a totally
different (and ultimately unrelated) issue, of course.

Thanx
Phil
>
If I uncomment the last four "document.write()" methods, the

');

What I get with them uncommented is --which is what I expected. The
script attempts to write out HTML comments and fails to make them JS
comments as well. The entire script looks like something a High School
student would write out in an attempt to write a decent script.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Oct 27 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Kostatus | last post by:
I have a virtual function in a base class, which is then overwritten by a function of the same name in a publically derived class. When I call the function using a pointer to the derived class...
2
by: Chris Bolus | last post by:
I'm a teacher using MS Access on an RMConnect 2.4 network. On some workstations both I and my students sometimes get an error message when attempting to insert a command button on a form which...
1
by: Rhy Mednick | last post by:
I'm creating a custom control (inherited from UserControl) that is displayed by other controls on the form. I would like for the control to disappear when the user clicks outside my control the...
1
by: Joe Bloggs | last post by:
I am trying display the contents of a table in a web page, select certain rows from that table and then display the fields that I have selected (now table columns) as text in a Label object....
9
by: Rajat Tandon | last post by:
Hello there, I am relatively new to the newsgroups and C#. I have never been disappointed with the groups and always got the prompt replies to my queries.This is yet another strange issue, I am...
5
by: | last post by:
Hi, I'm trying to use the cookie munging session handling behaviour of asp.net instead of cookies themselves as I'm finding quite a few people are barring cookies (especially AOL users). If I...
4
by: zubair | last post by:
Hello everyone! I have uploaded my site on a webserver. Some times it works fine but some time it gives error "Null Object reference exception". The same site on my local server works just fine. ...
8
by: Sarah | last post by:
I need to access some data on a server. I can access it directly using UNC (i.e. \\ComputerName\ShareName\Path\FileName) or using a mapped network drive resource (S:\Path\FileName). Here is my...
5
by: Vibhesh | last post by:
I am facing problem with TimeSpan structure when DirectX is used. Following is the sample code that causes the problem: ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.