(英文转载)Web开发者都应该了解的新兴技术
Emerging Techniques Every Web Developer Should Know
by Antonio Lupetti oEmbed is basically an open format for allowing an embedded representation of a URL on webpages. Facebook probably has one of the most popular implementation of oEmbed API. For example, when you copy a link from YouTube, Vimeo, Flickr, into your status bar, Facebook converts this link into a movie or image embedded on your profile.
Previously on Woork Up I wrote this interesting post “Learning oEmbed: Convert Links Into Embedded Content” where I explained how to use oEmbed API to implement a Facebook-like link-to-embedded-content feature. The tutorial is really simple, easy to customize and reuse on your projects. A working example is also available.
HTML 5 contentEditableThe HTML 5 contentditable attribute allows to make editable the content within a HTML element with the contenteditable state set to “true”. This attribute is useful for example for easily developing edit in-place features or advanced rich text editors without using third party resources. All major browsers (IE, Firefox, Safari, Chrome) implement this attribute and here is a sample usage:
You can use document.execCommand to add some basic features to your custom editor simply adding this code in the head tag of your webpage:
If you want to implement OAuth protocol on your application also take a look at the following links:
Implement OAuth for Google
Implement OAuth for Twitter
Implement OAuth for Yahoo