search for: addmessage

Displaying 3 results from an estimated 3 matches for "addmessage".

2008 Apr 29
1
Making new Ajax.Updater within a previous Ajax.Updater call
...; <tr><td>Message: </td><td colspan="2"><textarea cols="39" rows="8" name="info" id="info"></textarea></td></tr> <tr><td></td><td><input type="button" onclick="addMessage()" value="Add FYI" class="def"></td ></tr> </table> </form> <script> function addFYI() { new Ajax.Updater( ''fyi'', ''addmessage.php'', { method: ''post'', parameters: $(''FYIForm'...
2006 Apr 15
0
Component using
Hello all, I have a simple task. I need to create a guestbook component, and render it from the main application. The guestbook have the following controller actions: viewMessages - simply shows messages from model addMessage - generates form that accept message text, username, password. The form points to saveMessage action. saveMessage - receives data from addMessage action. On the main application i have application.rhtml layout, and template that renders viewMessages and addMessages actions from guestbook compone...
2006 Jul 04
0
Best way of storing and recalling data for display?
...bject}</strong></span> <span class=\"messageFieldLabel\">Date:</span><span class= \"messageField\">#{h msg.sent_at}</span> <span>#{(h msg.body).gsub(/\n/, "<br/>")}</span>''") %> AppController.addMessage(<%=msg.id%>,"<%=html_insert%>"); //store the message for later retrieval <% end %> </script> ...which works, but it just feels so...unpleasant. Embedding this big javascript stringy mess in the page source, all those escape characters... there must be a...