Re: Blogger Feed json-in-script thrown an error
Taufik Nurrohman <[email protected]>
| Newsgroups | gmane.comp.web.blogger.api |
|---|---|
| Message-ID | <[email protected]> |
That is not because of your *Greek* character, but because of your script
tag. Try this:
document.write('<scr' + 'ipt src=" ... "><\/scr' + 'ipt>');
Pada Jumat, 10 Januari 2014 13:19:04 UTC+7, Cluster Amaryllis menulis:
>
> Hi, greetings all.
>
> I have a problem when making JSONP request using blogger public feed,
>
> the url is
>
>
> http://thavmatropio-midea.blogspot.gr/feeds/posts/default/?max-results=1&alt=json-in-script&start-index=108&callback=myCallback
>
> Here's some simple example code
>
> <script>
> function myCallback(json) { console.log(json); }
>
> document.write('<script src="
> http://thavmatropio-midea.blogspot.gr/feeds/posts/default/?max-results=1&alt=json-in-script&start-index=108&callback=myCallback
> "><\/script>');
> </script>
>
> and Here's the error response i got (in the image below)
>
> the blog content mostly used unicode greek character (CMIIW).
>
> Anyone known issues and solutions.?
>
> Thanks.
>
>
> <https://lh6.googleusercontent.com/-WGbialYgR3s/Us-PkkGMDTI/AAAAAAAAAFs/42GnLnXrjQE/s1600/a25kx.jpg>
>
--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/bloggerdev.
For more options, visit https://groups.google.com/d/optout.