RE: [cfaussie] bind complete

2012-04-19 Thread Steve Onnis
Thanks for that though it isn't quite what i am looking for.

 

I want something that will fire when a bind process has been completed. What
you have suggested below will fire when the value of the selectchange
select box has been changed but it doesn't fire when the selectbox is
initially loaded and populated by the binding process.

 

Basically what i am doing is creating some custom selectbox UI's and i need
to know when the bind has completed so i can update my custom selecbox UI to
reflect the new list of options.

 

From: Andrew Scott [mailto:andr...@andyscott.id.au] 
Sent: Wednesday, 18 April 2012 1:01 PM
To: cfaussie@googlegroups.com
Subject: Re: [cfaussie] bind complete

 

Steve what you need to do then is something like this

 

cfajaxproxy bind=javascript:selectchange({changevalue}) 

 

function mediachange(x) {

console.log(x);

}

 

 

That is provided your cfselect is something like this.

 

cfselect name=somename id=selectchange bind=cfc:component.getMethod()
/

 

The ajaxproxy will then bind the change event to the cfselect, in which you
can then do what you need to do based on the value selected. If that means
changing another cfselect or doing something else.

 

Now I am almost positive that the bind finished will change the value, hence
fire an on change event.

 


-- 

Regards,

Andrew Scott

WebSite: http://www.andyscott.id.au http://www.andyscott.id.au/ /

Google+: http://plus.google.com/108193156965451149543

 

 

 

On Wed, Apr 18, 2012 at 12:50 PM, Steve Onnis st...@cfcentral.com.au
wrote:

I personaly don't like using it.  It is being used within an existing app i
am working on so i am pretty locked to what is there, and i believe it is
stil CF8 also

-- 
You received this message because you are subscribed to the Google Groups
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/cfaussie?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.



RE: [cfaussie] bind complete

2012-04-19 Thread Steve Onnis
After reading up on it you cant do what i want unless you use the
cfajaxproxy so i have stripped out the cfselect and just change it to
populate it manually using my own code rather than the cfselect binding

 

I needed to use the cfajaxproxy and then set up a setCallbackHandler()
method on the proxy object.

 

All working now J

 

From: Blair McKenzie [mailto:shi...@gmail.com] 
Sent: Friday, 20 April 2012 2:37 PM
To: cfaussie@googlegroups.com
Subject: Re: [cfaussie] bind complete

 

Ah, ok.

Typically in that situation we would have the third field also watch the
first field, and in the background do similar checks as the second field.

Blair

On Fri, Apr 20, 2012 at 2:05 PM, Steve Onnis st...@cfcentral.com.au wrote:

Thanks for that though it isn't quite what i am looking for.

 

I want something that will fire when a bind process has been completed. What
you have suggested below will fire when the value of the selectchange
select box has been changed but it doesn't fire when the selectbox is
initially loaded and populated by the binding process.

 

Basically what i am doing is creating some custom selectbox UI's and i need
to know when the bind has completed so i can update my custom selecbox UI to
reflect the new list of options.

 

From: Andrew Scott [mailto:andr...@andyscott.id.au] 
Sent: Wednesday, 18 April 2012 1:01 PM


To: cfaussie@googlegroups.com
Subject: Re: [cfaussie] bind complete

 

Steve what you need to do then is something like this

 

cfajaxproxy bind=javascript:selectchange({changevalue}) 

 

function mediachange(x) {

console.log(x);

}

 

 

That is provided your cfselect is something like this.

 

cfselect name=somename id=selectchange bind=cfc:component.getMethod()
/

 

The ajaxproxy will then bind the change event to the cfselect, in which you
can then do what you need to do based on the value selected. If that means
changing another cfselect or doing something else.

 

Now I am almost positive that the bind finished will change the value, hence
fire an on change event.

 


-- 

Regards,

Andrew Scott

WebSite: http://www.andyscott.id.au http://www.andyscott.id.au/ /

Google+: http://plus.google.com/108193156965451149543

 

 

 

On Wed, Apr 18, 2012 at 12:50 PM, Steve Onnis st...@cfcentral.com.au
wrote:

I personaly don't like using it.  It is being used within an existing app i
am working on so i am pretty locked to what is there, and i believe it is
stil CF8 also

-- 
You received this message because you are subscribed to the Google Groups
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/cfaussie?hl=en.

-- 
You received this message because you are subscribed to the Google Groups
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to
cfaussie+unsubscr...@googlegroups.com
mailto:cfaussie%2bunsubscr...@googlegroups.com .
For more options, visit this group at
http://groups.google.com/group/cfaussie?hl=en.

 

-- 
You received this message because you are subscribed to the Google Groups
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/cfaussie?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.



Re: [cfaussie] bind complete

2012-04-19 Thread Andrew Scott
Steve if that is what you wish to do then, this is what you need to do.

cfajaxproxy bind=javascript:selectchange({changevalue})

As stated this binds a select change, but in your case you wish to do it
when it succeeds or finishing loading. Then you will need to read up a bit
more about this over at the docs.

http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_a-b_3.html


You will see an option for onSuccess or onError.


-- 
Regards,
Andrew Scott
WebSite: http://www.andyscott.id.au/
Google+: http://plus.google.com/108193156965451149543



On Fri, Apr 20, 2012 at 2:05 PM, Steve Onnis st...@cfcentral.com.au wrote:

 Thanks for that though it isn’t quite what i am looking for.

 ** **

 I want something that will fire when a bind process has been completed.
 What you have suggested below will fire when the value of the
 “selectchange” select box has been changed but it doesn’t fire when the
 selectbox is initially loaded and populated by the binding process.

 ** **

 Basically what i am doing is creating some custom selectbox UI’s and i
 need to know when the bind has completed so i can update my custom selecbox
 UI to reflect the new list of options.

 **


-- 
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.



RE: [cfaussie] bind complete

2012-04-19 Thread Steve Onnis
onSuccess doesn't get fired when it initially loads though for some reason.
onSuccess was fired on subsequent calls but not on the initial one that
loads the data the first time.

 

From: Andrew Scott [mailto:andr...@andyscott.id.au] 
Sent: Friday, 20 April 2012 2:52 PM
To: cfaussie@googlegroups.com
Subject: Re: [cfaussie] bind complete

 

Steve if that is what you wish to do then, this is what you need to do.

 

cfajaxproxy bind=javascript:selectchange({changevalue}) 

 

As stated this binds a select change, but in your case you wish to do it
when it succeeds or finishing loading. Then you will need to read up a bit
more about this over at the docs.

 

http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_a-b_3
.html 

 

You will see an option for onSuccess or onError.

 

-- 

Regards,

Andrew Scott

WebSite: http://www.andyscott.id.au http://www.andyscott.id.au/ /

Google+: http://plus.google.com/108193156965451149543

 

 

On Fri, Apr 20, 2012 at 2:05 PM, Steve Onnis st...@cfcentral.com.au wrote:

Thanks for that though it isn't quite what i am looking for.

 

I want something that will fire when a bind process has been completed. What
you have suggested below will fire when the value of the selectchange
select box has been changed but it doesn't fire when the selectbox is
initially loaded and populated by the binding process.

 

Basically what i am doing is creating some custom selectbox UI's and i need
to know when the bind has completed so i can update my custom selecbox UI to
reflect the new list of options.

 

-- 
You received this message because you are subscribed to the Google Groups
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/cfaussie?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.



[cfaussie] bind complete

2012-04-17 Thread Steve Onnis
Is there a method you can call when an ajax bind update has been completed?

 

I have 2 select boxes (country/state) and state gets updated based on the
selection of the country.  When the state select box has been updated i want
it to trigger something else.

 

Is this possible?

 

Steve

-- 
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.



Re: [cfaussie] bind complete

2012-04-17 Thread Blair McKenzie
At the moment that would be difficult. Obviously you can ftWatch the state
field to update a third field, but for custom behaviour you will need to
reproduce some of the ftWatch functionality in your own javascript:
$j(select[name^=mystate]).live(click,function(){ ... });

Blair

On Wed, Apr 18, 2012 at 12:06 PM, Steve Onnis st...@cfcentral.com.auwrote:

 Is there a method you can call when an ajax bind update has been completed?
 

 ** **

 I have 2 select boxes (country/state) and state gets updated based on the
 selection of the country.  When the state select box has been updated i
 want it to trigger something else.

 ** **

 Is this possible?

 ** **

 Steve

 --
 You received this message because you are subscribed to the Google Groups
 cfaussie group.
 To post to this group, send email to cfaussie@googlegroups.com.
 To unsubscribe from this group, send email to
 cfaussie+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/cfaussie?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.



RE: [cfaussie] bind complete

2012-04-17 Thread Steve Onnis
I am working with existing code which is using the cfselect tag.  I was
hoping there might be an onBindComplete function or similar

 

From: Andrew Scott [mailto:andr...@andyscott.id.au] 
Sent: Wednesday, 18 April 2012 12:14 PM
To: cfaussie@googlegroups.com
Subject: Re: [cfaussie] bind complete

 

You mean something like this?

 

http://www.andyscott.id.au/2010/7/25/ColdFusion-and-populating-a-dropdown-ba
sed-on-the-selection-of-another 

 

 

-- 

Regards,

Andrew Scott

WebSite: http://www.andyscott.id.au http://www.andyscott.id.au/ /

Google+: http://plus.google.com/108193156965451149543

 

On Wed, Apr 18, 2012 at 12:06 PM, Steve Onnis st...@cfcentral.com.au
wrote:

Is there a method you can call when an ajax bind update has been completed?

 

I have 2 select boxes (country/state) and state gets updated based on the
selection of the country.  When the state select box has been updated i want
it to trigger something else.

 

Is this possible?

 

Steve

-- 
You received this message because you are subscribed to the Google Groups
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to
cfaussie+unsubscr...@googlegroups.com
mailto:cfaussie%2bunsubscr...@googlegroups.com .
For more options, visit this group at
http://groups.google.com/group/cfaussie?hl=en.





-- 
You received this message because you are subscribed to the Google Groups
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/cfaussie?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.



Re: [cfaussie] bind complete

2012-04-17 Thread Blair McKenzie
No, but that's a good idea. There are several improvements to the watch
stuff that would make custom access easier. Would you be willing to use the
latest branch code?

Blair

On Wed, Apr 18, 2012 at 12:20 PM, Steve Onnis st...@cfcentral.com.auwrote:

 I am working with existing code which is using the cfselect tag.  I was
 hoping there might be an onBindComplete function or similar

 ** **

 *From:* Andrew Scott [mailto:andr...@andyscott.id.au]
 *Sent:* Wednesday, 18 April 2012 12:14 PM
 *To:* cfaussie@googlegroups.com
 *Subject:* Re: [cfaussie] bind complete

 ** **

 You mean something like this?

 ** **


 http://www.andyscott.id.au/2010/7/25/ColdFusion-and-populating-a-dropdown-based-on-the-selection-of-another
  

 ** **

 ** **

 -- 

 Regards,

 Andrew Scott

 WebSite: http://www.andyscott.id.au/

 Google+: http://plus.google.com/108193156965451149543

 ** **

 On Wed, Apr 18, 2012 at 12:06 PM, Steve Onnis st...@cfcentral.com.au
 wrote:

 Is there a method you can call when an ajax bind update has been completed?
 

  

 I have 2 select boxes (country/state) and state gets updated based on the
 selection of the country.  When the state select box has been updated i
 want it to trigger something else.

  

 Is this possible?

  

 Steve

 --
 You received this message because you are subscribed to the Google Groups
 cfaussie group.
 To post to this group, send email to cfaussie@googlegroups.com.
 To unsubscribe from this group, send email to
 cfaussie+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/cfaussie?hl=en.



 

 --
 You received this message because you are subscribed to the Google Groups
 cfaussie group.
 To post to this group, send email to cfaussie@googlegroups.com.
 To unsubscribe from this group, send email to
 cfaussie+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/cfaussie?hl=en.

 --
 You received this message because you are subscribed to the Google Groups
 cfaussie group.
 To post to this group, send email to cfaussie@googlegroups.com.
 To unsubscribe from this group, send email to
 cfaussie+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/cfaussie?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.



RE: [cfaussie] bind complete

2012-04-17 Thread Steve Onnis
I personaly don't like using it.  It is being used within an existing app i
am working on so i am pretty locked to what is there, and i believe it is
stil CF8 also

 

From: Blair McKenzie [mailto:shi...@gmail.com] 
Sent: Wednesday, 18 April 2012 12:47 PM
To: cfaussie@googlegroups.com
Subject: Re: [cfaussie] bind complete

 

No, but that's a good idea. There are several improvements to the watch
stuff that would make custom access easier. Would you be willing to use the
latest branch code?

Blair

On Wed, Apr 18, 2012 at 12:20 PM, Steve Onnis st...@cfcentral.com.au
wrote:

I am working with existing code which is using the cfselect tag.  I was
hoping there might be an onBindComplete function or similar

 

From: Andrew Scott [mailto:andr...@andyscott.id.au] 
Sent: Wednesday, 18 April 2012 12:14 PM
To: cfaussie@googlegroups.com
Subject: Re: [cfaussie] bind complete

 

You mean something like this?

 

http://www.andyscott.id.au/2010/7/25/ColdFusion-and-populating-a-dropdown-ba
sed-on-the-selection-of-another 

 

 

-- 

Regards,

Andrew Scott

WebSite: http://www.andyscott.id.au http://www.andyscott.id.au/ /

Google+: http://plus.google.com/108193156965451149543

 

On Wed, Apr 18, 2012 at 12:06 PM, Steve Onnis st...@cfcentral.com.au
wrote:

Is there a method you can call when an ajax bind update has been completed?

 

I have 2 select boxes (country/state) and state gets updated based on the
selection of the country.  When the state select box has been updated i want
it to trigger something else.

 

Is this possible?

 

Steve

-- 
You received this message because you are subscribed to the Google Groups
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to
cfaussie+unsubscr...@googlegroups.com
mailto:cfaussie%2bunsubscr...@googlegroups.com .
For more options, visit this group at
http://groups.google.com/group/cfaussie?hl=en.

 

-- 
You received this message because you are subscribed to the Google Groups
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/cfaussie?hl=en.

-- 
You received this message because you are subscribed to the Google Groups
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to
cfaussie+unsubscr...@googlegroups.com
mailto:cfaussie%2bunsubscr...@googlegroups.com .
For more options, visit this group at
http://groups.google.com/group/cfaussie?hl=en.

 

-- 
You received this message because you are subscribed to the Google Groups
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/cfaussie?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.



Re: [cfaussie] bind complete

2012-04-17 Thread Andrew Scott
Steve what you need to do then is something like this

cfajaxproxy bind=javascript:selectchange({changevalue})

function mediachange(x) {
console.log(x);
}


That is provided your cfselect is something like this.

cfselect name=somename id=selectchange bind=cfc:component.getMethod()
/

The ajaxproxy will then bind the change event to the cfselect, in which you
can then do what you need to do based on the value selected. If that means
changing another cfselect or doing something else.

Now I am almost positive that the bind finished will change the value,
hence fire an on change event.


-- 
Regards,
Andrew Scott
WebSite: http://www.andyscott.id.au/
Google+: http://plus.google.com/108193156965451149543




On Wed, Apr 18, 2012 at 12:50 PM, Steve Onnis st...@cfcentral.com.auwrote:

 I personaly don’t like using it.  It is being used within an existing app
 i am working on so i am pretty locked to what is there, and i believe it is
 stil CF8 also


-- 
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.



Re: [cfaussie] bind complete

2012-04-17 Thread Andrew Scott
Here is an easier approach btw

http://tutorial544.easycfm.com/


-- 
Regards,
Andrew Scott
WebSite: http://www.andyscott.id.au/
Google+: http://plus.google.com/108193156965451149543

-- 
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.