DIV partial update question

Hello everybody

I'm learning rails, buidling my first app and got stucked with one
problem.

I have some client model with institution select list. (Client
belongs_to institution). Since I'm comming from desktop app world, I
would like to build function for user to add new institution and refresh
combo during client edit with ajax. With asp.net i'd use update panel.
Here... really don't know. Please help

Tried with google but I'm not any smarter :slight_smile:

Using rails3.

Thanks to everybody in advance

Miros Malich wrote in post #972621:

Hello everybody

I'm learning rails, buidling my first app and got stucked with one
problem.

I have some client model with institution select list. (Client
belongs_to institution). Since I'm comming from desktop app world,

[...]

That's sort of a bad reason to do something. Web apps generally
shouldn't work exactly like desktop apps. The Web medium is different
from the desktop medium, both technically and in the UI idioms that have
been established.

Best,

If this is your first app I would suggest initially not using ajax
until you have got the rest of it working. Where you might want to
use ajax just update the whole page. However, if you really want to
jump in at the deep end, do you understand the basics of Ajax? If not
I suggest finding some tutorials and working through them, then work
out how to apply it to your particular problem.

I agree with Marnen, though, the paradigms used for the UI on desktop
apps are not necessarily the best ones to use for a web app.

Colin

Colin Law wrote in post #972635: