wondering out loud here, would the following work perhaps?
I'm at home for the day and have no intention of firing up an editor tonight
;)
<cfset ajaxonload('function(){
name-of-js-function-to-run(param1,param2,param3); }') />
On Thu, Oct 14, 2010 at 7:08 PM, Azadi Saryev <[email protected]>wrote:
>
> you can use ajaxonload() built-in cf function to run a specific js
> function after all cf ajax controls on the page are loaded.
> you basically add this line before the closing </body> tag:
> <cfset ajaxonload('name-of-js-funtion-to-run')>
>
> one minus of this is you can't pass any arguments to the js function you
> execute in ajaxonload()...
>
> more details are in cfml reference manual.
>
> Azadi
>
> On 15/10/2010 05:21 , Daniel Heighton wrote:
> > I am trying to get a JQuery addon (asmSelect) to work on my page. The
> addon will load and work, but the multiselect boxes it works on are
> dynamically loading using a cfc:ajax function. This measns right when the
> page is loaded, the asmSelect box is empty.
> >
> > I was able to work around this in a fashion by putting a hyperlink that
> runs a JQuery function that runs a change event on the multiselect box. When
> this is run, it then populates the select dropdown created by asmselect. The
> contents of this multiselect box changes depending on other options that are
> selected, and when I run the .change function manually, it then fixes the
> asmSelect box.
> >
> > Basically, I need a way to get the Coldfusion ajax function to run a
> change function everytime it runs and I'm unsure how to do this.
> >
> >
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338215
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm