OK, that explains why I was confused. input-many doesn't do any AJAX, it's magic is accomplished via pure Javascript. I think you'll have to use hjq-input-many instead of the standard input-many.

http://cookbook.hobocentral.net/api_tag_defs/hjq-input-many

Bryan

On 10-06-15 03:07 AM, storitel wrote:
Hi Bryan
I've not written any<do-part...>  -  i don't understand how that works
yet :-)

I've got various code has_many and has_many :through relationships (eg
company has many contacts). When I use the edit page of a parent
record for any of these, I've got default ajax + - buttons to add and
subtract child records. So for example I can add contacts when editing
a company.

After installing the datepicker I've overridden the Date input in
application.dryml...

<def tag="input" for="Date"><hjq-datepicker dateFormat="dd-mm-yy"
merge/></def>

as I said above, the calendar appears when i click in date fields for
existing records (eg existing contacts as sub forms in my company edit
form), but it doesn't appear when i use the ajax + button to create a
new record and then click in one of its date fields.

I wondered if it's something i've done, but I get the same effect on
all my child models. For testing I've even tried using the datepicker
to override Integer ad String to make sure it's not something to do
with date fields specifically. Same result - the calendar pops up for
integer fields, or string fields... but only on existing records.



--
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