Embeddable Feedback? Sure, Please. – A Checklist Aside
Article Continues Beneath
A few of you in all probability noticed our Exterior the Field weblog publish from earlier right now — what you may not have seen is that the pattern feedback within the publish aren’t screenshots, nor are they merely fancied up blockquotes.
They’re a brand new characteristic we’re releasing right now: embedded feedback.
Similar to tweets, now you can embed ALA feedback wherever you want. That is a type of options that we’ve been wanting for our personal functions, after which we figured: so long as we’re constructing it, let’s give everybody the flexibility to embed feedback.
The embed code consists of markup representing the remark (as a fallback for if the script fails to load — for instance, in an RSS feed) and an asynchronous
script tag that fetches a reside remark from our server utilizing AJAX, the contents of that are injected into an iframe. By utilizing AJAX to speak to a cross-origin enabled endpoint reasonably than merely setting the iframe’s
src attribute, we keep away from cross-domain safety points which may stop us from manipulating the contents of the iframe.
The iframe then replaces the fallback markup, and voila — an actual reside embedded remark.
We sit up for seeing what you do with it.