HTTPS clone URL
Subversion checkout URL
lorenzos edited this page · 1 revision
var comm = new CrossDomainFragment(options);
options: (object) Options for the class. They are all listed below.
<iframe>element or a
pollingInterval: Defines the interval in milleseconds between each hash fragment check (default:
250). It has to be shorter than the minimum expected inteval between two incoming messages.
receive(message): A message has been received.
send(message): A message has been sent.
send(message): Sends a message.
start(): Starts listening for incoming messages (called automatically).
stop(): Stops listening for incoming messages.