what is in the result part?  ajax updates save the part context and
use the update to post back the updated context.

so, if <div part="update_result">just this text</div> then since
there's no object dependence there, the update will just post the same
text.  now, I'm not sure if there's a method built in that allows for
updating a part with arbitrary content with it, but from what I've
found there is not.

oh, also, if you specify the action, the form becomes a regular form
but that might not be effecting this.

On Aug 29, 12:43 am, raygao <[email protected]> wrote:
> Hi,
>
> I am trying to use the Hobo's Ajax Form. But, it is not working. I am
> on hobo 1.0.1
>
> I have the following:
> <form with="&MyObjectList.new" update="update_result"
> action="update_func">
> <select>
> <option value="1">One</option>
> <option value="2">Two</option>
> </select>
> <submit_tag label="save"/>
> </form>
>
> <div part="update_result" id="update_result">some temporary stuff</
> div>
>
> I can see it through debugging that it does reach "update_func" and a
> response is sent back. But, the div never gets updated. As I am not
> familiar with the inner working of the <form> tag in Hobo, I don't
> know how to fix it.
>
> Can someone please help me? I have already spend 2 days trying this.
> So, far I can get link_to_remote to do ajax update. But, the hobo form
> ajax feature is not working.
>
> Any input will be highly appreciated.
>
> Thanks,
>
> -Ray

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