I'm using prototype.js and writing a small script that will load a
tracking pixel to a webpage when a download link is clicked. The page
contains a div:
<div id="myTrackerDiv"></div>
which is where the tracking pixel will be loaded.
My function is:
function getPixel() {
if(!$('trackingPixel')) {
var thisPixel = new Element('img',
{src:"http://www.mysource.com/img/
trackingPixel.gif", id:"trackingPixel"});
$('myTrackerDiv').append(thisPixel);
}
return false;
}
which looks for an existing trackingPixel ID and if it doesn't find
it, it creates one.
Can anyone help? I know I'm making some bonehead mistake but I'm kind
of beat from banging my head in about this one.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---