hi, guys, I am trying to pass a ruby value to a javascript function
which is called in “:complete” of a form_remote_tag, but everytime I
submit the form, javascript can’t get the changed value.
Now I put the value into XMLHttpRequest, and pass
the whole responseText of XMLHttpRequest to the javascript function.
Thus I can parse the text and get the updated ruby value.
It’s quite a lame solution, I think, but by now I have no other ways.
Deramoo A. wrote:
thank you, phil, I tried that way, but it didn’t work. The value
remained to
be the same as html first rendered.
deramoo
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.