Re: Textfield and change event
Re: Textfield and change event
- Subject: Re: Textfield and change event
- From: Francesco Romano <email@hidden>
- Date: Fri, 24 Jul 2009 17:33:52 +0200
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 this...
The problem is that:
1) the removeItem link must reload all the page (it changes the
array)
why must it reload all the page? It is sufficient if the
updateContainer encloses the part of the page where the array is used.
Yes....
but
2) the observeField event must change only few part of the page (5
static strings)
The problem is that those part are not near, so I can't use a
unique ajaxcontainer.. but.. in the observeField I can only pass a
unique container ID..
You could use AjaxUpdateTrigger or use directly javascript. To
update an updateContainer there is a function
<updateContainerID>Update() you can use.
I'll try with AjaxUpdateTrigger
What can I do?
Francesco
On 24/lug/09, at 12:22, Francesco Romano wrote:
I changed to this:
<webobject name = "cartUpdateContainer">
...
<wo:form>
<ul id = "product-list">
<wo:loop list = "$cart" item = "$anItem">
<webobject name = "listItem"> <-- it's simply a <li>
<ul class = "cprod-right-info">
<li class = "cprod-item-qta">
why not replace this:
<webobject name = "qtaObserveField"/>
<webobject name = "quantityField"/>
with
<webobject name = "qtaObserveField">
<webobject name = "quantityField"/>
</webobject>
and eliminate the id bindings of both tags? Just one possible
pitfall less...
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
</li>
...
<div class = "cprod-admin">
<p class = "cprod-remove"><webobject name = "removeItem"/></p>
</div>
<snip>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden