Re: Ajax cfgrid bind problem

2009-03-04 Thread scott welker

hi there, 

was there an actual hot fix released for this issue? i'm experiencing the exact 
same problem. 

thanks.

scott
scott.wel...@gmail.com 


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 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320113
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Ajax cfgrid bind problem

2007-09-13 Thread Rakshith N
Yes, 69915 is the bug that is causing this to happen. We are aware of
this issue and are working on it.

Rakshith
Adobe ColdFusion Team

-Original Message-
From: Mike Chabot [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 13, 2007 12:03 AM
To: CF-Talk
Subject: Re: Ajax cfgrid bind problem

Fantastic Gary. Thanks for looking into this. Bug 69915 is what the
problem is. Luckily my site is still under development, so I can live
with a suboptimal setup while I wait for a hotfix.

-Mike Chabot

On 9/12/07, gary gilbert [EMAIL PROTECTED] wrote:
 Mike,

 But thats not your problem is it?

 Its the fact that as soon as you move your directory out of
wwwroot/projects into c:/projects and point your virtual directory to
that you code stops working and inspecting the url no matter what you
try or what mappings you have in CF admin you still end up with

 http://mysite/myCFC instead of http://mysite/projects/mycfc

 right?

 with cfc:mysite.projects.mycfc.myfunction you still get the above?

 After I sent in that last email I re-read your first email again and
set it up exactly as you have it and was able to produce the same
results as you are getting. So at least I can replicate it.

 The only problem now is whats the solution...

 Creating a CF mapping doesn't seem work.  I put in the correct path to
the cfc in the cfajaxproxy tag and it passes without error but produces
var _cf_mycfc=ColdFusion.AjaxProxy.init('/mycfc.cfc','myclass');
without the correct path info.

 I checked the known issues and found the following entry.

 69915: The cfajaxproxy tag is not able to correctly locate CFCs that
are
 in symbolically linked paths on the file system. Ensure that your
 CFCs are always available under hard linked paths.

 As a workaround or until someone comes up with a solution you could
bind to a URL instead of a CFC.

 Regards,

 Gary Gilbert
 http://www.garyrgilber.com/blog




~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finderproductID=1522loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288339
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Ajax cfgrid bind problem

2007-09-12 Thread Mike Chabot
Yes, there is a CF mapping that is equivalent to the virtual directory.

-Mike Chabot

On 9/12/07, James Holmes [EMAIL PROTECTED] wrote:
 Do you have a CF mapping to go with that virtual directory?


~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finderproductID=1522loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288261
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Ajax cfgrid bind problem

2007-09-12 Thread Mike Chabot
Dale,
Thanks for helping me troubleshoot this. I used your basic example to
step back and try to troubleshoot this from the start to see where
things break.

The Web root folder is
C:\inetpub\wwwroot\

My code is here
C:\projects\

If I stay inside the Web root, all combinations of virtual
directories, paths, etc. all work with your sample code. For example I
can put park.cfc inside of
C:\inetpub\wwwroot\a\b\c\ and call it as a.b.c.park.getParks(). Or I
can create a virtual directory to that folder as x and write
x.park.getParks().

As soon as I put the CFC in a folder outside of the Web root, the code
no longer works, even though I have a virtual directory set up. This
problem is specific to the new Ajax feature, since the ColdFusion
server has no problems accessing a file outside of the Web root. So
this looks like a bug with the new Ajax feature where virtual
directories are not properly handled in the code that generates the
JavaScript.

To test this, I changed my Web root to point to C:\projects\ and that
code which didn't work started working, even though I am using a
virtual directory so the true location of the Web root shouldn't
matter.

Thanks,
Mike Chabot


On 9/12/07, Dale Fraser [EMAIL PROTECTED] wrote:
 http://tutorial1.learncf.com/

 This is a working example, if you download and drop that code (there is a
 download and demo button on the page) and see if this works, if this works
 perhaps it's something wrong with your code.

~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288264
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Ajax cfgrid bind problem

2007-09-12 Thread gary gilbert
Hi Mike,

if you are using a virtual directory and your cfc is located somewhere else you 
still need to be able to get to the cfc using a standard URL.  

I have found the the bind always starts at the webroot and goes from there so 
in your example you have.

http://mysite/projects

Your bind attribute would need to be cfc:mysite.projects.mycfc.myfunction if 
your cfc's are located in another virtual directory your bind attribute should 
be.

cfc:myVirtualDir.myCFC.myfunction

A good test is to see use a standard URL to get to your CFC if you reach it 
then you know what the path will be.

example url
http://mysite/projects/mycfc.cfc?method=myfunctionreturnformat=jsonargumentcollection=...

Regards,

Gary Gilbert
http://www.garyrgilbert.com/blog


~|
Check out the new features and enhancements in the
latest product release - download the What's New PDF now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288269
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Ajax cfgrid bind problem

2007-09-12 Thread Mike Chabot
Thanks Gary,
I confirmed that the CFC is accessible over a standard URL by loading
it in the Web browser.

Turing the Ajax debugging on, I can see the exact request that is
being made. I take that request, fix the URL so that it now looks in
the correct location, paste the corrected URL into the browser, and
the CFC returns a result.

-Mike Chabot

On 9/12/07, gary gilbert [EMAIL PROTECTED] wrote:
 Hi Mike,

 if you are using a virtual directory and your cfc is located somewhere else 
 you still need to be able to get to the cfc using a standard URL.

 I have found the the bind always starts at the webroot and goes from there so 
 in your example you have.

 http://mysite/projects

 Your bind attribute would need to be cfc:mysite.projects.mycfc.myfunction 
 if your cfc's are located in another virtual directory your bind attribute 
 should be.

 cfc:myVirtualDir.myCFC.myfunction

 A good test is to see use a standard URL to get to your CFC if you reach it 
 then you know what the path will be.

 example url
 http://mysite/projects/mycfc.cfc?method=myfunctionreturnformat=jsonargumentcollection=...

 Regards,

 Gary Gilbert
 http://www.garyrgilbert.com/blog


 

~|
Check out the new features and enhancements in the
latest product release - download the What's New PDF now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288276
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Ajax cfgrid bind problem

2007-09-12 Thread Mike Chabot
To clarify slightly:

http://mysite/project/test.cfm works
http://mysite/project/myCFC.cfc works

The CFC path is project.myCFC.function. I can use this path
successfully on the server-side.

The problem is that when I bind cfgrid to the path of
project.myCFC.function, the generated JavaScript that is sent to the
browser instructs the Ajax call to look here:
http://mysite/myCFC.cfc
instead of here:
http://mysite/project/myCFC.cfc

If I move the /project virtual directory so that it is a phycial
subdirectory of the Web root, the problem goes away, but I don't want
to set things up that way for security reasons.

-Mike Chabot

On 9/12/07, Mike Chabot [EMAIL PROTECTED] wrote:
 Thanks Gary,
 I confirmed that the CFC is accessible over a standard URL by loading
 it in the Web browser.

 Turing the Ajax debugging on, I can see the exact request that is
 being made. I take that request, fix the URL so that it now looks in
 the correct location, paste the corrected URL into the browser, and
 the CFC returns a result.

 -Mike Chabot

 On 9/12/07, gary gilbert [EMAIL PROTECTED] wrote:
  Hi Mike,
 
  if you are using a virtual directory and your cfc is located somewhere else 
  you still need to be able to get to the cfc using a standard URL.
 
  I have found the the bind always starts at the webroot and goes from there 
  so in your example you have.
 
  http://mysite/projects
 
  Your bind attribute would need to be cfc:mysite.projects.mycfc.myfunction 
  if your cfc's are located in another virtual directory your bind attribute 
  should be.
 
  cfc:myVirtualDir.myCFC.myfunction
 
  A good test is to see use a standard URL to get to your CFC if you reach it 
  then you know what the path will be.
 
  example url
  http://mysite/projects/mycfc.cfc?method=myfunctionreturnformat=jsonargumentcollection=...
 
  Regards,
 
  Gary Gilbert
  http://www.garyrgilbert.com/blog
 
 
  

~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288279
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Ajax cfgrid bind problem

2007-09-12 Thread gary gilbert
Mike,

But thats not your problem is it?  

Its the fact that as soon as you move your directory out of wwwroot/projects 
into c:/projects and point your virtual directory to that you code stops 
working and inspecting the url no matter what you try or what mappings you have 
in CF admin you still end up with

http://mysite/myCFC instead of http://mysite/projects/mycfc

right?

with cfc:mysite.projects.mycfc.myfunction you still get the above?

After I sent in that last email I re-read your first email again and set it up 
exactly as you have it and was able to produce the same results as you are 
getting. So at least I can replicate it.  

The only problem now is whats the solution...

Creating a CF mapping doesn't seem work.  I put in the correct path to the cfc 
in the cfajaxproxy tag and it passes without error but produces var 
_cf_mycfc=ColdFusion.AjaxProxy.init('/mycfc.cfc','myclass'); without the 
correct path info.

I checked the known issues and found the following entry.

69915: The cfajaxproxy tag is not able to correctly locate CFCs that are
in symbolically linked paths on the file system. Ensure that your
CFCs are always available under hard linked paths. 

As a workaround or until someone comes up with a solution you could bind to a 
URL instead of a CFC.

Regards,

Gary Gilbert
http://www.garyrgilber.com/blog 

~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finderproductID=1522loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288280
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Ajax cfgrid bind problem

2007-09-12 Thread Mike Chabot
Fantastic Gary. Thanks for looking into this. Bug 69915 is what the
problem is. Luckily my site is still under development, so I can live
with a suboptimal setup while I wait for a hotfix.

-Mike Chabot

On 9/12/07, gary gilbert [EMAIL PROTECTED] wrote:
 Mike,

 But thats not your problem is it?

 Its the fact that as soon as you move your directory out of wwwroot/projects 
 into c:/projects and point your virtual directory to that you code stops 
 working and inspecting the url no matter what you try or what mappings you 
 have in CF admin you still end up with

 http://mysite/myCFC instead of http://mysite/projects/mycfc

 right?

 with cfc:mysite.projects.mycfc.myfunction you still get the above?

 After I sent in that last email I re-read your first email again and set it 
 up exactly as you have it and was able to produce the same results as you are 
 getting. So at least I can replicate it.

 The only problem now is whats the solution...

 Creating a CF mapping doesn't seem work.  I put in the correct path to the 
 cfc in the cfajaxproxy tag and it passes without error but produces var 
 _cf_mycfc=ColdFusion.AjaxProxy.init('/mycfc.cfc','myclass'); without the 
 correct path info.

 I checked the known issues and found the following entry.

 69915: The cfajaxproxy tag is not able to correctly locate CFCs that are
 in symbolically linked paths on the file system. Ensure that your
 CFCs are always available under hard linked paths.

 As a workaround or until someone comes up with a solution you could bind to a 
 URL instead of a CFC.

 Regards,

 Gary Gilbert
 http://www.garyrgilber.com/blog


~|
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:288302
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Ajax cfgrid bind problem

2007-09-11 Thread Dale Fraser
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



~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288220
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Ajax cfgrid bind problem

2007-09-11 Thread Mike Chabot
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



 

~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288221
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Ajax cfgrid bind problem

2007-09-11 Thread Dale Fraser
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



 



~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finderproductID=1522loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288222
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Ajax cfgrid bind problem

2007-09-11 Thread Mike Chabot
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
 
 
 
 



 

~|
Check out the new features and enhancements in the
latest product release - download the What's New PDF now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288223
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Ajax cfgrid bind problem

2007-09-11 Thread vishnu prasad
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
  
  
  
  
 
 
 
  


~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288231
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Ajax cfgrid bind problem

2007-09-11 Thread Mike Chabot
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


RE: Ajax cfgrid bind problem

2007-09-11 Thread Dale Fraser
Mike,

It should work, not sure if it's your code or config.

Have a look here

http://tutorial1.learncf.com/

This is a working example, if you download and drop that code (there is a
download and demo button on the page) and see if this works, if this works
perhaps it's something wrong with your code.

Also make sure you can call the CFC and it's not causing the problem ie

http://localhost/myCFC?method=functionparamaterName=blah

Regards
Dale Fraser

http://learncf.com


-Original Message-
From: Mike Chabot [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 12 September 2007 2:04 PM
To: CF-Talk
Subject: Re: Ajax cfgrid bind problem

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
   
   
   
   
  
  
  
  


 



~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288235
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Ajax cfgrid bind problem

2007-09-11 Thread James Holmes
Do you have a CF mapping to go with that virtual directory?

On 9/12/07, Mike Chabot [EMAIL PROTECTED] wrote:
 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

 

~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288237
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4