Thanks!
I updated wonder and the class binding works.
I also found the example of the trigger and now everything work...
One last thing about the observe field.
The event is triggered when the field lose the focus.
I don't like this. Is it possible to trigger it when the user change
the value?
The AjaxObserveField should honor your class binding. For me it is
working. Do you have a recent version of Wonder?
For the AjaxUpdateTrigger I think you should find an example in
AjaxExample. Have a look at it.
jw
Am 24.07.2009 um 18:07 schrieb Francesco Romano:
Good idea...
but...
I pas
Good idea...
but...
I pass a class binding but it's not used:
qtaObserveField: AjaxObserveField {
class = "cprod-item-qta";
action = quantityChanged;
updateContainerID = "cartListContainer";
elementName = "li";
}
ASB.observeDescendentFields('
Hi Francesco,
Now I remember why.. because the observer is a div and it
"destroyed" my layout.. but I found the right place and now it seems
to work
you could use the binding 'elementName' of AjaxObserveField to let it
use e.g. li instead of div
jw
smime.p7s
Description: S/MIME c
On 24/lug/09, at 14:41, Johann Werner wrote:
Am 24.07.2009 um 12:30 schrieb Francesco Romano:
I was thinking
Maybe I'm totally wrong...
Looking at the log I can see that it reload all the page.. this is
right... because my container contains almost all the page..
But.. i don't like thi
Am 24.07.2009 um 12:30 schrieb Francesco Romano:
I was thinking
Maybe I'm totally wrong...
Looking at the log I can see that it reload all the page.. this is
right... because my container contains almost all the page..
But.. i don't like this...
The problem is that:
1) the removeItem lin
Hi Francesco,
you have to wrap the field(s) to be observed or if you use the binding
observeFieldID you can only observe one field as an id must be unique
on a html page. As you have a repetition and use a static id you have
the very same id multiple times which is not allowed.
So either
Ok.. I've some problems...
The first thing I tried is to add the ObserveField to observe one field.
It works.. but... I realized that the field to be observed is inside a
wo:loop.. so I removed the binding observeFieldID but now it doesn't
work...
This is a piece of the html:
<--- the aja
use AjaxObserveField
Regards
Amedeo
On 23/lug/09, at 18:29, Francesco Romano wrote:
Hi.
I have a WOTextfield in a page.
I'd like to call an action if the content of the textfield changes.
I tried to insert it inside a woform but this "destroyed" my html
layout, and the event is called only
Hi.
I have a WOTextfield in a page.
I'd like to call an action if the content of the textfield changes.
I tried to insert it inside a woform but this "destroyed" my html
layout, and the event is called only after the "return" button is
pressed.
I don't need (now, but in the future I'll add so
10 matches
Mail list logo