|
@@ -96,12 +96,13 @@
|
|
</p>
|
|
</p>
|
|
|
|
|
|
<figure><code>
|
|
<figure><code>
|
|
- #button { id=sendButton, body= <<"Send">>,
|
|
|
|
- postback=reaction, source=[userName,message]
|
|
|
|
|
|
+ nitro:update(loginButton,
|
|
|
|
+ #button{id=loginButton,
|
|
|
|
+ body="Login",postback=login,source=[user,pass]});
|
|
</code></figure>
|
|
</code></figure>
|
|
<p>This will produce the following HTML:
|
|
<p>This will produce the following HTML:
|
|
<figure><code>
|
|
<figure><code>
|
|
- <input value="Chat" id="sendButton" type="button"/>
|
|
|
|
|
|
+ <input value="Login" id="loginButton" type="button"/>
|
|
</code></figure>
|
|
</code></figure>
|
|
<p>and JavaScript code:</P>
|
|
<p>and JavaScript code:</P>
|
|
<figure><code>
|
|
<figure><code>
|