Re: CFC Not Returning JSON properly from an array

2014-03-14 Thread Carl Von Stetten
Are you doing SerializeJSON() in your CFC method, AND have returntype=JSON on the function definition? If so, it is double serializing the data. Remove the SerializeJSON() call and allow the function to automatically do the serialization. HTH, -Carl V. On 3/14/2014 12:26 PM, Rixon Reed

Re: CFC Not Returning JSON properly from an array

2014-03-14 Thread Byron Mann
The default for the return format for a remote cffunction call is WDDX. Sounds like inside your CFC you are serializing the return value first. So something like return serializeJson(myValue); If the return string in this case is JSON, then your remote call to the CFC should include a

Re: CFC Not Returning JSON properly from an array

2014-03-14 Thread Steve 'Cutter' Blades
on your ajax call, did you add returnformat: 'json' as one of your post data arguments? If you don't specify this, then the remote method will return WDDX by default. Steve 'Cutter' Blades Adobe Community Professional Adobe Certified Expert Advanced Macromedia ColdFusion MX 7 Developer

Re: cfc WSDL is cached and won't let go

2013-02-27 Thread Dale Western
I had this problem and it turned out that the cfcomponent displayname must be different to the name of the webservice. So if you have myWebService.cfc?wsdl and inside it cfcomponent displayname=myWebService output=false then boom! doing this sorts the problem cfcomponent

Re: cfc WSDL is cached and won't let go

2013-02-27 Thread Dale Western
I had this problem and it turned out that the cfcomponent displayname must be different to the name of the webservice. So if you have myWebService.cfc?wsdl and inside it cfcomponent displayname=myWebService output=false then boom! doing this sorts the problem cfcomponent

Re: cfc WSDL is cached and won't let go

2013-02-27 Thread Raymond Camden
Can you file a bug report for that please? https://bugbase.adobe.com/ On Wed, Feb 27, 2013 at 7:55 AM, Dale Western dale.west...@columbusdirect.com wrote: I had this problem and it turned out that the cfcomponent displayname must be different to the name of the webservice. So if you

Re: CFC/JSON problem saving long text fields

2013-01-04 Thread Raymond Camden
You are hitting a GET versus POST thing. GET has a limited size. Just switch to POST. On Fri, Jan 4, 2013 at 10:21 AM, Darla Tande da...@bis-net.net wrote: Happy New Year everyone, I get a 404 error (in firebug) whenever I try to save a long text field to SQL server. I have a CFWINDOW

Re: CFC/JSON problem saving long text fields

2013-01-04 Thread Raymond Camden
FYI, it would have helped if I told you what to do. Just do this in your JS: dataproxy.setHTTPMethod(post) On Fri, Jan 4, 2013 at 10:35 AM, Raymond Camden raymondcam...@gmail.comwrote: You are hitting a GET versus POST thing. GET has a limited size. Just switch to POST. On Fri, Jan 4,

Re: CFC/JSON problem saving long text fields

2013-01-04 Thread Darla Smith
That did it! Thanks. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive:

Re: CFC Oddity

2012-07-16 Thread Raymond Camden
In ColdFusion 10, I can't reproduce this at all. I _never_ see cookies in the response. However, I see nothing 'wrong' in this. The same cookie values are sent from the client to the server, and server-side values are persisted. So when I do... if(!structkeyexists(client, x))

Re: CFC Oddity

2012-07-16 Thread Alan Rother
Hmm... ok, I'll run some test against several servers and CF versions and see if I can isolate it. It's quite maddening... -- Alan Rother Manager, Phoenix Cold Fusion User Group, www.AZCFUG.org Twitter: @AlanRother ~| Order

Re: CFC Oddity

2012-07-16 Thread Raymond Camden
If you don't mind - can you also follow up with me directly? Want to ensure that if this is an issue, it gets logged/sent to the right people/etc. On Mon, Jul 16, 2012 at 2:17 PM, Alan Rother alan.rot...@gmail.com wrote: Hmm... ok, I'll run some test against several servers and CF versions

Re: CFC Oddity

2012-07-16 Thread Alan Rother
Of course I'll run the whole scientific set of tests and blog it if I find anything interesting - including source code =] On Mon, Jul 16, 2012 at 12:18 PM, Raymond Camden raymondcam...@gmail.comwrote: If you don't mind - can you also follow up with me directly? Want to ensure that if this

Re: CFC Oddity

2012-07-13 Thread Raymond Camden
Can you show us your CFC method? On Fri, Jul 13, 2012 at 2:04 PM, Alan Rother alan.rot...@gmail.com wrote: So, I'm trying to adapt some legacy code for use in our updated mobile site - Using jQuery / CF9 So, the legacy log in functionality is already wired into a CFC, it was being used by

Re: CFC Oddity

2012-07-13 Thread Alan Rother
Sure, For the record, it's not any one method, I've tried it with numerous functions and the example below was just the simplest unused method in this CFC cffunction name=Logout_User access=remote output=true returntype=any cfset var foo = !--- Check if user is stored in

Re: CFC returns escaped strings.. grrrr

2012-06-03 Thread Raymond Camden
When you call it, are you adding returnformat=json in the url? It will override the returnformat in your function call. On Sun, Jun 3, 2012 at 1:31 PM, Brook Davies cft...@logiforms.com wrote: I am trying to do some jsonP stuff and call a CFC directly. The problem is the CFC doesn't return

RE: CFC returns escaped strings.. grrrr

2012-06-03 Thread Brook Davies
omg! - your right!!! Thank you - I don't know how I missed that! Brook -Original Message- From: Raymond Camden [mailto:raymondcam...@gmail.com] Sent: June-03-12 11:59 AM To: cf-talk Subject: Re: CFC returns escaped strings.. g When you call it, are you adding returnformat=json

Re: CFC based Android vs. ipad vs iphone auto senser

2012-04-04 Thread Tony
plus like a billion for bootstrap On Tuesday, April 3, 2012, Cameron Childress wrote: On Tue, Apr 3, 2012 at 1:28 PM, Brian Thornton br...@cfdeveloper.comjavascript:; wrote: I wondered if anyone has a CFC that conditional includes css and layout instructions for the wizzbang devices?

Re: CFC based Android vs. ipad vs iphone auto senser

2012-04-04 Thread Raymond Camden
If you don't want to go responsive, I've had a lot of luck with this:http://detectmobilebrowsers.com/ BlogCFC uses it for mobile detection (with a slight mod to ignore iPad/XOOM). On Wed, Apr 4, 2012 at 7:04 AM, Tony tonyw...@gmail.com wrote: plus like a billion for bootstrap On Tuesday,

Re: CFC based Android vs. ipad vs iphone auto senser

2012-04-04 Thread Gerald Guido
If you're looking for elegant, consider using Responsive Design. Here's a good example: http://twitter.github.com/bootstrap/index.html THAT is very, very nice. Thanx for posting that. G! On Tue, Apr 3, 2012 at 2:55 PM, Cameron Childress camer...@gmail.comwrote: On Tue, Apr 3, 2012 at

Re: CFC based Android vs. ipad vs iphone auto senser

2012-04-03 Thread Andrew Scott
Do you mean you are looking for a more elegant way of detecting a mobile / tablet device? try http://wurfl.sourceforge.net/ -- Regards, Andrew Scott WebSite: http://www.andyscott.id.au/ Google+: http://plus.google.com/108193156965451149543 On Wed, Apr 4, 2012 at 3:28 AM, Brian Thornton

Re: CFC based Android vs. ipad vs iphone auto senser

2012-04-03 Thread Cameron Childress
On Tue, Apr 3, 2012 at 1:28 PM, Brian Thornton br...@cfdeveloper.comwrote: I wondered if anyone has a CFC that conditional includes css and layout instructions for the wizzbang devices? I have a complex writer and//or redirector but looking for something more elegant. If you're looking

Re: cfc creation best practice

2011-03-28 Thread Russ Michaels
One of the big advantages of caching your CFC's in memory is to reduce the overhead of instantiating them. If you have a rarely used ADMIN section, then this wont be an issue for for you if they are invoked every time you use them, so I wouldn't make any more work for yourself unnecessarily.

RE: cfc creation best practice

2011-03-28 Thread Mark A. Kruger
...@michaels.me.uk] Sent: Monday, March 28, 2011 9:22 AM To: cf-talk Subject: Re: cfc creation best practice One of the big advantages of caching your CFC's in memory is to reduce the overhead of instantiating them. If you have a rarely used ADMIN section, then this wont be an issue for for you

Re: cfc creation best practice

2011-03-27 Thread Brian Kotek
Since the memory footprint of a CFC is generally very small, I would just create everything together at app startup (ideally using ColdSpring) and be done with it. On Sun, Mar 27, 2011 at 7:21 PM, Greg Morphis gmorp...@gmail.com wrote: If you have a site or an area of the site that's not

Re: cfc creation best practice

2011-03-27 Thread Greg Morphis
Awesome! I appreciate the info Brian! On Mar 27, 2011 9:48 PM, Brian Kotek brian...@gmail.com wrote: Since the memory footprint of a CFC is generally very small, I would just create everything together at app startup (ideally using ColdSpring) and be done with it. On Sun, Mar 27, 2011 at

Re: CFC argument best practice question

2011-03-11 Thread Sean Corfield
On Mon, Mar 7, 2011 at 10:56 AM, Nathan Strutz str...@gmail.com wrote: If you have a lot of arguments, one way to refactor that is to make a component that encompasses those arguments - essentially a bean, maybe a couple of beans if the arguments are unrelated. In your first public method,

Re: CFC argument best practice question

2011-03-07 Thread Matt Quackenbush
Presumably your private method is being called by multiple methods. It is definitely much better - at least in terms of documentation - to have those arguments clearly defined. :-) If, however, multiple methods do not call that private method, then there is no need for the private method to

Re: CFC argument best practice question

2011-03-07 Thread Dave Watts
If, however, multiple methods do not call that private method, then there is no need for the private method to exist. I wouldn't go as far as that. Private methods like this can serve the same purpose as functions or subroutines anywhere else - to limit the amount of code in the main method,

Re: CFC argument best practice question

2011-03-07 Thread Matt Quackenbush
On Mon, Mar 7, 2011 at 11:21 AM, Dave Watts wrote: If, however, multiple methods do not call that private method, then there is no need for the private method to exist. I wouldn't go as far as that. Private methods like this can serve the same purpose as functions or subroutines

Re: CFC argument best practice question

2011-03-07 Thread Nathan Strutz
If you have a lot of arguments, one way to refactor that is to make a component that encompasses those arguments - essentially a bean, maybe a couple of beans if the arguments are unrelated. In your first public method, instantiate that bean with the arguments, then just pass that bean around.

Re: CFC argument best practice question

2011-03-07 Thread Judah McAuley
On Mon, Mar 7, 2011 at 9:24 AM, Matt Quackenbush quackfu...@gmail.com wrote: That's the beauty of refactoring, though.  Unless you need to, don't.  And if no other method is calling it (or expected to call it), then it is not needed.  If it becomes needed, refactor and add it in.  :-) I

Re: CFC argument best practice question

2011-03-07 Thread Dave Watts
I generally agree with this notion but I think it starts to fall apart with more complex methods. You might have a whole routine that only gets called one place but is complex enough that there are benefits to breaking it up into multiple methods that have single concerns. Doing so makes it

Re: CFC argument best practice question

2011-03-07 Thread Matt Quackenbush
On Mon, Mar 7, 2011 at 11:57 AM, Judah McAuley wrote: On Mon, Mar 7, 2011 at 9:24 AM, Matt Quackenbush wrote: That's the beauty of refactoring, though. Unless you need to, don't. And if no other method is calling it (or expected to call it), then it is not needed. If it becomes

re: CFC arguments, passing large strings

2011-03-04 Thread Jason Fisher
My recommendation would be to initialize the CFC with the string as an initial argument, then call the different iterative methods without sending the string over and over: just modify the variable within the CFC after the init. Ex: cfcomponent displayName=stringModder cfset

RE: CFC arguments, passing large strings

2011-03-04 Thread Brook Davies
I should have mentioned the CFC is stored in the application scope, so I can't do that... Brook -Original Message- From: Jason Fisher [mailto:ja...@wanax.com] Sent: March-04-11 9:56 AM To: cf-talk Subject: re: CFC arguments, passing large strings My recommendation would

RE: CFC arguments, passing large strings

2011-03-04 Thread Jason Fisher
a shot in the dark. From: Brook Davies cft...@logiforms.com Sent: Friday, March 04, 2011 1:18 PM To: cf-talk cf-talk@houseoffusion.com Subject: RE: CFC arguments, passing large strings I should have mentioned the CFC is stored in the application scope, so I

RE: CFC arguments, passing large strings

2011-03-04 Thread Brook Davies
But if I wrap it in structure, then it would be passed by reference. Wouldn't this alleviate the memory usage issue? Brook -Original Message- From: Jason Fisher [mailto:ja...@wanax.com] Sent: March-04-11 10:24 AM To: cf-talk Subject: RE: CFC arguments, passing large strings Oh, well

RE: CFC arguments, passing large strings

2011-03-04 Thread Jason Fisher
to the actual struct variable in the calling template. From: Brook Davies cft...@logiforms.com Sent: Friday, March 04, 2011 2:35 PM To: cf-talk cf-talk@houseoffusion.com Subject: RE: CFC arguments, passing large strings But if I wrap it in structure

Re: CFC binding to multiple cfselects

2011-01-06 Thread Anthony Doherty
Anyone have any idea on this Thanks ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive:

Re: cfc bind issue

2010-12-01 Thread Michael Grant
and your site root resolves to mysite\admin? On Tue, Nov 30, 2010 at 6:21 PM, webmas...@pegweb.com wrote: Ok this one has me scratching my head. I have a cfc located here. C:\mysite\admin\cfc\GetCategoryData.cfc I put this code on a page where I call it using the dot notation and it

RE: cfc bind issue

2010-12-01 Thread webmaster
- From: Michael Grant [mailto:mgr...@modus.bz] Sent: Wednesday, December 01, 2010 11:47 AM To: cf-talk Subject: Re: cfc bind issue and your site root resolves to mysite\admin? On Tue, Nov 30, 2010 at 6:21 PM, webmas...@pegweb.com wrote: Ok this one has me scratching my head. I have a cfc

Re: cfc bind issue

2010-11-30 Thread Russ Michaels
Your bind code looks fine to me, perhaps CF doesn't like you have the CFC in a folder called CFC, worth a try. Perhaps you are also not aware but you do not need to create a mapping in the cfadmin, you can create per application mappings in your application.cfc since CF8. see here:

RE: cfc bind issue

2010-11-30 Thread webmaster
Renaming the cfc directory didn't seem to make any difference. Really odd. -Original Message- From: Russ Michaels [mailto:r...@michaels.me.uk] Sent: Tuesday, November 30, 2010 7:04 PM To: cf-talk Subject: Re: cfc bind issue Your bind code looks fine to me, perhaps CF doesn't like

re: CFC Query Question

2010-08-03 Thread Jason Fisher
Well, that code will create a separate cache for each version of the variable query statement. Cf http://forums.devshed.com/coldfusion-development-84/cfml-cfquery-cachedwithi n-does-changing-order-by-create-new-query-680793.html In other words, I think it will work the way you expect.

RE: CFC Query Question

2010-08-03 Thread Robert Harrison
] Sent: Tuesday, August 03, 2010 2:52 PM To: cf-talk Subject: re: CFC Query Question Well, that code will create a separate cache for each version of the variable query statement. Cf http://forums.devshed.com/coldfusion-development-84/cfml-cfquery-cachedwithi n-does-changing-order-by-create-new

RE: CFC Query Question

2010-08-03 Thread Jason Fisher
Makes sense. Clearly, if you were testing for ID = '#myVar#', then the number of variances would make caching irrelevant, but it sounds like this case might be a good candidate. ~| Order the Adobe Coldfusion Anthology now!

Re: CFC = Why isn't this working?

2010-05-24 Thread Leigh
        SET NOCOUNT ON         SELECT    @orderKey = SCOPE_IDENTITY()         SET NOCOUNT OFF         SELECT @orderKey as orderKey     /cfquery     cfreturn qry_order_commit_1.orderKey /cffunction The SET NOCOUNT should be the very first statement. Try moving it before the

Re: CFC = Why isn't this working?

2010-05-24 Thread Leigh
qry_order_commit_1 Also, do not forget to VAR scope all function local variables, including query names. ~| Order the Adobe Coldfusion Anthology now!

Re: cfc accessing session scope - bad?

2010-05-20 Thread Cutter (ColdFusion)
Best practice is to pass in the session variable. There can be issues with calling a persistent scope directly within a CFC, typically around application performance and proper garbage collection. Steve Cutter Blades Adobe Community Professional - ColdFusion Adobe Certified Professional

Re: cfc accessing session scope - bad?

2010-05-20 Thread Brian Kotek
In general, yes. The exceptions are if you have a method specifically meant to encapsulate access session scope so that other methods in the object can get to that data (i.e. a getCurrentUser() method in a UserService), or if you create a dedicated SessionProxy object that other objects use to

Re: cfc accessing session scope - bad?

2010-05-20 Thread Adrian Moreno
I've got an example of a Session Facade (or Session Proxy?) on my site: http://www.iknowkungfoo.com/blog/index.cfm/2007/2/12/Using-a-Session-Facade-to-handle-evolving-session-variables --- Adrian In general, yes. The exceptions are if you have a method specifically meant to encapsulate access

Re: cfc accessing session scope - bad?

2010-05-20 Thread Eric Cobb
Me too! Me too! Me too! :) http://www.cfgears.com/index.cfm/2009/12/3/Using-a-Session-Facade-in-ColdFusion I can vouch for Adrian's article, though. When I first started working with Session Facades in Mach-II, the post he linked to below went a long way in helping me understand them.

Re: CFC Newbie

2010-03-22 Thread Dave Watts
I'm trying to get out of MX non CFC world. I've now working with CF8 and want to start converting some of my things to use CFC's. Specifically how I can use forms to interact with CFC's to add/edit/delete data. I've read a few tutorials from adobe about them and what I've seen on a few blogs

Re: CFC Newbie

2010-03-22 Thread Tony Bentley
ask and you shall be enlightened: http://www.bennadel.com/blog/726-ColdFusion-Application-cfc-Tutorial-And-Application-cfc-Reference.htm ~| Want to reach the ColdFusion community with something they want? Let them know on

Re: CFC Newbie

2010-03-22 Thread Dave Watts
ask and you shall be enlightened: http://www.bennadel.com/blog/726-ColdFusion-Application-cfc-Tutorial-And-Application-cfc-Reference.htm While that's useful information to be sure, it doesn't address the original poster's question, which is about CFC use in general. Application.cfc is quite a

RE: CFC Newbie

2010-03-22 Thread Ben Forta
To: cf-talk Subject: Re: CFC Newbie ask and you shall be enlightened: http://www.bennadel.com/blog/726-ColdFusion-Application-cfc-Tutorial-And-App lication-cfc-Reference.htm While that's useful information to be sure, it doesn't address the original poster's question, which is about CFC use

RE: CFC Newbie

2010-03-22 Thread Scott Raley
Yep read those first Ben! -Original Message- From: Ben Forta [mailto:b...@forta.com] Sent: Monday, March 22, 2010 3:49 PM To: cf-talk Subject: RE: CFC Newbie These are old, but may answer the question: http://www.adobe.com/devnet/coldfusion/articles/intro_cfcs.html http

RE: cfc WSDL is cached and won't let go

2010-01-19 Thread brad
You should be able to refresh it in the CF Administrator under Data Services Web Services. There's also ways to programatically do this: http://www.dougboude.com/blog/1/2006/06/Refreshing-Cached-ColdFusion-Webservices-Through-the-Back-Door.cfm ~Brad Original Message

Re: cfc WSDL is cached and won't let go

2010-01-19 Thread Joshua O'Connor-Rose
thanks and sorry that I wasn't clear that the original certification.cfc didn't register as a web service heres my list - http://cfservices.dev.web.sba.com/certification/cert.cfc?wsdl - http://cfservices.dev.web.sba.com/certification/certone.cfc?wsdl -

RE: cfc WSDL is cached and won't let go

2010-01-19 Thread brad
On a whim, have you tried clearing the template cache? Restart CF if you can too just for the fun of it. If that doesn't work, defrag your hard drive. It won't help, but it will give you time to think of something else to try. :) ~Brad Original Message Subject: Re: cfc

Re: cfc WSDL is cached and won't let go

2010-01-19 Thread Joshua O'Connor-Rose
for the fun of it. If that doesn't work, defrag your hard drive.  It won't help, but it will give you time to think of something else to try.  :) ~Brad Original Message Subject: Re: cfc WSDL is cached and won't let go From: Joshua O'Connor-Rose joshua.oconnorr...@gmail.com Date

RE: cfc WSDL is cached and won't let go

2010-01-19 Thread brad
Hmm, so you did state that in the OP. Sorry I missed it. :) Well, the only other thing I can think of then is shutting down CF, manually clearing out the folders in ColdFusion8\stubs\ and restarting. ~Brad Original Message Subject: Re: cfc WSDL is cached and won't let go

RE: cfc WSDL is cached and won't let go

2010-01-19 Thread Brook Davies
://www.mysite.com/mycfcs/mycfc.cfc?wsdl') -Original Message- From: Joshua O'Connor-Rose [mailto:joshua.oconnorr...@gmail.com] Sent: January-19-10 1:12 PM To: cf-talk Subject: Re: cfc WSDL is cached and won't let go as stated those were already attempted, and unfortunately I can't bill for defrag

Re: CFC Mapping Issues

2010-01-01 Thread Kym Kovan
webmas...@pegweb.com wrote: I'm running CF 9 Enterprise and am having trouble getting a cfc to fire. Here is my invoke which is run after a file upload in a form field. ... cfinvoke component = file-upload.FileUploader method = UploadMemberImage

Re: CFC Mapping Issues

2010-01-01 Thread Dave Watts
I'm running CF 9 Enterprise and am having trouble getting a cfc to fire. Here is my invoke which is run after a file upload in a form field. ...    cfinvoke        component = file-upload.FileUploader        method = UploadMemberImage        returnVariable = rVar        

RE: CFC Mapping Issues

2010-01-01 Thread webmaster
Thank you. -Original Message- From: Kym Kovan [mailto:dev-li...@mbcomms.net.au] Sent: Friday, January 01, 2010 10:12 PM To: cf-talk Subject: Re: CFC Mapping Issues webmas...@pegweb.com wrote: I'm running CF 9 Enterprise and am having trouble getting a cfc to fire. Here is my

Re: cfc not returning results to CFSLELCT

2009-11-27 Thread Les Mizzell
James Holmes wrote: This means the CF Ajax JavaScript files aren't loading. Check the /CFIDE/scripts alias for the webserver for that site. Finally got support to check the IIS settings, and ure enough, a mapping was missing. Ack! That one cost me some hair! Thanks to everybody that chimed

Re: cfc not returning results to CFSLELCT

2009-11-25 Thread Les Mizzell
On the same page: cfinvoke component=art method=getCATS returnVariable=temp /cfinvoke cfdump var=#temp# This returns the resultsI'm expecting to see from the CFC, so teh CFC *is* working ... Still stumped I've got a group of CFSELECTS that were working before a site moved, but

Re: cfc not returning results to CFSLELCT

2009-11-25 Thread Cutter (ColdFusion)
In your test, I would structure the URL as: http://www.mysite.com/admin/email/art.cfc?method=getGROUPSreturnFormat=JSON[whatever name value pairs you need for your method] Otherwise, hitting the component direct, without a query string, would try to load the component browser/javadoc layout

Re: cfc not returning results to CFSLELCT

2009-11-25 Thread Les Mizzell
Even more strange: Exact same code is working on another site on the same server. Plus, if I try to access the cfc by browsing directly to it, I'll get the expected page of properties. Only difference is the way the urls are constructed. It's working for www.mysite.com But not working

Re: cfc not returning results to CFSLELCT

2009-11-25 Thread Dave Ferguson
Have you ran the code with FireBug open? Check the net or console sections and look for any errors. --Dave blog.dkferguson.com www.cfhour.com I've got a group of CFSELECTS that were working before a site moved, but now, not. Nothing is being returned to the CFSELECTS cfselect

Re: cfc not returning results to CFSLELCT

2009-11-25 Thread Les Mizzell
Dave Ferguson wrote: Have you ran the code with FireBug open? Check the net or console sections and look for any errors. 4 errors - but I'll be honest and say that I don't know how to fix them. It's basically saying that the CFC/AJAX stuff ain't loading - but the mappings in the CFADMIN

Re: cfc not returning results to CFSLELCT

2009-11-25 Thread Les Mizzell
Cutter (ColdFusion) wrote: In your test, I would structure the URL as: Even more weird - if I try to access the CFC and add the method: http://www.mysite.com/admin/email/art.cfc?method=getCATS I get the categories I'm expecting 0Select a Category3.0All Attorneys and Policy Advisors4.0All

Re: cfc not returning results to CFSLELCT

2009-11-25 Thread Les Mizzell
http://www.mysite.com/admin/email/art.cfc?method=getGROUPSreturnFormat=JSON[whatever name value pairs you need for your method] art.cfc?method=getGROUPSreturnFormat=JSONtheCATS=4 Is returning the groups under the category. [[0.0,Select a Group],[12,All Employees - Boston],[13,All

Re: cfc not returning results to CFSLELCT

2009-11-25 Thread Dave Ferguson
Add this to the page with the CFDIV on it. This may correct the issue. cfajaximport tags = CFDIV / --Dave blog.dkferguson.com www.cfhour.com ~| Want to reach the ColdFusion community with something they want? Let them know

Re: cfc not returning results to CFSLELCT

2009-11-25 Thread Les Mizzell
Dave Ferguson wrote: Add this to the page with the CFDIV on it. This may correct the issue. cfajaximport tags = CFDIV / Added the above This is driving me crazy! Why is it working in one place, but not another?? I'm still getting (in Firebug). ColdFusion is not defined

Re: cfc not returning results to CFSLELCT

2009-11-25 Thread denstar
Seems like a CFIDE type of problem. Try the net tab of FireBug, I think -- one of those tabs shows the js files firefox is trying to load -- and then ctrl+click on the files listed and be sure none of them are returning 404 or unexpected non-javascript content. -- If we don't know life, how

Re: cfc not returning results to CFSLELCT

2009-11-25 Thread James Holmes
This means the CF Ajax JavaScript files aren't loading. Check the /CFIDE/scripts alias for the webserver for that site. mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ 2009/11/26 Les Mizzell lesm...@bellsouth.net: Dave Ferguson wrote: Add this to the page

RE: cfc output=yes

2009-11-20 Thread Andy Matthews
The primary reason for that attribute is whitespace. And I would suggest against outputting from a CFC. Better to return a variable, then output THAT. -Original Message- From: Chad Gray [mailto:cg...@careyweb.com] Sent: Friday, November 20, 2009 8:58 AM To: cf-talk Subject: cfc

RE: cfc output=yes

2009-11-20 Thread brad
And I would suggest against outputting from a CFC. Better to return a variable, then output THAT. Agreed. cfsavecontent is very good at facilitating this if you have a lot of HTML to wrap up in a string to return. ~Brad

RE: cfc output=yes

2009-11-20 Thread Chad Gray
That's true I could use cfsavecontent. Would be cleaner to just return a variable. Thanks guys! -Original Message- From: b...@bradwood.com [mailto:b...@bradwood.com] Sent: Friday, November 20, 2009 10:47 AM To: cf-talk Subject: RE: cfc output=yes And I would suggest against

Re: CFC Question

2009-09-24 Thread Brian McCairn
component=filename maybe ~| 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:326588

Re: CFC Question

2009-09-24 Thread Phillip Vector
tried that. Nope. On Thu, Sep 24, 2009 at 11:35 AM, Brian McCairn brian.mcca...@medicapp.eu wrote: component=filename maybe ~| Want to reach the ColdFusion community with something they want? Let them know on the House of

Re: CFC Question

2009-09-24 Thread Brian McCairn
cfcomponent tags round the cffunction? ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive:

Re: CFC Question

2009-09-24 Thread Brian McCairn
what do you get if you browse to webroot/cfc/filename.cfc?wsdl ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive:

RE: CFC Question

2009-09-24 Thread Andy Matthews
So you're calling this file from within ColdFusion directly right? What happens if you create it using CreateObject? cfset myCFC = CreateObject('component','cfc.filename') cfset user = myCFC.Read(13204721-3474-8967-4897498740174013) Are you getting an error? andy -Original

Re: CFC Question

2009-09-24 Thread Dan Farrell
Coldfusion user has permission to the file? So you're calling this file from within ColdFusion directly right? What happens if you create it using CreateObject? cfset myCFC = CreateObject('component','cfc.filename') cfset user = myCFC.Read(13204721-3474-8967-4897498740174013) Are you

Re: CFC Question

2009-09-24 Thread Phillip Vector
Yes and cfcomponent name=filename is at the top (and closing). filename.cfc in the cfc directory cfcomponent name=filename cffunction name=Read returntype=Query access=remote cfargument name=UserID type=string cfscriptvar Data=;/cfscript

RE: CFC Question

2009-09-24 Thread Andy Matthews
Errors, yes or no? If CF is seeing it, then you should be getting a response. If it doesn’t see it, then you should get an error. -Original Message- From: Phillip Vector [mailto:vec...@mostdeadlygame.com] Sent: Thursday, September 24, 2009 2:59 PM To: cf-talk Subject: Re: CFC Question

Re: CFC Question

2009-09-24 Thread Azadi Saryev
you do not actually have 2 and 3 as text inside your cfinvoke block, do you? Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ On 25/09/2009 02:30, Phillip Vector wrote: So for the meantime, I've put my cfc directory in the web root on the development server I use. I have the following

Re: CFC Question

2009-09-24 Thread Phillip Vector
yes, but I took them out and it still has the same result. The cfinvoke is not firing I don't think. On Thu, Sep 24, 2009 at 1:31 PM, Azadi Saryev az...@sabai-dee.com wrote: you do not actually have 2 and 3 as text inside your cfinvoke block, do you? Azadi Saryev Sabai-dee.com

Re: CFC Question

2009-09-24 Thread Azadi Saryev
firebug will tell you if it is firing or not. and you do have cfdump var=#user# or another output of USER var after your cfinvoke block, right? Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ On 25/09/2009 04:45, Phillip Vector wrote: yes, but I took them out and it still has the same

Re: CFC Question

2009-09-24 Thread Phillip Vector
Not yet. However, I do have a 4 which isn't showing up (which it would if the file got that far. On Thu, Sep 24, 2009 at 1:53 PM, Azadi Saryev az...@sabai-dee.com wrote: firebug will tell you if it is firing or not. and you do have cfdump var=#user# or another output of USER var after your

Re: CFC Question

2009-09-24 Thread Azadi Saryev
test your page in firefox with firebug installed. look at the Net tab to see if the request to your cfc fires and what it returns, if anything... Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ On 25/09/2009 04:55, Phillip Vector wrote: Not yet. However, I do have a 4 which isn't showing

Re: CFC Question

2009-09-24 Thread Phillip Vector
it, then you should be getting a response. If it doesn’t see it, then you should get an error. -Original Message- From: Phillip Vector [mailto:vec...@mostdeadlygame.com] Sent: Thursday, September 24, 2009 2:59 PM To: cf-talk Subject: Re: CFC Question Yes and cfcomponent name=filename

Re: CFC Question

2009-09-24 Thread Alan Rother
Hey Philip, Is this literally all the code on the page? TestUsers.cfm 1 cfinvoke component=cfc.filename method=Read returnvariable=User 2 cfinvokeargument name=UserID value=13204721-3474-8967-4897498740174013 3 /cfinvoke 4 Nothing else? If so, then, it's working... You just don't have any

Re: CFC Question

2009-09-24 Thread Phillip Vector
That is litterally all the code in the page. It isn't firing the invoke. But I have good news. I have been working with fusebox on this (having double cfc's inthe circuit directory and the root just to be sure) and it wasn't working. I moved it over to it's own folder with no fusebox and I'm

Re: CFC Question

2009-09-24 Thread Alan Rother
Glad you found the issue... however in the future, disclosing a valuable piece of information like, the fact you're running this code inside a fusebox app would have cut this thread down to one or two emails... =] -- Alan Rother Adobe Certified Advanced ColdFusion MX 7 Developer Manager,

Re: CFC Question

2009-09-24 Thread Phillip Vector
Yeah. I know. I'm not thinking today. Sorry about that. I didn't think it was that much of an issue. I think I'm going to use application.cfc and not try to put in CFC's into the application. It's to frustrating for not enough gain IMHO. On Thu, Sep 24, 2009 at 2:14 PM, Alan Rother

  1   2   3   4   5   6   7   8   9   10   >