Thanks! I does work now :D I don't know why I haven't try that. But thanks
anyway for all the trouble ;)

Regads,
Mauro

On Thu, Jan 6, 2011 at 1:26 AM, Matt Harris <[email protected]>wrote:

> Hey Mauro,
>
> I've had a look into the code and it appears there is a loading conflict
> when you use both Javascript libraries together. I've let them team know but
> in the meantime if you put:
>     <script type="text/javascript" src="
> http://platform.twitter.com/widgets.js";></script>
>
> before the @anywhere script line:
>     <script src="
> http://platform.twitter.com/anywhere.js?id=APP_KEY&amp;v=1<http://platform.twitter.com/anywhere.js?id=APP_KEY&v=1>
> "></script>
>
> IE8 will use both libraries successfully.
>
> Best,
> @themattharris
> Developer Advocate, Twitter
> http://twitter.com/themattharris
>
>
> On Tue, Jan 4, 2011 at 3:30 PM, Mauro Asprea <[email protected]>wrote:
>
>> Hi Matt, this is my example. It is messy and without layout. I tested it
>> before sent it to you so I am pretty you will be able to reproduce this (I
>> hope..)
>> You can see the @brutuscat username at the top and the twitter button at
>> the middle. The button loads and works, the @brutuscat link gets created but
>> then it fails to continue, so no badge is shown when mouseover the link.
>>
>> Thanks!
>>
>> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "
>> http://www.w3.org/TR/html4/strict.dtd";>
>>
>> <html>
>>
>> <head>
>>
>> <meta http-equiv="X-UA-Compatible" content="IE=7" />
>>
>> <title>Tipfy Auth Example</title>
>>
>> <script src="
>> http://platform.twitter.com/anywhere.js?id=E78ugS1YmORXrN9EtXSUtw&v=1";
>>
>>   type="text/javascript"></script>
>>
>> <link type="text/css"
>>
>>   href="
>> http://z-ecx.images-amazon.com/images/G/01/browser-scripts/registries-css/registries-css-2018041924.css._V200858088_.css
>> "
>>
>>   rel="stylesheet">
>>
>> </head>
>>
>> <body>
>>
>> <div id="wrap">
>>
>> <div class="yui-d1">
>>
>> <div class="top">
>>
>> <div class="user-status">
>>
>> <p>Signed in as <span>@brutuscat</span></p>
>>
>> </div>
>>
>> </div>
>>
>> </div>
>>
>> <div class="yui-d1" id="main">
>>
>> <div class="yui-t2">
>>
>> <div class="yui-main">
>>
>> <div class="yui-b">
>>
>> <div class="content" id="container">
>>
>> <h2><a href="
>> https://www.amazon.co.jp/wishlist/3V2PTT292TJ6J?tag=&associate-id=";>
>> Amazon.co.jp:
>>
>> Mauro Asprea: New Wish List</a></h2>
>>
>> <div class=".BODY">
>>
>> <table>
>>
>>   <tbody class="itemWrapper">
>>
>>     <tr valign="top">
>>
>>       <td align="center" class="productImage"><a
>>
>>         href="
>> http://www.amazon.co.jp/Lonely-Planet-Hiking-Japan-Richard/dp/1741040728/ref=wl_it_dp_v/376-7909584-7551139?tag=&associate-id=&ie=UTF8&coliid=I1FGLTNP6ZPJUZ&colid=3V2PTT292TJ6J
>> ">
>>
>>       <img
>>
>>         src="
>> https://images-na.ssl-images-amazon.com/images/I/51gVyf5hEYL._SL500_PIsitb-sticker-arrow-big,TopRight,35,-73_OU09_SL135_.jpg
>> "
>>
>>         width="100%" alt="Product Image" height="auto" border="0"></a> <a
>>
>>         href="http://twitter.com/share"; class="twitter-share-button"
>> data-lang="ja"
>>
>>         data-url="
>> https://www.amazon.co.jp/gp/item-dispatch/ref=cm_wl_addtocart_v/376-7909584-7551139?tag=&associate-id=&ie=UTF8&quantity.1=1&offeringID.1=SqH1s99Q8DBZXNkA6fhcXoylLTOL9pKC7f3q9fw9LR40kP8fU%252F5ob8XncjrJduCwfk9RveL47lWWP7ElRNRGNr2gqWfEYAvd&submit.addToCart=1&registryID.1=3V2PTT292TJ6J&signInToHUC=0&registryItemID.1=I1FGLTNP6ZPJUZ&session-id=376-7909584-7551139
>> "
>>
>>         data-text="My new wish is: Lonely Planet Hiking in Japan"
>> data-count="none">Tweet</a></td>
>>
>>       <td width="100%">
>>
>>       <div class="lineItemGroup">
>>
>>       <div><span class="small productTitle"><strong> <a
>>
>>         href="
>> http://www.amazon.co.jp/Lonely-Planet-Hiking-Japan-Richard/dp/1741040728/ref=wl_it_dp_v/376-7909584-7551139?tag=&associate-id=&ie=UTF8&coliid=I1FGLTNP6ZPJUZ&colid=3V2PTT292TJ6J
>> ">Lonely
>>
>>       Planet Hiking in Japan</a> </strong></span></div>
>>
>>       <div class="lineItemPart"><span class="authorPart"> Richard Ryall</
>> span> <span
>>
>>         class="price"><span class="wlPrice">Ôø• 2,203</span></span></nobr
>> ></div>
>>
>>       </div>
>>
>>       <div class="lineItemGroup"><span class="tiny wlProductInfoRow"> <
>> span
>>
>>         class="crAvgStars" style="white-space: no-wrap;"> <span class=
>> "asinReviewsSummary"
>>
>>         name="B002L6HEAU"> <img src="/static/images/star-40.gif" width=
>> "55"
>>
>>         alt="4.0 out of 5 stars" align="absbottom" title="4.0 out of 5
>> stars" height="12" border="0">
>>
>>       </span></span></span></div>
>>
>>       <div class="lineItemGroup"><span class="commentBlock"><nobr>September
>> 30,
>>
>>       2010</nobr></span></div>
>>
>>       </td>
>>
>>     </tr>
>>
>>     <tr valign="top">
>>
>>       <td colspan="2">
>>
>>       <div class="iterator-item-separator"></div>
>>
>>       </td>
>>
>>     </tr>
>>
>>   </tbody>
>>
>> </table>
>>
>> </div>
>>
>> </div>
>>
>> </div>
>>
>> </div>
>>
>> </div>
>>
>> </div>
>>
>> </div>
>>
>> <div class="footer" id="footer"><a href="
>> http://mixpanel.com/?from=partner";> <img
>>
>>   style="float: right" src="
>> http://mixpanel.com/site_media/images/mixpanel_partner_logo.gif";
>>
>>   alt="Mobile Analytics by Mixpanel" /> </a>
>>
>> <p>Powered by <a href="http://code.google.com/appengine/";>Google AppEngine
>> </a>, <a
>>
>>   href="http://www.tipfy.org/";>Tipfy</a> and <a href="
>> http://jinja.pocoo.org/";>Jinja 2</a></p>
>>
>> <p>Icons by <a href="http://p.yusukekamiyamane.com/";>Yusuke Kamiyamane</a
>> ></p>
>>
>> </div>
>>
>> <script type="text/javascript">
>>
>> twttr.anywhere(function(T) {
>>
>>  T.hovercards({
>>
>>  expanded : true
>>
>>  });
>>
>>  var widgets = document.createElement('script');
>>
>>  widgets.setAttribute('type', 'text/javascript');
>>
>>  widgets.setAttribute("src", "http://platform.twitter.com/widgets.js";);
>>
>>  document.body.appendChild(widgets);
>>
>> });
>>
>> </script>
>>
>> </body>
>>
>> </html>
>>
>>
>>
>> On Tue, Jan 4, 2011 at 11:36 PM, Matt Harris 
>> <[email protected]>wrote:
>>
>>> Hi Mauro,
>>>
>>> Could you share a complete code sample. My testing of all the widgets
>>> together doesn't show these symptoms.
>>>
>>> Best,
>>> @themattharris
>>> Developer Advocate, Twitter
>>> http://twitter.com/themattharris
>>>
>>>
>>> On Tue, Jan 4, 2011 at 11:00 AM, Mauro Asprea <[email protected]>wrote:
>>>
>>>> I am getting closer. This is what I did (I am using closure-library):
>>>>
>>>>     <script type="text/javascript">
>>>>
>>>>   goog.require('goog.dom');
>>>>
>>>>     </script>
>>>>
>>>>     <script type="text/javascript">
>>>>
>>>>       twttr.anywhere(function (T) {
>>>>
>>>>         T.hovercards({expanded:true});
>>>>
>>>>         goog.dom.appendChild(document.body, goog.dom.createDom("script"
>>>> ,{
>>>>
>>>>         "type":"text/javascript",
>>>>
>>>>         "src":"http://platform.twitter.com/widgets.js"},"";));
>>>>
>>>>       });
>>>>
>>>>     </script>
>>>>
>>>> This loads the button, and let's the anywhere create the anchor around
>>>> the @profiles. But somehow it breaks trying to create the badge.
>>>>
>>>> This is the IE8 error log:
>>>>
>>>> Webpage error details
>>>> User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1;
>>>> Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR
>>>> 3.0.30729; Media Center PC 6.0)
>>>> Timestamp: Tue, 4 Jan 2011 18:54:56 UTC
>>>> Message: 'parent.twttr.anywhere' is null or not an object
>>>> Line: 1
>>>> Char: 153
>>>> Code: 0
>>>>  URI: http://platform0.twitter.com/1.1.3/javascripts/client.js
>>>>
>>>>
>>>> And breaking at this code:
>>>>
>>>>     var Z=parent.twttr.anywhere._assetUrl();
>>>>
>>>>
>>>> Thanks!
>>>>
>>>> On Tue, Jan 4, 2011 at 7:25 PM, Mauro Asprea <[email protected]>wrote:
>>>>
>>>>> I have tracked down this to the inclusion of the:
>>>>>
>>>>> <script type="text/javascript" src="
>>>>> http://platform.twitter.com/widgets.js";></script>
>>>>>
>>>>> If I remove this script, anywhere works Ok. If I place both, only the
>>>>> button works. I do want the widgets.js since I am using it for my tweet
>>>>> button.
>>>>>
>>>>> Ideas?
>>>>>
>>>>> On Tue, Jan 4, 2011 at 9:32 AM, Mauro Asprea <[email protected]>wrote:
>>>>>
>>>>>> Hey Matt thanks for your reply ;)
>>>>>>
>>>>>> The same page works in other browsers FF, Chrome (Mac and Win). The
>>>>>> twitter button works too. I first though it was a problem with the
>>>>>> dependencies not being loaded, but after seeing that nobody else have the
>>>>>> issue and coding a loop just before the function call to "wait" till the
>>>>>> "anywhere" gets created did not prove anything I am kind of hopeless...
>>>>>>
>>>>>> The IE dev tools break when twttr.anywhere is called and says
>>>>>> something like "Object doesn’t support this property or method"
>>>>>>
>>>>>> I will try to to put online a test case of this and let you now ;)
>>>>>>
>>>>>> Thanks!
>>>>>>
>>>>>>
>>>>>> On Tue, Jan 4, 2011 at 1:01 AM, Matt Harris <
>>>>>> [email protected]> wrote:
>>>>>>
>>>>>>> Hey Mauro,
>>>>>>>
>>>>>>> Does the @anywhere code work on any other page and can you create a
>>>>>>> test page with just that in it?
>>>>>>>
>>>>>>> Also, do the IE developer tools include any javascript error
>>>>>>> information?
>>>>>>>
>>>>>>> Best,
>>>>>>> @themattharris
>>>>>>> Developer Advocate, Twitter
>>>>>>> http://twitter.com/themattharris
>>>>>>>
>>>>>>>
>>>>>>> On Mon, Jan 3, 2011 at 1:44 PM, Mauro Asprea 
>>>>>>> <[email protected]>wrote:
>>>>>>>
>>>>>>>> Hi, I am having issues with the
>>>>>>>> http://platform.twitter.com/anywhere.js
>>>>>>>>
>>>>>>>> In IE8 it seems to fail somewhere and the twttr.anywhere function is
>>>>>>>> never created. There is some debug version of the js so I can, well, 
>>>>>>>> debug
>>>>>>>> it? Can't really share the url of the site since it's not online yet...
>>>>>>>>
>>>>>>>> It is happening only in a page where the twitter share button is
>>>>>>>> also implemented. In all the other pages where there is no twitter 
>>>>>>>> button is
>>>>>>>> working Ok also it is working Ok with other browsers.
>>>>>>>>
>>>>>>>> This is the code of an anchor being "buttonized":
>>>>>>>>
>>>>>>>> <a href="http://twitter.com/share"; class="twitter-share-button"
>>>>>>>>
>>>>>>>> data-lang="None"
>>>>>>>>
>>>>>>>> data-url="
>>>>>>>> http://www.amazon.co.uk/gp/item-dispatch/ref=cm_wl_addtocart_v/278-2287254-9887803?tag=amzwishlist-21&associate-id=amzwishlist-21&ie=UTF8&quantity.1=1&offeringID.1=PhLaWZPqTP%252BrQE0KwFR2PC6Z%252BH2HQk727v3tL%252F%252B2jl9vtPvFKIFEhtQ6IVucXFB%252Bseg7JWrFeSNxWEi%252FxqtW6XJS%252BozYPNcn&submit.addToCart=1&registryID.1=1EJC1GJXUD7IF&signInToHUC=0&registryItemID.1=IV8C1KSAVE71K&session-id=278-2287254-9887803
>>>>>>>> "
>>>>>>>>
>>>>>>>> data-text="My new wish is: Words that Sell, Revised and Expanded
>>>>>>>> Edition: The ..."
>>>>>>>>
>>>>>>>> data-count="none">Tweet</a>
>>>>>>>>
>>>>>>>>
>>>>>>>> Any ideas?
>>>>>>>>
>>>>>>>> Thanks!
>>>>>>>>
>>>>>>>> --
>>>>>>>> Mauro Sebastián Asprea
>>>>>>>>
>>>>>>>> E-Mail: [email protected]
>>>>>>>> Mobile: +34 654297582
>>>>>>>> Skype: mauro.asprea
>>>>>>>>
>>>>>>>> Algunos hombres ven las cosas como son y se preguntan porque. Otros
>>>>>>>> sueñan cosas que nunca fueron y se preguntan por qué no?.
>>>>>>>> George Bernard Shaw
>>>>>>>>
>>>>>>>> --
>>>>>>>> Twitter developer documentation and resources:
>>>>>>>> http://dev.twitter.com/doc
>>>>>>>> API updates via Twitter: http://twitter.com/twitterapi
>>>>>>>> Issues/Enhancements Tracker:
>>>>>>>> http://code.google.com/p/twitter-api/issues/list
>>>>>>>> Change your membership to this group:
>>>>>>>> http://groups.google.com/group/twitter-development-talk
>>>>>>>>
>>>>>>>
>>>>>>>  --
>>>>>>> Twitter developer documentation and resources:
>>>>>>> http://dev.twitter.com/doc
>>>>>>> API updates via Twitter: http://twitter.com/twitterapi
>>>>>>> Issues/Enhancements Tracker:
>>>>>>> http://code.google.com/p/twitter-api/issues/list
>>>>>>> Change your membership to this group:
>>>>>>> http://groups.google.com/group/twitter-development-talk
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Mauro Sebastián Asprea
>>>>>>
>>>>>> E-Mail: [email protected]
>>>>>> Mobile: +34 654297582
>>>>>> Skype: mauro.asprea
>>>>>>
>>>>>> Algunos hombres ven las cosas como son y se preguntan porque. Otros
>>>>>> sueñan cosas que nunca fueron y se preguntan por qué no?.
>>>>>> George Bernard Shaw
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Mauro Sebastián Asprea
>>>>>
>>>>> E-Mail: [email protected]
>>>>> Mobile: +34 654297582
>>>>> Skype: mauro.asprea
>>>>>
>>>>> Algunos hombres ven las cosas como son y se preguntan porque. Otros
>>>>> sueñan cosas que nunca fueron y se preguntan por qué no?.
>>>>> George Bernard Shaw
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Mauro Sebastián Asprea
>>>>
>>>> E-Mail: [email protected]
>>>> Mobile: +34 654297582
>>>> Skype: mauro.asprea
>>>>
>>>> Algunos hombres ven las cosas como son y se preguntan porque. Otros
>>>> sueñan cosas que nunca fueron y se preguntan por qué no?.
>>>> George Bernard Shaw
>>>>
>>>> --
>>>> Twitter developer documentation and resources:
>>>> http://dev.twitter.com/doc
>>>> API updates via Twitter: http://twitter.com/twitterapi
>>>> Issues/Enhancements Tracker:
>>>> http://code.google.com/p/twitter-api/issues/list
>>>> Change your membership to this group:
>>>> http://groups.google.com/group/twitter-development-talk
>>>>
>>>
>>>  --
>>> Twitter developer documentation and resources:
>>> http://dev.twitter.com/doc
>>> API updates via Twitter: http://twitter.com/twitterapi
>>> Issues/Enhancements Tracker:
>>> http://code.google.com/p/twitter-api/issues/list
>>> Change your membership to this group:
>>> http://groups.google.com/group/twitter-development-talk
>>>
>>
>>
>>
>> --
>> Mauro Sebastián Asprea
>>
>> E-Mail: [email protected]
>> Mobile: +34 654297582
>> Skype: mauro.asprea
>>
>> Algunos hombres ven las cosas como son y se preguntan porque. Otros sueñan
>> cosas que nunca fueron y se preguntan por qué no?.
>> George Bernard Shaw
>>
>> --
>> Twitter developer documentation and resources: http://dev.twitter.com/doc
>> API updates via Twitter: http://twitter.com/twitterapi
>> Issues/Enhancements Tracker:
>> http://code.google.com/p/twitter-api/issues/list
>> Change your membership to this group:
>> http://groups.google.com/group/twitter-development-talk
>>
>
>  --
> Twitter developer documentation and resources: http://dev.twitter.com/doc
> API updates via Twitter: http://twitter.com/twitterapi
> Issues/Enhancements Tracker:
> http://code.google.com/p/twitter-api/issues/list
> Change your membership to this group:
> http://groups.google.com/group/twitter-development-talk
>



-- 
Mauro Sebastián Asprea

E-Mail: [email protected]
Mobile: +34 654297582
Skype: mauro.asprea

Algunos hombres ven las cosas como son y se preguntan porque. Otros sueñan
cosas que nunca fueron y se preguntan por qué no?.
George Bernard Shaw

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk

Reply via email to