Closed danshearmur closed 10 years ago
https://github.com/danshearmur/lamercomments is the widget I was talking about.
In my preliminary experiments adding type="application/javascirpt" to the <script> tag requesting the JSONP worked in latest Chrome, Safari and Opera.
From what I can see this is not a good idea:
@danshearmur thanks for checking this up quickly, mine was just a question precisely because the RFC (which dates back to 2006) states one thing but browsers are often late to adapt for various reasons, so if text/javascript
is still the default for requests generating from the <script>
tag then I guess it's perfectly fine like that.
Glad to help out!
I have added a JSONP callback so that you can grab the comments with javascript on a different domain.
I am working on a javascript widget to display comments from a news story on your own web page/