• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Textfield and change event
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Textfield and change event
      • From: Johann Werner <email@hidden>
References: 
 >Textfield and change event (From: Francesco Romano <email@hidden>)
 >Re: Textfield and change event (From: Amedeo Mantica <email@hidden>)
 >Re: Textfield and change event (From: Francesco Romano <email@hidden>)
 >Re: Textfield and change event (From: Johann Werner <email@hidden>)
 >Re: Textfield and change event (From: Francesco Romano <email@hidden>)
 >Re: Textfield and change event (From: Francesco Romano <email@hidden>)
 >Re: Textfield and change event (From: Johann Werner <email@hidden>)

  • Prev by Date: Re: WebObjects apps in war; maven; where is ERXServletAdaptor; etc.
  • Next by Date: Re: Textfield and change event
  • Previous by thread: Re: Textfield and change event
  • Next by thread: Re: Textfield and change event
  • Index(es):
    • Date
    • Thread