Displaying 3 results from an estimated 3 matches for "addmessages".
Did you mean:
addmessage
2008 Apr 29
1
Making new Ajax.Updater within a previous Ajax.Updater call
I have a button which calls a form via Ajax.Updater:
<a href="javascript:void()" onclick="createMessage()">Create Message</
a>
<script>
function createMessage() {
new Ajax.Updater( ''content'', ''message.php'', { method: ''post'' } );
}
</script>
This is the message.php file:
<html>
<head>
2006 Apr 15
0
Component using
...imply 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 component:
<%= render_component(:controller => "hguestbook/GuestBook", :action =>
"viewMessages") %>
<%= session[:addMessageReturnController] = ''/Main''
session[:addMessageReturnAction] = ''guestBook''...
2006 Jul 04
0
Best way of storing and recalling data for display?
I want to store a number of snippets of html representing messages,
and display them in response to user events.
I''m currently storing them in a javascript array at page-load time,
then display individual snippets using Element.update(). The
message array can get extra messages added to it following an ajax
call. The set up looks something like this:
<script