Try setting the bindOnLoad to false <cfdiv bindOnLoad="false".....
On Thu, May 14, 2009 at 8:06 AM, Les Mizzell <[email protected]> wrote: > > Almost working correctly. > > When the page first loads, I get an alert: > "The GROUPS_ID argument passed to the get is not of type numeric" > > If I dismiss the alert, then the page functions normally after that and > the correct description shows up depending on what you select in > "sendGROUP". Ideas? > > Here's what I've got: > > My CFC file: > > <!--- Get group description ---> > <cffunction name="getGPDesc" access="remote" returnType="string"> > <cfargument name="groups_id" type="numeric" required="true"> > > <!--- Define variables ---> > <cfset var data=""> > <cfset var result=""> > > <!--- Get data ---> > <cfquery name="data" datasource="nmdata"> > SELECT mlCOMMENTS > FROM nl_groupLIST > WHERE groups_id = #ARGUMENTS.groups_id# > </cfquery> > > <!--- Got it? ---> > <cfif data.RecordCount IS 1> > <cfset result=data.mlCOMMENTS> > </cfif> > > <!--- And return it ---> > <cfreturn result> > </cffunction> > > </cfcomponent> > > > ... and on the page n question: > > <cfselect name="sendGROUP" > query="groups" > display="mgroup" > value="groups_id" > size="10" /> > > > <!--- DIV for description ---> > <cfdiv bind="cfc:art.getGPDesc({sendGROUP})" > style="background-color:##F8F8F8; height:100; width:200;" /> > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322516 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

