I have a model new form, pretty much default except for a couple of
overridden fields including my own.  My modification is to link to a
page to create a new parent (belongs_to) object associated with this
class.

What I really want is this:  Click the link, open a smaller window
where the new data can be entered and once the data is entered (there
is some processing associated with this) have the window close and
have the dropdown refresh.

Is there a hobo way to do this or a BETTER way to do this than what I
am thinking?  I looked at using PART and UPDATE but the field to be
updated is within a form, on page A, but the updating would be
triggered from page B.  I don't think that can work.  I thought of
having a javascript function to open the other window and once the JS
returns then an UPDATE could work, no?

I am just not sure what the best way to do something like this would
be.  So, to summarize,

<form>
  <field a>
  <field b>
  <field c><a action="new">Create New XXX</a>
  <field d>
  <etc>
</form>

...where <field c><a action="new"> would open the create page
(new.dryml) for that particular model and once the new model was
created, the <field c> (which is a select) would add the new model to
its list of options.

Does this make sense?  Should I be approaching the problem
differently?

Thanks for your thoughts.

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" 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/hobousers?hl=en.

Reply via email to