Displaying 2 results from an estimated 2 matches for "reponsetext".
Did you mean:
responsetext
2005 Sep 01
0
Teething problems with Ajax.updater
...;p><label for="order_unit_price">Unit price</label><br/>
<%= text_field ''order'', ''unit_price'' %></p>
<%= observe_field(''order_unit_price'', :frequency => 0, :complete =>
''eval(request.reponseText)'', :url => { :action => :calculate})%>
...
<div id="update_1" style="margin:10px; padding:10px; border: dotted 1px
red">
As you can see entering a value in the order_unit_price field fires of
an Ajax.request to the calculate method of the controller,...
2007 Sep 21
1
Weird data from evalJSON
I am trying to have prototype perform a request and return to me a
javascript object representing the json string returned by the
request. I want to iterate over the contents to print each object in
the json string. The value of transport.reponseText in onSuccess is
what I would expect. But once I try to perform evalJSON() on this
text it gives me a bunch of extra function()s when i try to iterate
over the result. Why does the object contain these function()s and
how can I iterate over just my objects?
Below is my code along with the strange...