@Azadi
Thanks for the response.
I attempted to use this, I see it in the page source and everything but it did
not change how the page loads up. This seems very similar to just putting a
refresh function in the document.onload() javascript function, which I had
tried. That one did not work as expected, and the other problem is that the
contents of the multiselect box change based on another dropdown, so even if I
fixed it onload, it would need to change everytime. I will see about setting up
an example to demonstrate this.
> 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:338233
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm