Use the curl_connection_timeout setting for the overall timeout too, this bug was...
[shindig.git] / javascript / container / sample-pubsub-publisher.xml
blob7d6784707bf8b0e7b659b0b0543e5d1aa50fc6d4
1 <?xml version="1.0" encoding="UTF-8"?>
2 <Module>
3 <ModulePrefs title="Sample PubSub Publisher"
4              height="250">
5 <Require feature="pubsub"/>
6 </ModulePrefs>
7 <Content type="html">
8 <![CDATA[
9 <script>
10 function publish() {
11   var message = Math.random();
12   gadgets.pubsub.publish("random-number", message);
13   document.getElementById("output").innerHTML = message;
16 </script>
17 <div>
18 <input type="button" value="Publish a random number" onclick="publish()"/>
19 </div>
20 <div id="output">
21 </div>
22 ]]>
23 </Content>
24 </Module>