I am trying to use the Ajax helper method observeForm, yet however it
appears to only fire once. By that I mean, I am using it to change
dropdowns but once the dropdown has changed, changing it again has no
effect whatsoever.
Previously I had used observeField and that had worked very well - but
now I need for various dropdowns to influence each other and
observeField is a bit cumbersome for that.
> I am trying to use the Ajax helper method observeForm, yet however it
> appears to only fire once. By that I mean, I am using it to change
> dropdowns but once the dropdown has changed, changing it again has no
> effect whatsoever.
> Previously I had used observeField and that had worked very well - but
> now I need for various dropdowns to influence each other and
> observeField is a bit cumbersome for that.
OK - I guess that's why when I used ObserveField, it was ok? I mean I
had used ObserveField individually for the dropdowns before and it
continued working (the views that were loaded in by Ajax repopulated
the select box parameters). Is there any way to keep ObserveForm
working if I am to replace the contents of the form (but not the form
itself) ?
Cheers,
Gaioshin
On Oct 24, 4:41 am, "Dr. Loboto" <drlob...@gmail.com> wrote:
> Observe stops to work if you replace observed elements by AJAX, for
> example.
> On Oct 23, 8:59 pm, Gaioshin <wmyche...@gmail.com> wrote:
> > Hi guys,
> > I am trying to use the Ajax helper method observeForm, yet however it
> > appears to only fire once. By that I mean, I am using it to change
> > dropdowns but once the dropdown has changed, changing it again has no
> > effect whatsoever.
> > Previously I had used observeField and that had worked very well - but
> > now I need for various dropdowns to influence each other and
> > observeField is a bit cumbersome for that.
> OK - I guess that's why when I used ObserveField, it was ok? I mean I
> had used ObserveField individually for the dropdowns before and it
> continued working (the views that were loaded in by Ajax repopulated
> the select box parameters). Is there any way to keep ObserveForm
> working if I am to replace the contents of the form (but not the form
> itself) ?
> Cheers,
> Gaioshin
> On Oct 24, 4:41 am, "Dr. Loboto" <drlob...@gmail.com> wrote:
> > Observe stops to work if you replace observed elements by AJAX, for
> > example.
> > On Oct 23, 8:59 pm, Gaioshin <wmyche...@gmail.com> wrote:
> > > Hi guys,
> > > I am trying to use the Ajax helper method observeForm, yet however it
> > > appears to only fire once. By that I mean, I am using it to change
> > > dropdowns but once the dropdown has changed, changing it again has no
> > > effect whatsoever.
> > > Previously I had used observeField and that had worked very well - but
> > > now I need for various dropdowns to influence each other and
> > > observeField is a bit cumbersome for that.
> If you replace form content simpler use ObserveField. Or maybe re-
> observe form on each reload. Check yourself.
> On Oct 24, 2:59 pm, Gaioshin <wmyche...@gmail.com> wrote:
> > OK - I guess that's why when I used ObserveField, it was ok? I mean I
> > had used ObserveField individually for the dropdowns before and it
> > continued working (the views that were loaded in by Ajax repopulated
> > the select box parameters). Is there any way to keep ObserveForm
> > working if I am to replace the contents of the form (but not the form
> > itself) ?
> > Cheers,
> > Gaioshin
> > On Oct 24, 4:41 am, "Dr. Loboto" <drlob...@gmail.com> wrote:
> > > Observe stops to work if you replace observed elements by AJAX, for
> > > example.
> > > On Oct 23, 8:59 pm, Gaioshin <wmyche...@gmail.com> wrote:
> > > > Hi guys,
> > > > I am trying to use the Ajax helper method observeForm, yet however it
> > > > appears to only fire once. By that I mean, I am using it to change
> > > > dropdowns but once the dropdown has changed, changing it again has no
> > > > effect whatsoever.
> > > > Previously I had used observeField and that had worked very well - but
> > > > now I need for various dropdowns to influence each other and
> > > > observeField is a bit cumbersome for that.