Monthly Archive for December, 2005

Track AdSense clicks

For the past several days we were investigating the possibility of tracking AdSense clicks with Stuffed Tracker.

This is actually a popular feature request, since so many sites now depend on the revenue from AdSense. Tracking AdSense clicks in Stuffed Tracker seemed like a great idea. Not only would you get an understanding of how much AdSense clicks you have on your sites, but thanks to Stuffed Tracker you will also see the sources of the traffic that bring you most of the AdSense clicks (plus the pages on which the clicks were made and in IE even the target of the link on which the visitor has clicked).

To cut the long story short — tracking AdSense clicks with Stuffed Tracker is possible!

We have a complete description of how to set this up in our forums:
http://forums.stuffedguys.com/index.php?showtopic=77

PS. Happy New Year to everyone!

Radio buttons could be defeated

I always wondered why is it not possible to uncheck a radio button? Sometimes this is very inconvenient. If at first all radio buttons on the page were unchecked then why the browser does not allow a user to uncheck a radio button after it was checked?

So, anyway, with a very simple javascript (radioObj.checked = false) it is very easy to achieve.

See how it works in this short video in which I show how I defeated radio buttons:

QuickTime movie (785 Kb).

Updated two and a half years later.

The original version of the code that I posted in the comments didn’t actually work correctly in a situation when a group of radio buttons had the same name (which is of course the most common use scenario for radio buttons, but I happened to call them differently originally when I’ve created the unchecking code).

So here is a fixed version of the code (as it appears the click event only is not enough for this to work correctly, we have to assign a handler to a mousedown event as well).

Pure JS version

<input type="radio" name="name" value="value"
onmousedown="this.__chk = this.checked"
onclick="if (this.__chk) this.checked = false"/>

jQuery version

If you are using jQuery on your site then this version is for you, it will make ALL radio buttons uncheckable on the page, no need to specify any special code in each radio button.

Just place this code in the HEAD of your page, after jQuery main library inclusion and you are set –

<script type="text/javascript">
$(document).ready(function() {
  $("input[type=radio]").mouseup(function() {
    this.__chk = this.checked;
  }).click(function() {
    if (this.__chk) this.checked = false;
  });
});
</script>

New Flash statistics in Stuffed Tracker

What’s this?

Flash report in Stuffed Tracker

Oh no! It is a brand new statistics of Flash versions in Stuffed Tracker!

Suprisingly even for us and thanks to the reports constructor, we can actually see the sales figures for every Flash version. Who could have thought?

Synchronize MySQL Databases Redux

As I’ve wrote some time ago, I have created a web-based structure synchrnoziation tool for MySQL databases. We’ve needed a thing like this ourselves, so I’ve decided to create the tool as a standalone product from the start.

I’ve called the product Stuffed Sync, but never had enough time to prepare it for a proper release (write installation, documentation, create a dedicated site section, etc) . Finally, a week ago we’ve made a decision to launch a free service that allows to synchronize MySQL databases. The service was named SyncSQL.com and I am happy to report that as of now it is available for public use.

Basically this is a much lighter version of Stuffed Sync the product. But it should be sufficient for a lot of scenarios and we hope that it will make life easier for a lot of developers.

How it works?

You specify structure dumps of the source and target databases and hit the “Synchronize!” button. Your dumps are analyzed and all required alter statements are prepared for you. Then you should run the prepared statements on the target database and its structure will become identical to the structure of the source database.

How it looks?

SyncSQL.com