How to load an affiliate cookie using this jquery?

1 replies
Hey I've got some code for loading an affiliate cookie, based on the class of a URL.

Code:
$('a').click(function(e) {
  var affiliate = $(this).attr('class');

  // do something with it

  return false;
})
Say I wanted to load the Amazon affiliate cookie for this url, what could I put in //do something here.

I tried <img src="amazon aff url"> but that didn't work...
#affiliate #cookie #jquery #load
  • Profile picture of the author phpbbxpert
    What do you mean you have some code for loading a cookie?

    Your getting it or setting it?

    That code above is doing nothing other than setting an empty event for clicks on all anchor tags. So it's basically doing nothing.
    {{ DiscussionBoard.errors[3034904].message }}

Trending Topics