Discussion:
[Mtamazon] inconsistent results
Rosina Lippi
2004-06-02 17:07:20 UTC
Permalink
I'm wondering if somebody might be able to tell me why in this post:
http://www.saralaughs.com/blog/archives/000415.html

MTAmazon works for two of the references, but not for The Pope's Rhino. Is
this a problem with the ASIN, maybe? I've checked it three times.

any help appreciated

r
Michael Krolczyk
2004-06-02 17:16:33 UTC
Permalink
Pulled the source code and the link in the source the the Pope's Rhino works
fine (like the other two titles). So it is not a bad ASIN.

Sorry.

Like the use of mtamazon in the mouse hovers though. Very nice :)


----- Original Message -----
From: "Rosina Lippi" <***@saralaughs.com>
To: <mtamazon-***@lists.sourceforge.net>
Sent: Wednesday, June 02, 2004 12:07 PM
Subject: [Mtamazon] inconsistent results
Post by Rosina Lippi
http://www.saralaughs.com/blog/archives/000415.html
MTAmazon works for two of the references, but not for The Pope's Rhino.
Is
Post by Rosina Lippi
this a problem with the ASIN, maybe? I've checked it three times.
any help appreciated
r
-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
Adam Kalsey
2004-06-02 17:36:14 UTC
Permalink
Post by Rosina Lippi
MTAmazon works for two of the references, but not for The
Pope's Rhino. Is this a problem with the ASIN, maybe? I've
checked it three times.
Your source code contains the Amazon data from The Pope's Rhino, so the
fault does not lie with MTAmazon. What's happening is that this book title
contains an apostrophe, represented by Amazon as a single quote. Your
Javascript uses single quotes to delineate strings, so you end up with an
unescaped quote causing JavaScript errors:

CAPTION, 'The Pope's Rhinoceros: A Novel',

Either change your string quoting to use double quotes for titles or add
MT's JavaScript string encoding global attributes on the MTAmazon tags.

........................................................................
Adam Kalsey 916.600.2497
Internet consultant ***@kalsey.com
Kalsey Consulting Group http://www.kalsey.com/
aim: KalseyGroup icq: 137208951
........................................................................

I-Blog - Blogs in business http://marketingwonk.com/lists/iblog/1413/
BlogSnob - Promote your blog http://blogsnob.simpleads.net/
Zempt - Simple Movable Type publishing http://zempt.com/
Rosina Lippi
2004-06-02 18:35:58 UTC
Permalink
I had a feeling it was something obvious I was missing. Thanks, Adam. I'll
fix that.
Post by Adam Kalsey
Your source code contains the Amazon data from The Pope's Rhino, so the
fault does not lie with MTAmazon. What's happening is that this book title
contains an apostrophe, represented by Amazon as a single quote. Your
Javascript uses single quotes to delineate strings, so you end up with an
CAPTION, 'The Pope's Rhinoceros: A Novel',
Either change your string quoting to use double quotes for titles or add
MT's JavaScript string encoding global attributes on the MTAmazon tags.
Rosina Lippi
2004-06-02 18:36:45 UTC
Permalink
thanks. I can't claim any credit, though. Richard Ericksson set it all up
for me.
Post by Michael Krolczyk
Like the use of mtamazon in the mouse hovers though. Very nice :)
Loading...