Re: Error 500 adding social share buttons to page using javascript addthis_widget.js

143 views
Skip to first unread message

Stu Wilson

unread,
Jan 4, 2013, 10:41:38 AM1/4/13
to reddot-c...@googlegroups.com
Anthoin

It's the fb:like:layout="button_count" which .net is interpreting as a .net command.

I use the first example from this page most commonly for ASPX pages.

http://support.addthis.com/customer/portal/articles/125751-using-addthis-parameters-with-net#.UOb1dHfQYXQ

so your link would become

 <a class="addthis_button_facebook_like" <%="fb:like:layout='button_count' " %>></a>

The code should not be enclosed in pre-execute, otherwise the same issue will occur.

If you have a target page which is pure HTML, then you will need to use the JS example.

Stu

On Friday, 4 January 2013 14:08:49 UTC, Anthoin wrote:
Hi,

Has anyone come across this problem before?.

To test the code provided by addthis.com I added the following to a page.

<!IoRangeRedDotMode>
<div class="addthis_toolbox addthis_default_style ">
<a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>
<a class="addthis_button_tweet"></a>
</div>
<script type="text/javascript" src="http://s7.addthis.com/js/300/addthis_widget.js#pubid=abcabc"></script>
<!/IoRangeRedDotMode>

using editbyform and editing the source code for a test page and then switching to design view
the Facebook and Twitter share icons appeared, click on OK go into preview and we get following error

The remote server returned an error: 500 internal server error.The page cannot be displayed, check the RDExecute and PreExecute settings.

It's a mystery to me.

Anthoin.
 

Reply all
Reply to author
Forward
0 new messages