[wp-hackers] Prototype.js and Amazon Link-Enhancer Conflict

Mike Koepke mkoepke1 at mikekoepke.com
Sat Dec 16 15:10:48 GMT 2006

I've run across a compatibility issue with prototype.js and Amazon's 
Link-Enhancer script.  Amazon's script adds popup up functionality so 
that when someone mouses over an Amazon link, you get a popup window 
with the item, price, review, Buy Now etc.

The code Amazon you add to the footer is:

<script type="text/javascript" 
    <img src="http://www.assoc-amazon.com/s/noscript?tag=mytag-20" alt="" />

I am trying to use Alex King's Share This, which has you include the new 
prototype.js (slotted in WP 2.1) into the wp-includes directory.  What 
happens when prototype.js and the Amazon script are both included is 
that the blog never fully loads the page.  A bunch of javascript 
warnings are generated:


I've done a bunch of web searching on this issue and haven't come up 
with anything.  I did run across a forum post where someone else ran 
across the same problem using WP and the K2 theme.  
http://getk2.com/forum/showthread.php?t=2227.  He never resolved it either.

We have both isolated the issue to the inclusion of the Amazon script 
along side of prototype.js.   As WP 2.1 will be including prototype.js, 
I thought I'd point out the potential problem to others in the future 
and see if someone has a fix for the conflicts.

More information about the wp-hackers mailing list