473,395 Members | 1,791 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,395 software developers and data experts.

3rd Party Counters, How do they do that ???

Hi Group,

I have been building a search engine for about 9 months now of links to
other site that I have admin Access to. This has been simple for me to keep
mySQL record of page hits, as I admin all the sites.

I now have a requirement to add 3rd party pages, that require to be able to
increment counters tables on mySQL database.

This is exactly the same requirement as other 3rd party counter web sites
offer. They seem to do it with a bit of java and an image. Unfortantly I
have no idea how it is done..

each of my search engine records has a unique ID, --------- :-)

I just want for example when a 3rd party page is loaded, for it to HTTP GET
the image from my server and somehow know carry the unique ID for the
record, so when my server receives the HTTP GET for the particular image or
Javacode it can translate the sent varable so that I know what counter to
update..

This seemed easy the more I thought about it, the more I realized I did not
have a clue how to do it... The only thing is that it must not be ASP on the
client as I am not sure all of my 3rd party links have ASP. So I suppose it
must be javascript based..

Any help will be greatly appreaciated........... :-)

Kind Regards

Graham Mattingley
Jul 19 '05 #1
2 1576
One would be to have the 3rd party site use an image tag with a src to an
ASP page on your site that would then stream the image back after processing
the request and updating the count. <img
src="http://yoursite.kom/counter.asp?id=TheirUniqueID">

You could then have that page execute an update on the count for that ID,
and response.binarywrite an image back. (Example, but without the
anti-leeching if/then: http://www.aspfaq.com/show.asp?id=2276)

Another option would be for you to have them load the .gif/.jpg off their
own server but then also have a 0 sized on display:none <img> that loads a
..asp page on your server that doesn't return anything, but the call would
execute the code on your server to do the update. I suppose that this could
cause some browser compatibility issues though or cause complaints from
people using your service. I don't know. But this would put less of a
demand on your server and your data transfer. I suppose an alternative
would be to use a <script src="http://yoursite..> tag though as well. It
wouldn't have to return anything still.

But, if you're hoping to get click-throughs, you'd probably want to go with
the first option to prevent people from abusing your service and not linking
to your site.

Ray at home

"Graham Mattingley" <gr****@technocom.com> wrote in message
news:bu*******************@news.demon.co.uk...
Hi Group,

I have been building a search engine for about 9 months now of links to
other site that I have admin Access to. This has been simple for me to keep mySQL record of page hits, as I admin all the sites.

I now have a requirement to add 3rd party pages, that require to be able to increment counters tables on mySQL database.

This is exactly the same requirement as other 3rd party counter web sites
offer. They seem to do it with a bit of java and an image. Unfortantly I
have no idea how it is done..

each of my search engine records has a unique ID, --------- :-)

I just want for example when a 3rd party page is loaded, for it to HTTP GET the image from my server and somehow know carry the unique ID for the
record, so when my server receives the HTTP GET for the particular image or Javacode it can translate the sent varable so that I know what counter to
update..

This seemed easy the more I thought about it, the more I realized I did not have a clue how to do it... The only thing is that it must not be ASP on the client as I am not sure all of my 3rd party links have ASP. So I suppose it must be javascript based..

Any help will be greatly appreaciated........... :-)

Kind Regards

Graham Mattingley

Jul 19 '05 #2
Hi Ray, thanks for these ideas, I like the idea of streaming the image via
an ASP page... I will give this ago, I am having a bit of trouble with the
streaming bit at the moment, I will hopefully have something ready in afew
days, I will post back the link when I do, so you can see it

Many Thanks

Graham Mattingley

"Ray at <%=sLocation%>" <myFirstNameATlane34dotKOMM> wrote in message
news:OD**************@TK2MSFTNGP11.phx.gbl...
One would be to have the 3rd party site use an image tag with a src to an
ASP page on your site that would then stream the image back after processing the request and updating the count. <img
src="http://yoursite.kom/counter.asp?id=TheirUniqueID">

You could then have that page execute an update on the count for that ID,
and response.binarywrite an image back. (Example, but without the
anti-leeching if/then: http://www.aspfaq.com/show.asp?id=2276)

Another option would be for you to have them load the .gif/.jpg off their
own server but then also have a 0 sized on display:none <img> that loads a
.asp page on your server that doesn't return anything, but the call would
execute the code on your server to do the update. I suppose that this could cause some browser compatibility issues though or cause complaints from
people using your service. I don't know. But this would put less of a
demand on your server and your data transfer. I suppose an alternative
would be to use a <script src="http://yoursite..> tag though as well. It
wouldn't have to return anything still.

But, if you're hoping to get click-throughs, you'd probably want to go with the first option to prevent people from abusing your service and not linking to your site.

Ray at home

"Graham Mattingley" <gr****@technocom.com> wrote in message
news:bu*******************@news.demon.co.uk...
Hi Group,

I have been building a search engine for about 9 months now of links to
other site that I have admin Access to. This has been simple for me to

keep
mySQL record of page hits, as I admin all the sites.

I now have a requirement to add 3rd party pages, that require to be able

to
increment counters tables on mySQL database.

This is exactly the same requirement as other 3rd party counter web sites offer. They seem to do it with a bit of java and an image. Unfortantly I
have no idea how it is done..

each of my search engine records has a unique ID, --------- :-)

I just want for example when a 3rd party page is loaded, for it to HTTP

GET
the image from my server and somehow know carry the unique ID for the
record, so when my server receives the HTTP GET for the particular image

or
Javacode it can translate the sent varable so that I know what counter to update..

This seemed easy the more I thought about it, the more I realized I did

not
have a clue how to do it... The only thing is that it must not be ASP on

the
client as I am not sure all of my 3rd party links have ASP. So I suppose

it
must be javascript based..

Any help will be greatly appreaciated........... :-)

Kind Regards

Graham Mattingley


Jul 19 '05 #3

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

Similar topics

2
by: David Mitchell | last post by:
Hello group, I'm trying to write code to test an application we're developing. This application needs to store its own performance data in the registry, and we'd like to be storing quite a...
9
by: Carlos | last post by:
I'm responsible for the content in a call center's intranet site. There are approximately 600 pages on 7 sub-webs. I have access to the sub-webs, but I don't have access to the root web or web...
2
by: Don | last post by:
Hello! I am trying to write some code to access performance counters on a remote machine. Ideally, I would like to add a machine to a tree control (like the "Servers" view in the .NET IDE) and...
4
by: Chad Myers | last post by:
I'm instrumenting my app with a few performance counters and I'd like to ask you all for some advice on how to handle performance counter instances. I have a class library that is a base library...
0
by: Christopher Attard | last post by:
Hi, I need to create a dialog like the 'Add Counters' dialog box in perfmon. I'm using the System.Diagnostics namespace class in .NET and I've managed to do it. The problem arises when I'm...
1
by: db | last post by:
Hello, I am writing a utility to get the performance counters from a remote machine. Currently, I am usign the System.Diagnostics.PerformanceCounter class to retrieve these counters, but they...
7
by: James | last post by:
Hi Has anybody had any experience of ASP.Net performance counters not updating. In the performance monitor application when I try to add the groups ASP.NET and ASP.NET Applications the...
0
by: JackC | last post by:
Hi, We have an ASP.NET application with a (kinda shady) COM component that we don't know much about and don't have responsability for. But you know how it is - if the app. goes down its my fault...
10
by: Zytan | last post by:
I made a program using the Timer class, and I start the timer with Timer.Start(), but don't stop it with Timer.Stop(), and I assumed this was ok, but, Process Explorer informs me, after running it...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.