You just write query="variables.qryGetData" as an attribute for the cfgrid tag, just like you do for flash grids and java grids. You have to give the grid a name and put it in a cfform, but that is pretty much it. "Binding" wasn't the most accurate word to use in this case.
-Mike On 9/12/07, vishnu prasad <[EMAIL PROTECTED]> wrote: > Hi Mike > How you are binding the local cfquery ? can you post the sample cfgrid which > binds the cfquery? > > > Yes. The full CFIDE directory is there. The grid works fine when I > > change the binding to be a local cfquery. However, ultimately I want > > to bind to a CFC on the server. > > > > When I view source, the line that is wrong is this one: > > > > ColdFusion.Bind.cfcBindHandler(null, > > {'bindTo':ColdFusion.Grid.loadData,'bindToAttr':'true', > > 'errorHandler':_cf_grid_errorhandler,'cfc':'/myCFC.cfc',... > > > > It should read /project/myCFC.cfc in order to work. > > > > -Mike Chabot > > > > On 9/11/07, Dale Fraser <[EMAIL PROTECTED]> wrote: > > > Do you have a CFIDE virtual directory, this is required for all the > > AJAX > > > stuff. > > > > > > Regards > > > Dale Fraser > > > > > > http://learncf.com > > > > > > > > > -----Original Message----- > > > From: Mike Chabot [mailto:[EMAIL PROTECTED] > > > Sent: Wednesday, 12 September 2007 11:15 AM > > > To: CF-Talk > > > Subject: Re: Ajax cfgrid bind problem > > > > > > Windows 2003 Standard 32 bit with IIS6. > > > > > > My example is simplified. The cfm file is not in the same directory > > as > > > the cfc in actuality. Although that gave me an idea. I put the cfc > > in > > > the same directory as the cfm file and shortened the cfc path, but > > the > > > result is the same. The Ajax call is looking for the file in the > > root > > > of the Web server, not in the virtual directory where the file > > > actually resides. > > > > > > -Mike > > > > > > On 9/11/07, Dale Fraser <[EMAIL PROTECTED]> wrote: > > > > What OS etc. > > > > > > > > I could not get this stuff to work under Vista and IIS, works find > > on a > > > > Windows server. > > > > > > > > Also if the cfm is in the same as the cfc you don't need the > > projects. > > > > > > > > Regards > > > > Dale Fraser > > > > > > > > http://learncf.com > > > > > > > > -----Original Message----- > > > > From: Mike Chabot [mailto:[EMAIL PROTECTED] > > > > Sent: Wednesday, 12 September 2007 10:28 AM > > > > To: CF-Talk > > > > Subject: Ajax cfgrid bind problem > > > > > > > > I am trying to use the cfgrid CFC binding feature in CF8 but I am > > > > having trouble getting the CFC to populate the Ajax grid. > > > > > > > > URL: http://site/ > > > > Folder: c:\inetpub\wwwroot > > > > > > > > URL: http://site/projects/ (virtual directory) > > > > Folder: c:\projects\ > > > > This folder has a cfc called myCFC > > > > > > > > My bind attribute starts with "cfc:projects.myCFC.function" > > > > > > > > The page gets compiled and sent to the browser successfully, > > meaning > > > > ColdFusion finds the CFC initially. However, looking at the > > source > > > > code I see that the Ajax request is looking for "/myCFC.cfc" > > instead > > > > of "/projects/myCFC.cfc." The predicable result is that the Ajax > > grid > > > > doesn't get populated and a missing file error is logged in > > > > Application.log. > > > > > > > > What do I need to do to get this Ajax call to look in the correct > > > location? > > > > > > > > Thanks, > > > > Mike > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Enterprise web applications, build robust, secure scalable apps today - Try it now ColdFusion Today ColdFusion 8 beta - Build next generation apps Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288234 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4