How to embed third-party widgets in Blogger

As a webmaster, how can I allow Blogger users to embed their content in their blogs?

I tried the following solution - a simple button redirecting to:

https://www.blogger.com/blog-this.g?u=[ MY URL ]&t=[ MY WIDGET CODE ]

with a tag inside [ MY WIDGET CODE ].

I had two problems:

  • The tag <script>seems to be automatically removed from the proposed content of the message.

  • even if the user copies and pastes the script, it only works after posting - so the user cannot see how it will look in the preview

Thanks in advance for any advice :)

Note. I know this is probably a security issue, but if a blogger can post content with scripts, why can't he view them?

+4
3

, script , js Google , , js . , codehighlighter, . http://a2znotes.blogspot.com

+1

Blogger, , javascripts , , script jsonp.

:

  • Blogger

    . # 5: Blogger HTML JavaScript

HTML JavaScript Blogger - , . HTML JavaScript , " " Blogger.

, .

+1
<object data=http://xyz.blogspot.com/atom.xml width="600″ height="400″>
<embed src=http://xyz.blogspot.com/atom.xml width="600″ height="400″> </embed>
Error: Embedded data could not be displayed.
</object>

This can help you. Source: http://lowendmac.com/2006/embed-a-blogger-feed-in-your-web-page/

0
source

All Articles