Forum: Ruby on Rails observing textfields in a form (AJAX)

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
60a3df689ea2a20d11d3986e02f9b7d1?d=identicon&s=25 Javier_CH (Guest)
on 2007-04-05 11:55
(Received via mailing list)
I have a problem and I don't know where to begin with (yes, I'm a
newbie ;-)):

I have an application that holds a graph (with nodes and edges). In
the view the user enters data that is then converted to nodes and
edges: Every formfield-value (in the view) represents a node. I want
the user to use existens nodes if possible, so I'd like him be able to
see suggestions of neighbouring node-names as soon as enters data in a
formfield and changes to another one. It should be a little like the
suggestions you get when you post an url to

---view (form)---

---model (method)---

...the model-method mentioned outputs an array of strings like the
=> ["a_node_name", "another_node_name", "some_node_name"]

Can anyone point me to some example code where something similar is
being made or to a useful documentation? Kind of got no clue where to

Thanks a lot!

This topic is locked and can not be replied to.