• 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: Wonder AjaxSlider
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Wonder AjaxSlider


  • Subject: Re: Wonder AjaxSlider
  • From: John Ours <email@hidden>
  • Date: Wed, 14 Jan 2009 12:20:03 -0500


On Jan 14, 2009, at 12:40 AM, Chuck Hill wrote:


On Jan 13, 2009, at 9:35 PM, John Ours wrote:

On Jan 14, 2009, at 12:11 AM, Chuck Hill wrote:


On Jan 12, 2009, at 7:24 AM, John Ours wrote:

Hi All,

Quick question about the Ajax Slider component in Wonder. What is the rationale behind the OnChangeServer binding? The behavior seems to be that if the binding is set - regardless of its value - an ajax post occurs to set the value. A quick peek at the source confirms that's what's going on...and the value of the binding is being ignored. Was this the intended behavior and I'm missing something? Or would this binding be better expressed as a boolean?


The binding is supposed to return a JavaScript snippet to be run in the browser after the slider changes.



Thanks Chuck. How does OnChangeServer differ from OnChange then?

onChange is static JavaScript, it does not make a trip to the server. onChangeServer sends the current slider position/value back to the server and has the application dynamically generate the JavaScript to return to and execute on the client.



[...snip...]

Does that code make more sense with the above explanation?


Sure does, you're absolutely correct.

I hadn't looked hard enough at the Javascript that was generated with the slider...when onChangeServer is bound, the value it returns is injected into the event before the script from the onChange binding (wrapped as parentFunction). Makes sense now.

Thanks!






_______________________________________________ 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
References: 
 >Wonder AjaxSlider (From: John Ours <email@hidden>)
 >Re: Wonder AjaxSlider (From: Chuck Hill <email@hidden>)
 >Re: Wonder AjaxSlider (From: John Ours <email@hidden>)
 >Re: Wonder AjaxSlider (From: Chuck Hill <email@hidden>)

  • Prev by Date: RE: Bug ID 6342679: NSTimestamp Happy New Year Bug
  • Next by Date: Re: an Ajax Drag and Drop question
  • Previous by thread: Re: Wonder AjaxSlider
  • Next by thread: split install issue with 5.4.3
  • Index(es):
    • Date
    • Thread