Loading…
Transcript

geoBot.register_handler(events.WaveletSelfAdded, OnRobotAdded)

geoBot.register_handler(events.BlipSubmitted, OnBlipSubmitted)

#Update the blip with hyperlinks

start = text_index

end = text_index + text_length

blip.range(start, end).annotate('link/manual', link)

wave.getState().submitDelta(newDelta(countKey,voteCount));

wave.getState().submitDelta(newDelta(voteKey,type));

var likeCount = wave.getState().get('likeCount');

if (likeCount) {

document.getElementById('likeCount').innerHTML = likeCount;

}

Understanding

& Extending

Understanding Wave

wavelet

wave

participants

conversation manifest

title

root blip

wavelet

child blips

text

elements

annotations

<line></line>

'We expect PamelaFox and Brian Kennish from Google toa ttend the event.'

<w:gadget author='monika7@wavesandbox.com' url='http://google-wave-resources.googlecode.com/svn/trunk/samples/extensions/gadgets/mappy/mappy.xml'>

<w:state name='center' value='[42.36277732618222,-71.08740091323853]'/>

<w:state name='zoom' value='15'/>

</w:gadget>

(43,138) : style/color=rgb(56, 118, 29)

(43,140) : style/fontWeight=bold

(116,128) : link/manual=http://sites.google.com/a/gtugs.org/massgtug

(252,296) : link/auto=http://massgtug.gtugs.org/news/wave-hackaton

(302,310) : style/fontWeight=bold

blip

Massachusetts GTUG is organizing Wave hackathon on November 21st.

If you would like to attend, check out: http://massgtug.gtugs.org/news/wave-hackaton

and register for it.

We expect Pamela Fox and Brian Kennish from Google to attend the event.

text+annotations+elements

Extending Wave

style/backgroundColor

style/color

style/fontFamily

style/fontSize

style/fontStyle

style/fontWeight

style/textDecoration

style/verticalAlign

link/wave

link/manual

<line>

<gadget>

<installer>

<attachment>

<image>

<input>

<textarea>

<password>

<checkbox>

events

events": [

{

"type": "WAVELET_SELF_ADDED",

"modifiedBy": "pamela.fox@wavesandbox.com",

"timestamp": 1266930870337,

"properties": {

"blipId": "b+zuyrwBCaD"

}

}

],...

b+zuyrwBCaD": {

"blipId": "b+zuyrwBCaD",

"contributors": [

"pamela.fox@wavesandbox.com"

],

"creator": "pamela.fox@wavesandbox.com",

"content": "\nMy Epic Road Trip\n\nI\u0027m going to California, then New York, then Las Vegas. Whatever happens in Vegas stays in Vegas (except when it\u0027s live waved). Tee hee.\n\n",

"lastModifiedTime": 1266930748422,

"version": 25,

"waveId": "wavesandbox.com!w+zuyrwBCaC",

"waveletId": "wavesandbox.com!conv+root"

}

Robots

operations

{

"params": {

"blipId": "b+zuyrwBCaD",

"waveletId": "wavesandbox.com!conv+root",

"waveId": "wavesandbox.com!w+zuyrwBCaC",

"modifyAction": {

"modifyHow": "ANNOTATE",

"values": [

"http://maps.google.com/maps?q=Las+Vegas&ll=36.1719,-115.14z=6"

],

"annotationKey": "link/manual"

},

"range": {

"start": 65,

"end": 74

}

},

"method": "document.modify",

"id": "op3"

}

Gadgets

state delta

state callback