Bill,
Sorry, it;s because I wrote the last post while playing around with it
trying to experiment (I really only have one version on this
system).....BUT, "associate_inoutexplanation" is the id of the text
field I am trying to observe, as well as what I put into my
observe_field to observe it. The partial itself creates the following
html where you can see the associate_inoutexplanation as both the
input field's id and the javascript created by my
observe_field "associate_inoutexplanation", :url => {:controller
=> ...
in my partial. Below is the html created.....can you see why the
observer is not passing on to /channels/
speakassfromwhereaboutspartial ? -Janna B
<div id="whereabouts">
<form action="/associates/1" class="edit_associate"
id="edit_associate_1" method="post" name="whereaboutsform"><div
style="margin:0;padding:0"><input name="_method" type="hidden"
value="put" /><input name="authenticity_token" type="hidden"
value="xgorbWtiTdb15yhJ9il0TbbD1szBHSAcWb7p6GVffF0=" /></div>
<label for="associate_inoutexplanation">Hello <b>Ralph Vince</b>
please update your whereabouts || tell us what you're doing:</
label><br />
<input id="associate_inoutexplanation" name="associate
[inoutexplanation]" size="30" type="text" value="This is Sunday msg
#2" />
<input class="button" id="associate_submit" name="commit"
type="submit" value="Update" />
<script type="text/javascript">
//<![CDATA[
new Form.Element.EventObserver('associate_inoutexplanation', function
(element, value) {new Ajax.Request('/channels/
speakassfromwhereaboutspartial', {asynchronous:true, evalScripts:true,
parameters:'associate_inoutexplanation=' + value +
'&authenticity_token=' + encodeURIComponent
('xgorbWtiTdb15yhJ9il0TbbD1szBHSAcWb7p6GVffF0=')})})
//]]>
</script>
</form>
</div>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---