Re: Textfield and change event
Re: Textfield and change event
- Subject: Re: Textfield and change event
- From: Johann Werner <email@hidden>
- Date: Fri, 24 Jul 2009 14:41:25 +0200
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.
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.
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...
</li>
...
<div class = "cprod-admin">
<p class = "cprod-remove"><webobject name = "removeItem"/></p>
</div>
<snip>
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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