AjaxCFC question

2008-03-16 Thread Ioannis Papanikolaou
Hello to everyone familiar with ajaxCFC,

My component file component.cfc start getting too big and difficult to manage 
(loads of functions there). Is there any way I could define more than one 
components on the config of the index page. For example at the moment I have:

_ajaxConfig = { '_cfscriptLocation':'component.cfc',
'_jsscriptFolder':'/js',
'debug':false};

Can I do :

_ajaxConfig = { '_cfscriptLocation':'component1.cfc, component2.cfc, 
component3.cfc',
'_jsscriptFolder':'/js',
'debug':false};

thanx in advance

Ioannis 

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

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


Re: AjaxCFC question

2008-03-16 Thread Josh Nathanson
Ioannis,

I'm not sure you can do that, but, could you extend your cfc's?  This might 
work --

in your component2.cfc cfcomponent extends=pathtocfc.component1
in your component3.cfc: cfcomponent extends=pathtocfc.component2

-- Josh


- Original Message - 
From: Ioannis Papanikolaou [EMAIL PROTECTED]
To: CF-Talk cf-talk@houseoffusion.com
Sent: Sunday, March 16, 2008 1:47 PM
Subject: AjaxCFC question


 Hello to everyone familiar with ajaxCFC,

 My component file component.cfc start getting too big and difficult to 
 manage (loads of functions there). Is there any way I could define more 
 than one components on the config of the index page. For example at the 
 moment I have:

 _ajaxConfig = { '_cfscriptLocation':'component.cfc',
'_jsscriptFolder':'/js',
'debug':false};

 Can I do :

 _ajaxConfig = { '_cfscriptLocation':'component1.cfc, component2.cfc, 
 component3.cfc',
'_jsscriptFolder':'/js',
'debug':false};

 thanx in advance

 Ioannis

 

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

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


cfajax vs ajaxCFC Question.

2006-03-09 Thread Nick Han
I have used both of these APIs in my test environment.  I think they
both work well.  There are pros and cons in choosing one over the other,
and most of these issues I encountered were minor.  For instance,
ajaxCFC is easier to set up, but the thing I don't like about it is the
passed parameters are transformed and received as array arguments by the
CFCs.  As for CFAJAX it is more work to set up, I like the fact that
arguments are received by functions the way there have been passed by
the calling page.  So you keep variable naming in tact for
self-documenting and easy debugging.  Also with CFAJAX you can't use it
within CFC framework.  So there's a mixed bag of good and bad between
the two.

 

I am about to pick one of these APIs and use it in my production
environment and I want to hear your opinions from those of you who have
used it extensively.  I would like to hear your advice on what to watch
out for under each and which one would you recommend if you have worked
with both.  Thanks.

 

 

 

 



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234889
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cfajax vs ajaxCFC Question.

2006-03-09 Thread Bryan Stevenson
 Also with CFAJAX you can't use it
 within CFC framework.

Huh...perhaps you mean something else, but we use CFAJAX with CFCs just fine.

All I can say is I haven't tried ajaxCFC, but CFAJAX is the bees knees..we love 
it...we don't even post forms anymore!!! ;-)

Bryan Stevenson B.Comm.
VP  Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: [EMAIL PROTECTED]
web: www.electricedgesystems.com 


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234893
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: cfajax vs ajaxCFC Question.

2006-03-09 Thread PINE Phyo Z
I haven't tried CFAJAX, so I don't know the answer to your question. But
may be you might want to have a look at : JSMX
(http://www.lalabird.com/) (or is it too late for you to consider
another API) ?? I found it much easier to set up and use than ajaxCFC.
May be it is just my preference.

Regards,
Pine

-Original Message-
From: Nick Han [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 09, 2006 10:56 AM
To: CF-Talk
Subject: cfajax vs ajaxCFC Question.


I have used both of these APIs in my test environment.  I think they
both work well.  There are pros and cons in choosing one over the other,
and most of these issues I encountered were minor.  For instance,
ajaxCFC is easier to set up, but the thing I don't like about it is the
passed parameters are transformed and received as array arguments by the
CFCs.  As for CFAJAX it is more work to set up, I like the fact that
arguments are received by functions the way there have been passed by
the calling page.  So you keep variable naming in tact for
self-documenting and easy debugging.  Also with CFAJAX you can't use it
within CFC framework.  So there's a mixed bag of good and bad between
the two.

 

I am about to pick one of these APIs and use it in my production
environment and I want to hear your opinions from those of you who have
used it extensively.  I would like to hear your advice on what to watch
out for under each and which one would you recommend if you have worked
with both.  Thanks.

 

 

 

 





~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234894
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: cfajax vs ajaxCFC Question.

2006-03-09 Thread Munson, Jacob
 For instance,
 ajaxCFC is easier to set up, but the thing I don't like about 
 it is the
 passed parameters are transformed and received as array 
 arguments by the
 CFCs.

This isn't true anymore.  The latest release, 0.66 I believe, does
arguments the same way that cfajax does.

 I would like to hear your advice on 
 what to watch
 out for under each and which one would you recommend if you 
 have worked
 with both.

I have used both, and personally I prefer ajaxCFC mainly because it's a
lot easer to setup.  Also, the last cfajax release I used before jumping
ship didn't work with Apple's Safari.  This may or may not be a concern
for you, but for my site (http://techfeed.net/cfQuickDocs/) that was a
deal breaker.  I don't know if this has been fixed yet (in cfajax), but
I know I mentioned it a few times over a couple of months on the mailing
list, and I never even got a response.  Which brings up the last reason
I like ajaxCFC, there's a lot better support.  Arjun is a great guy, and
he's awesome for having created cfajax and giving it to the community,
but he isn't very good at giving support.  Rob, on the other hand, is
always very responsive and helpful on the ajaxCFC mailing list.


---

This transmission may contain information that is privileged, confidential 
and/or exempt from disclosure under applicable law. If you are not the intended 
recipient, you are hereby notified that any disclosure, copying, distribution, 
or use of the information contained herein (including any reliance thereon) is 
STRICTLY PROHIBITED. If you received this transmission in error, please 
immediately contact the sender and destroy the material in its entirety, 
whether in electronic or hard copy format. Thank you. A1.



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234901
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cfajax vs ajaxCFC Question.

2006-03-09 Thread Rick Root
Nick Han wrote:
 I have used both of these APIs in my test environment.  I think they
 both work well.  There are pros and cons in choosing one over the other,
 and most of these issues I encountered were minor.  For instance,
 ajaxCFC is easier to set up, but the thing I don't like about it is the
 passed parameters are transformed and received as array arguments by the
 CFCs.  As for CFAJAX it is more work to set up, I like the fact that
 arguments are received by functions the way there have been passed by
 the calling page.  So you keep variable naming in tact for
 self-documenting and easy debugging.  Also with CFAJAX you can't use it
 within CFC framework.  So there's a mixed bag of good and bad between
 the two.

Personally, I've found cfajax fairly easy to deal with once you get it 
installed and working, so I don't really consider that an issue. 
Although the documentation talks about mappings and such there's really 
no need for the mapping.

I haven't tried ajaxCFC but I don't like the sound of what you described 
with reference to variables.

You *CAN* use cfajax in a CFC environment if you make some 
modifications.  For example, you could take the functions out of 
functions.cfm and put them into a component, and then do something like 
this in your functions.cfm file:

cfinclude template=/ajax/cfajax.cfm
cfset createObject(component,ajaxFunctions)
!--- expose the following functions ---
cfset myFunction1 = ajaxFunctions.myFunction1
cfset myFunction2 = ajaxFunctions.myFunction2
cfset myFunction3 = ajaxFunctions.myFunction3


Rick

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234912
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cfajax vs ajaxCFC Question.

2006-03-09 Thread Rick Root
Munson, Jacob wrote:
 
 This isn't true anymore.  The latest release, 0.66 I believe, does
 arguments the same way that cfajax does.

That's good to hear.

 
 Also, the last cfajax release I used before jumping
 ship didn't work with Apple's Safari.  This may or may not be a concern
 for you, but for my site (http://techfeed.net/cfQuickDocs/) that was a
 deal breaker.  

cfajax still has this issue but I recently posted a fix:

http://www.opensourcecf.com/1/2006/02/Getting-CFAJAX-to-handle-Safari-properly.cfm

 I like ajaxCFC, there's a lot better support.  Arjun is a great guy, and
 he's awesome for having created cfajax and giving it to the community,
 but he isn't very good at giving support.  Rob, on the other hand, is
 always very responsive and helpful on the ajaxCFC mailing list.

I avoided ajaxCFC because of Rob's restricted open source license.  I do 
agree that Arjun hasn't been providing much support.  If he had an 
official open source license, I'd create a cfopen project and release my 
own derivative work (RabidCFAJAX, anyone?) so that we could have 
multiple developers working on it as an active project.

Given Rob's recent switch the the Apache license, I'm more likely to 
check it out.

rick

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234914
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: cfajax vs ajaxCFC Question.

2006-03-09 Thread Munson, Jacob
 I avoided ajaxCFC because of Rob's restricted open source 
 license.  I do 
 agree that Arjun hasn't been providing much support.  If he had an 
 official open source license, I'd create a cfopen project and 
 release my 
 own derivative work (RabidCFAJAX, anyone?) so that we could have 
 multiple developers working on it as an active project.
 
 Given Rob's recent switch the the Apache license, I'm more likely to 
 check it out.

Interesting.  What license did he used to have, and how was it
restrictive?


--


[INFO] -- Access Manager:
This transmission may contain information that is privileged, confidential 
and/or exempt from disclosure under applicable law.  If you are not the 
intended recipient, you are hereby notified that any disclosure, copying, 
distribution, or use of the information contained herein (including any 
reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in 
error, please immediately contact the sender and destroy the material in its 
entirety, whether in electronic or hard copy format.  Thank you.   A2



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234918
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cfajax vs ajaxCFC Question.

2006-03-09 Thread James Holmes
Did you add it to the wiki?

On 3/10/06, Rick Root [EMAIL PROTECTED] wrote:

 cfajax still has this issue but I recently posted a fix:

 http://www.opensourcecf.com/1/2006/02/Getting-CFAJAX-to-handle-Safari-properly.cfm

--
CFAJAX docs and other useful articles:
http://jr-holmes.coldfusionjournal.com/

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234943
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cfajax vs ajaxCFC Question.

2006-03-09 Thread Rick Root
Munson, Jacob wrote:
 
 Interesting.  What license did he used to have, and how was it
 restrictive?

It was an informal You can only redistribute it with my permission 
license and although he apparently never refused permission to anyone, 
I'm enough of a fan of freely redistributable, open source software that 
it turned me off.

Basically because I develop applications that I want to be open source 
and freely distributable (image.cfc, blogcfm, cffm, etc)

Rick

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234944
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54