Share
VIDEOS 1 TO 50
Implementing Local Storage and Cross Document Messaging in HTML5
Implementing Local Storage and Cross Document Messaging in HTML5
Published: 2015/03/05
Channel: Robin Nixon
Getting Started with Firebase Cloud Messaging on the Web - Firecasts
Getting Started with Firebase Cloud Messaging on the Web - Firecasts
Published: 2016/10/17
Channel: Firebase
HTML5 Web Messaging API Demo: Multi-window 2D Canvas Game
HTML5 Web Messaging API Demo: Multi-window 2D Canvas Game
Published: 2013/03/24
Channel: Rodrigo Silveira
Web Messaging 101 Webinar
Web Messaging 101 Webinar
Published: 2016/03/01
Channel: Appboy
Make your Own Instant Messenger - Introduction
Make your Own Instant Messenger - Introduction
Published: 2015/07/21
Channel: howCode
Basic concepts of web applications, how they work and the HTTP protocol
Basic concepts of web applications, how they work and the HTTP protocol
Published: 2014/07/27
Channel: Natural Programmer
Web Messaging Product Overview
Web Messaging Product Overview
Published: 2016/11/16
Channel: Christopher Radanovic
Introducing Amazon Simple Queue Service (SQS) FIFO Queues – Messaging on AWS
Introducing Amazon Simple Queue Service (SQS) FIFO Queues – Messaging on AWS
Published: 2017/06/14
Channel: Amazon Web Services
MESSAGING THE FUTURE!?! - Deep Web Browsing 117
MESSAGING THE FUTURE!?! - Deep Web Browsing 117
Published: 2017/09/25
Channel: SomeOrdinaryGamers
Lunch & Learn - Real Time Web Messaging with SignalR
Lunch & Learn - Real Time Web Messaging with SignalR
Published: 2013/04/30
Channel: Logical Advantage
Web to Device Messaging
Web to Device Messaging
Published: 2017/08/18
Channel: StreetWise CADlink
Using Email and Text Messaging in Practice-Web
Using Email and Text Messaging in Practice-Web
Published: 2017/10/12
Channel: PracticeWebDental
Website Pages Web Messaging Plugin
Website Pages Web Messaging Plugin
Published: 2014/01/14
Channel: clifton calle
Using Web Messaging To Increase Conversions
Using Web Messaging To Increase Conversions
Published: 2017/04/19
Channel: Money Mike
Solace
Solace's Web Messaging Solution
Published: 2013/02/15
Channel: Solace
Huawei M835 lock screen, dialer, web, messaging, youtube app
Huawei M835 lock screen, dialer, web, messaging, youtube app
Published: 2011/07/19
Channel: pavy415
Send SMS Text Messages to Mobile Phone PHP Tutorial
Send SMS Text Messages to Mobile Phone PHP Tutorial
Published: 2016/04/20
Channel: Adam Khoury
Cross Document Messaging (xdm)
Cross Document Messaging (xdm)
Published: 2009/07/29
Channel: DeveloperVideos
Instagram Chat - Direct Messages
Instagram Chat - Direct Messages
Published: 2017/02/09
Channel: Luiz Fernando Sampaio Puretz
WhatsApp web messaging client now available on internet browsers
WhatsApp web messaging client now available on internet browsers
Published: 2015/01/22
Channel: vidya reddy
Mobile and Web Messaging Messaging Protocols for Web and Mobile Devices
Mobile and Web Messaging Messaging Protocols for Web and Mobile Devices
Published: 2017/04/01
Channel: Lance Tran
Firebase Messaging -- Polycasts #59
Firebase Messaging -- Polycasts #59
Published: 2016/12/14
Channel: Google Chrome Developers
How-to Install Web Messaging for LabVIEW from the VIPM Website
How-to Install Web Messaging for LabVIEW from the VIPM Website
Published: 2014/08/10
Channel: Chris R. Larson
Ceasys - Web Messaging - The future of Comment Boards!
Ceasys - Web Messaging - The future of Comment Boards!
Published: 2008/04/25
Channel: sysaec
Bluepulse to introduce its web-based mobile social messaging
Bluepulse to introduce its web-based mobile social messaging
Published: 2008/04/09
Channel: avingusa
Solace
Solace's Web Messaging Solution
Published: 2012/03/19
Channel: Solace
E messaging web Santa Rosa County Sheriff
E messaging web Santa Rosa County Sheriff's Office FL
Published: 2015/07/20
Channel: SantaRosaCounty SheriffsOffice
Firebase Cloud Messaging step by step
Firebase Cloud Messaging step by step
Published: 2016/06/15
Channel: TNT Studios
Louis CK   Instant Messaging
Louis CK Instant Messaging
Published: 2014/11/09
Channel: Web Conn
SMS Messaging, Bulk Voice, Web Messaging by Aadishesh
SMS Messaging, Bulk Voice, Web Messaging by Aadishesh
Published: 2014/03/28
Channel: Aadishesh Jabalpur
Pikabu Web Messaging
Pikabu Web Messaging
Published: 2016/07/27
Channel: Михаил Ребров
PubNub Theme Song - Real-Time Messaging for Web and Mobile Apps
PubNub Theme Song - Real-Time Messaging for Web and Mobile Apps
Published: 2012/08/10
Channel: PubNubTV
Web Design Speed art + Speed Code - Client Messaging Website
Web Design Speed art + Speed Code - Client Messaging Website
Published: 2016/12/27
Channel: Caler Edwards
Wearable Computing:  rapid instant messaging and web search
Wearable Computing: rapid instant messaging and web search
Published: 2010/11/19
Channel: Thad Starner
Messaging and JMS Introduction
Messaging and JMS Introduction
Published: 2015/08/27
Channel: Bharath Thippireddy dot com
Android Studio Tutorial - Firebase Messaging with WebView
Android Studio Tutorial - Firebase Messaging with WebView
Published: 2017/10/04
Channel: EDMT Dev
Introducing Amazon Simple Queue Service (SQS) Server-side Encryption – Messaging on AWS
Introducing Amazon Simple Queue Service (SQS) Server-side Encryption – Messaging on AWS
Published: 2017/05/23
Channel: Amazon Web Services
Comverse Web Converged Messaging
Comverse Web Converged Messaging
Published: 2010/11/09
Channel: ComverseInc
Facebook Launches Standalone Messaging App for the Web
Facebook Launches Standalone Messaging App for the Web
Published: 2015/04/08
Channel: Wochit Tech
Messaging Concepts and  Terminology
Messaging Concepts and Terminology
Published: 2015/08/28
Channel: Bharath Thippireddy dot com
SOAP Web Services 01 - Introduction To Web Services
SOAP Web Services 01 - Introduction To Web Services
Published: 2013/06/12
Channel: Java Brains
Introducing Cost Allocation Tags for Amazon Simple Queue Service (SQS) - Messaging on AWS
Introducing Cost Allocation Tags for Amazon Simple Queue Service (SQS) - Messaging on AWS
Published: 2017/10/19
Channel: Amazon Web Services
HTML5 tutorial: Exploring interactive cross-origin messaging | lynda.com
HTML5 tutorial: Exploring interactive cross-origin messaging | lynda.com
Published: 2012/02/22
Channel: LinkedIn Learning Solutions
Start Messaging: Send and Receive SMS with Computer or Any Application
Start Messaging: Send and Receive SMS with Computer or Any Application
Published: 2012/02/23
Channel: RoutoMessaging
free windows bulk group web sms sending messaging software online mobile text marketing gateway
free windows bulk group web sms sending messaging software online mobile text marketing gateway
Published: 2012/11/09
Channel: usbdatarecovery
The most useless messaging web app ever made
The most useless messaging web app ever made
Published: 2017/08/21
Channel: Jeymz Simmons
DietMaster Web & Go Mobile Messaging Platform
DietMaster Web & Go Mobile Messaging Platform
Published: 2014/03/06
Channel: DietMasterPro
AWS re:Invent 2016: Migrating Enterprise Messaging to the Cloud (ENT217)
AWS re:Invent 2016: Migrating Enterprise Messaging to the Cloud (ENT217)
Published: 2016/12/03
Channel: Amazon Web Services
Updated Deep Web Links of Email, Messaging and Hacking Sites
Updated Deep Web Links of Email, Messaging and Hacking Sites
Published: 2017/08/21
Channel: Gadget Gyani
10
10'' Tablet Android Sanei N10 dual core 3G edition Phone,Messaging,Web TEST via SIM
Published: 2012/11/29
Channel: Tablets World
NEXT
GO TO RESULTS [51 .. 100]

WIKIPEDIA ARTICLE

From Wikipedia, the free encyclopedia
Jump to: navigation, search

Web Messaging or cross-document messaging, is an API introduced in the WHATWG HTML5 draft specification, allowing documents to communicate with one another across different origins, or source domains[1] while rendered in a web browser. Prior to HTML5, web browsers disallowed cross-site scripting, to protect against security attacks. This practice barred communication between non-hostile pages as well, making document interaction of any kind difficult.[1][2] Cross-document messaging allows scripts to interact across these boundaries, while providing a rudimentary level of security.

Requirements and attributes[edit]

Using the Messaging API's postMessage method, plain text messages can be sent from one domain to another, e.g. from a parent document to an IFRAME.[3] This requires that the author first obtain the Window object of the receiving document. As a result, messages can be posted to the following:[2]

  • other frames or iframes within the sender document's window
  • windows the sender document explicitly opens through JavaScript calls
  • the parent window of the sender document
  • the window which opened the sender document

The message event being received has the following attributes:

  • data - The data, or actual content, of the incoming message.
  • origin - The origin of the sender document. This typically includes the scheme, hostname and port. It does not include the path or fragment identifier.[1]
  • source - the WindowProxy of where the document came from (the source window).

postMessage is not a blocking call; messages are processed asynchronously.[4]

Example[edit]

Consider we want document A loaded from example.net to communicate with document B loaded from example.com into an iframe or popup window.[1] The JavaScript for document A will look as follows:

var o = document.getElementsByTagName('iframe')[0];
o.contentWindow.postMessage('Hello B', 'http://example.com/');

The origin of our contentWindow object is passed to postMessage. It must match the origin of the document we wish to communicate with (in this case, document B). Otherwise, a security error will be thrown and the script will stop.[3] The JavaScript for document B will look as follows:

function receiver(event) {
	if (event.origin == 'http://example.net') {
		if (event.data == 'Hello B') {
			event.source.postMessage('Hello A, how are you?', event.origin);
		}
		else {
			alert(event.data);
		}
	}
}
window.addEventListener('message', receiver, false);

An event listener is set up to receive messages from document A. Using the origin property, it then checks that the domain of the sender is the expected domain. Document B then looks at the message, either displaying it to the user, or responding in turn with a message of its own for document A.[1]

Security[edit]

Poor origin checking can pose a risk for applications which employ cross-document messaging.[5] To safeguard against malicious code from foreign domains, authors should check the origin attribute to ensure messages are accepted from domains they expect to receive messages from. The format of incoming data should also be checked that it matches the expected format.[1]

Support[edit]

Support for cross-document messaging exists in current versions of Internet Explorer, Mozilla Firefox, Safari, Google Chrome, Opera, Opera Mini, Opera Mobile, and Android web browser.[6] Support for the API exists in the Trident, Gecko, WebKit and Presto layout engines.[7]

See also[edit]

References[edit]

External links[edit]

Disclaimer

None of the audio/visual content is hosted on this site. All media is embedded from other sites such as GoogleVideo, Wikipedia, YouTube etc. Therefore, this site has no control over the copyright issues of the streaming media.

All issues concerning copyright violations should be aimed at the sites hosting the material. This site does not host any of the streaming media and the owner has not uploaded any of the material to the video hosting servers. Anyone can find the same content on Google Video or YouTube by themselves.

The owner of this site cannot know which documentaries are in public domain, which has been uploaded to e.g. YouTube by the owner and which has been uploaded without permission. The copyright owner must contact the source if he wants his material off the Internet completely.

Powered by YouTube
Wikipedia content is licensed under the GFDL and (CC) license