Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HTML Setup/Backend Web Server: Add message sending capabilities.
Adds a button/page to send messages to frontends, defaulting to broadcast to all frontends. There are a couple of improvements I'd like to see here, such as making the list of frontends a dropdown instead of text entry and validating the UDP port value... but this works pretty nicely for now. Adds a util function to show and hide a div that might come in handy later on. Here it's used to hide advanced options.
- Loading branch information
Robert McNamara
committed
Apr 7, 2011
1 parent
59f88dd
commit a41a2ad
Showing
3 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<div id='send-message'> | ||
<div class='Title'>Send a Message</div> | ||
<table border=0 cellpadding=2 cellspacing=2> | ||
<tr><th align=right>Message Text:</th> | ||
<td><input id='message' size=200> | ||
</td> | ||
</tr> | ||
</table> | ||
|
||
<input type="checkbox" name="advanced" onclick=toggleShowDiv('Advanced') value="Show Advanced" checked>Send to all frontends | ||
|
||
<div id='Advanced'> | ||
<hr>Advanced Options | ||
<table border=0 cellpadding=2 cellspacing=2> | ||
<tr><th align=right>IP Address:</th> | ||
<td><input id='address' size=20 value='255.255.255.255'> | ||
</td> | ||
</tr> | ||
<tr><th align=right>UDP Port:</th> | ||
<td><input id='port' size=10 value='6948'> | ||
</td> | ||
</tr> | ||
</table> | ||
</div> | ||
<hr> | ||
<input type=button value='Send This Message' onClick='javascript:sendMessage()'> | ||
|
||
</div> | ||
|
||
<script language="JavaScript" type="text/javascript"> | ||
$("#Advanced").hide(); | ||
</script> | ||
|