Dear WSG members,

I wanted to implement the Tweetmeme button on some pages of my site http://www.seoworkers.com which pages I served as XML (application/xhtml+xml) for Mozilla based browsers (not for IE), and does not work.

I figured out the cause, but not a solution.

The Tweetmeme scripts have the following problems:

a. document.write does not work in XHTML mode (on XHTML pages served as XML)

b. content written in with document.write may not subsequently appear in the page’s DOM, which means no further access to manipulate it programmatically, and no access to accessibility APIs

c. document.write is conceptually wrong because it treats nodes as serialized text — which they’re not — they’re nodes

To get the button displayed on the the page, I have to add in the head of the document:

<script type="text/javascript" src="http://lab.chitika.com/TinyTweet/tweet.js";></script>

and in the body of the document:

<div class="tweetmeme_button">
<script type="text/javascript">tweetmeme_service = 'bit.ly';</script>
<script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js";>
</script>
</div>

Any workarounds available?

Thanks in advance for your time looking into my problem.

John S. Britsios
Web Architect & Senior SEO Consultant

http://www.seoworkers.com
http://www.webnauts.net

International Phone Numbers:
+1 (323) 580-6285
+44 (20) 8133-7065
+61 (2) 8011-3838
+49 (821) 408-2715
+30 (2310) 774-236

Skype: Webnauts



*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [email protected]
*******************************************************************

  • [WSG] Tweetme... Webnauts Net - Accessibility, SEO & Usability Consulting

Reply via email to