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:32658
So for the meantime, I've put my cfc directory in the web root on the
development server I use.
I have the following code to call the cfc
1
2
3
4
I see the 1, but nothing else (which tells me cfinvoke is not working right).
The filename is "filename.cfc" and is in the cfc d
explain exactly what you're attempting to do here, and why
> (you think) you need to dynamically create a CFC?
I was thinking of going this route, because it is data that will be used to
print on case labels. The complexity of what needs to be printed on the label
is very high (i.e. com
re, and why (you think)
you need to dynamically create a CFC?
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
http://www.houseoffusion.co
>>>How would I use to build a string that doesn't output to the
page?
hehe... I'm pretty sure Ian meant
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326125
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_li
How would I use to build a string that doesn't output to the page?
~|
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/g
I would use a tag to build a string that is the entire
body of the CFC.
Then I would write this string to a file with the tag.
But there are other equally good ways.
~|
Want to reach the ColdFusion community with something
Hello,
I would like to create a cfc using CFFILE that has a CFFILE tag in it.
Some lines of the cfc will always be the same when the file is created.
For example:
Some of the lines will be dynamic based on what the user enters into the text
boxes on the form.
Last in the cfc, I
>If the cfc is being hit, and with the right data, you can absolutely rule
>out the cfajaxproxy tag. Can we clarify that the data being returned from
>the method is the problem? Try posting a form directly to the cfc method,
>e.g.
>
>
>
>
>
>From there, debugging s
rer.
http://www.fiddler2.com/fiddler2/
Enable it, then hit your application. You'll see the ajax call show
up in fiddler.. you can then see the raw response from your cfc using
the session inspector..
--
Rick Root
New Brian Vander Ark Album, songs in the music player and cool behind
the sc
If the cfc is being hit, and with the right data, you can absolutely rule
out the cfajaxproxy tag. Can we clarify that the data being returned from
the method is the problem? Try posting a form directly to the cfc method,
e.g.
>From there, debugging should be more straight forward.
Domi
Of course ;)
2009/8/20 Emmit Larson
> 't ever do that.
> Shirley, you jest?
>
> Kind Regards,
> Emmit
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Arc
After looking at this code I am suddenly hungry for pound cake... dunno why???
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
http://www.houseoff
le tab you should see your http post request
>made by your proxy js object (when you fire that event). You will then be
>able to examine the the data sent to your cfc and also the response.
>
>If there is no http request sent then the problem may well be with the
>cfajaxproxy code - if a
proxy js object (when you fire that event). You will then be
> able to examine the the data sent to your cfc and also the response.
>
> If there is no http request sent then the problem may well be with the
> cfajaxproxy code - if a request *is* sent, then we can safely move on from
&g
etreff: RE: ajax cfc not working for Access DB -- odd stuff
Railo or OpenBD? Do they support cfajaxproxy yet?
> -Original Message-
> From: Don L [mailto:do...@yahoo.com]
> Sent: 19 August 2009 22:42
> To: cf-talk
> Subject: ajax cfc not working for Access DB -- odd stuff
&g
le tab you should see your http post request
>made by your proxy js object (when you fire that event). You will then be
>able to examine the the data sent to your cfc and also the response.
>
>If there is no http request sent then the problem may well be with the
>cfajaxproxy code - if a
http post request
made by your proxy js object (when you fire that event). You will then be
able to examine the the data sent to your cfc and also the response.
If there is no http request sent then the problem may well be with the
cfajaxproxy code - if a request *is* sent, then we can safely move
Railo or OpenBD? Do they support cfajaxproxy yet?
> -Original Message-
> From: Don L [mailto:do...@yahoo.com]
> Sent: 19 August 2009 22:42
> To: cf-talk
> Subject: ajax cfc not working for Access DB -- odd stuff
>
>
> I've moved on to an open source cfml e
05 express (db syntax
are exactly same for such a simple query) and since I'm using "sync" mode I
can't use the setCallbackHandler method to do debugging. Thought, could use
more heads here...
caller lin
Yeah, reserved word seems unlikely.
Chances are you're overwriting add_option somewhere or the scoping is out
somehow.
I notice there's no var scope on your getOptions query, var scope everything
and see it that sorts things.
It's hard to say more without seeing the full CF
I'd be really surprised if that was the actual issue. if add_option was a
reserved word, your initial iteration of the loop would have thrown the
error (you said it would successfully complete the first iteration and then
break).
I'm not sure what the issues is, I'm just saying I'd be surprised
you kow what is was... it was the name of the function "add_option" - i have
renamed to "add_new_option" and it works.
if someon could explain that one?? is it a reserved word?
> You don't really need the CFIF test, since CFOUTPUT will only render
> if
> there are records. Simplify like the
You don't really need the CFIF test, since CFOUTPUT will only render if
there are records. Simplify like the example below and see if it still
gives you trouble. If it does, then check that the add_option() method
isn't erroring ...
~
hi guys,
i have the following cfc function...
add_option is another function within the same cfc.
if the getOptions returns 1 record it works fine. if it returns more than 1,
then it loops once then i get the following...
Variable ADD_OPTION is undefined
Run the page in Firefox with Firebug installed for a better error message.
Post your code for CallWebService() if you can.
Adrian
> -Original Message-
> From: SANJEEV SINGLA [mailto:planetsanj...@gmail.com]
> Sent: 29 July 2009 13:44
> To: cf-talk
> Subject: CFC Err
("/Components/WS/wsabc.cfc?WSDL","sgetCMPFilter",params,"XML");
-- Call WebService is a custom witten javascript function to call the cfc
functions (defined in separate js file).
-- This is executing fine on CFMX 6.1 on development environment.
I am geeting the Obj
On Sunday 26 Jul 2009, James Holmes wrote:
> The way ColdSpring does this is simpler:>
> The init() of your CFC takes a dsnBean as an argument.
Or you can set 'autoWire="byName"' and have ColdSpring use your set'er methods
to do the injection for you.
I
Is it possible your are running on Linux and case sensitivity is an issue?
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
http://www.houseoffusio
>Hm, time to try the ColdSpring list I'd say.
Maybe its a ColdBox issue!
?And while you wait for an answer from there, use the property method and move
on ;)
Will do, thanks for your help :)
>
>Dominic
>
>2009/7/26 Glyn Jackson
>
>>
>> do you or anyone else have any more ideas on this? Th
Hm, time to try the ColdSpring list I'd say. And while you wait for an
answer from there, use the property method and move on ;)
Dominic
2009/7/26 Glyn Jackson
>
> do you or anyone else have any more ideas on this? Thanks :)
>
>
~~~
do you or anyone else have any more ideas on this? Thanks :)
~|
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/c
Restarted and used the dump as suggested and I get...
struct [empty]
strange! If I was to go back the to setdnsBean i can dump in that function and
its there however I want to inject using the init
It should work again just in cause I will post the full code below, if you have
any more ideas
Strange indeed, really should work. Couple of tests I guess:
1. restart cf
2.
Dom
2009/7/26 Glyn Jackson
>
> Still not sure why I am getting this error since it should have been
> passed. any more ideas? thanks
>
>
~
Still not sure why I am getting this error since it should have been passed.
any more ideas? thanks
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive
I know it exsits as if I go back to the setter version i can dump the bean in
the CFC
however I like your version better, but using the..
then...
just give me the same
Hi Dominic,
I have tried...
DBDetails
and I still get "The DSNBEAN parameter to the init function is required but was
not passed in."
~|
Want to
For the arg to be passed into to your constructor, you need:
...
...
Dominic
2009/7/26 Glyn Jackson
> http://www.springframework.org/dtd/spring-beans.dtd";>
>
>
>
>
> factory-method="getConfigBean" />
>
> factory-method="getDatasource">
>
I like this example (below) but for some reasons its not being passed...
the full coldspring.xml
-
http://www.springframework.org/dtd/spring-beans.dtd";>
DBDetails
the parameter to the init function was not passed in for some reason?
~|
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
in ARGUMENTS."
>
> This is how I am injecting the bean into the CFC...
>
>
>
>
>
>
>
>
~|
Want to reach the ColdFusion community with something they want? Let them know
o
With your example here you could use:
>
> Hi, I have my DNS bean injected into my CFC, I have used a setter. how do I
> now use the dns details now 'within' my CFC. do I create it in my init
> method? I want to do someth
Hi,
I did try that with...
however I just get the error "Element DSNBEAN is undefined in ARGUMENTS."
This is how I am injecting the bean into the CFC...
~|
Want to
The way ColdSpring does this is simpler:
The init() of your CFC takes a dsnBean as an argument. In that init()
you simply set variables.dsnBean = arguments.dsnBean. You can then use
it directly from the variables scope;
http://www.bifrost.com.au/blog/
2009/7/26 Glyn Jackson :
>
> Hi,
Hi, I have my DNS bean injected into my CFC, I have used a setter. how do I now
use the dns details now 'within' my CFC. do I create it in my init method? I
want to do something like the
(Admittedly this problem for us occurred when we used a defined LOCAL
scope inside the function... ie and
then and then in a
query of queries... we'd always get errors when trying to do select *
from LOCAL.qry
Rick
On Mon, Jul 20, 2009 at 1:17 PM, Rick Root wrote:
> I've never been able to us
I've never been able to use a multipart identifier for a table in
query of queries until we figured out that it does let you put
brackets in...
ie...
FROM [arguments.dataIn]
--
Rick Root
New Brian Vander Ark Album, songs in the music player and cool behind
the scenes video at www.myspace.com/b
gt;
>
>
>
> Should work.
>
> Francois Levesque
> http://blog.critical-web.com/
>
>
> On Mon, Jul 20, 2009 at 1:00 PM, Pete Ruckelshaus >wrote:
>
> >
> > I'm stuck. Actually, I'm probably just being stupid.
> > I want to pass a quer
. Actually, I'm probably just being stupid.
> I want to pass a query object into a CFC and then use query of queries to
> manipulate that query object.
>
> Here's the contents of my db.cfc file:
>
>
>
>
> SELECT top 100 *
> FROM person.contact
>
I'm stuck. Actually, I'm probably just being stupid.
I want to pass a query object into a CFC and then use query of queries to
manipulate that query object.
Here's the contents of my db.cfc file:
SELECT top 100 *
FROM person.contact
SELECT *
FROM #arguments.da
You could try to put the logging in one place in the webservice cfc;
in the pseudo-constructor area. Since that's in the CFC, perhaps
isSOAPRequest() will work there (too lazy to check).
mxAjax / CFAjax docs and other useful articles:
http://www.bifrost.com.au/blog/
2009/7/11 Ma
7;t work for remote calls) and have any and all
calls within the webservice covered.
The first snag was that IsSOAPRequest() only seems to return true when INSIDE a
cfc function. I ended up watching the cgi.HTTP_ACCEPT variable for "soap+xml".
With my simple examples this seems to giv
/ console.log to examine the response, make sure DATA
>> is a
>>> valid property of the response JSON
>>>
>>> -- Josh
>>>
>>>
>>>
>>> I am trying to call a query from a CFC using jQuery with the
>> following code:
>>&
Well "eval" is essentially a string-to-json conversion.
Are you sure your json is valid? Try going here and pasting in your string:
http://www.jsonlint.com/
Also, in your jQuery ajax call, it has to be dataType with the capital "T" -
javascript is case sensitive.
>Josh,
>I tried datatype:
> >1) Add dataType:'json' as an attribute of your ajax call, or use $.
> getJSON
> >2) use Firebug / console.log to examine the response, make sure DATA
> is a
> >valid property of the response JSON
> >
> >-- Josh
> >
> >
> >
>Just to give you another way of looking at it.
>
>JSON is just a string format, much like WDDX is (although a lot less
>verbose). Without parsing, it's still just a string.
>
>The manual way of converting JSON to a JS data struct is by calling eval()
>on it - like so:
>
>var data = eval(myJSONSt
an an
> object.
>
> This is independent of passing returnformat=json to your cfc. That creates
> a json string which gets passed back to the client. However you must do
> something in javascript to turn the string into an object; either eval'ing
> it manually, or use dataType: &
in Firebug as a
clickable green link; when you click it, it should show you the property
values. If it is not clickable, then you have a string rather than an
object.
This is independent of passing returnformat=json to your cfc. That creates
a json string which gets passed back to the client. Howe
>1) Add dataType:'json' as an attribute of your ajax call, or use $.getJSON
>2) use Firebug / console.log to examine the response, make sure DATA is a
>valid property of the response JSON
>
>-- Josh
>
>
>
>I am trying to call a query from a CFC using jQuery w
>depends on what you have in cfc as well, are you seeing the response in
>firebug?
>
>shouldn't this:
> var resp = jQuery.trim(response);
>
>be this:
> var resp = $.trim(response);
>
>are you on adobe or railo?
>railo this wont work yet:
>&queryfo
y, June 17, 2009 1:41 PM
To: cf-talk
Subject: CFC and jQuery
I am trying to call a query from a CFC using jQuery with the following code:
$(document).ready(
function () {
$.ajax({
type: "GET",
url: "SpellChecker.cfc?method=getTextMem
depends on what you have in cfc as well, are you seeing the response in firebug?
shouldn't this:
var resp = jQuery.trim(response);
be this:
var resp = $.trim(response);
are you on adobe or railo?
railo this wont work yet:
&queryformat=column
where you getting datastring from?
I am trying to call a query from a CFC using jQuery with the following code:
$(document).ready(
function () {
$.ajax({
type: "GET",
url: "SpellChecker.cfc?method=getTextMemoFields&returnformat=json
&queryformat=column&quo
>>Only odd to you because you are all knowing.
For some reason this tickles me pink. Dave, you *are* a walking, talking
cf_encyclopedia.
G!
On Fri, Jun 12, 2009 at 8:45 PM, Ryan Letulle wrote:
> Only odd to you because you are all knowing.
>
--
Gerald Guido
http://www.myinternetisbroken.
Consider returning an object (another CFC), rather than a struct. In
some cases a struct works well, but if you return an object you have
better documentation as to what it returns, rather than with a struct
with unknown keys. You can also setup default values in the CFC.
--
Pete Freitag
http
@dave
I started using cfcs after reading a Ben Forta article a couple of years ago
where he said at least use cfcs for querys and you should never output to
the screen from cfcs. For the most part that is what I have used them for.
Unfortunately, I never really advanced further than that with cfc
> Only odd to you because you are all knowing.
I wish! But calling functions in CF is basically the same as calling
functions in other languages. You provide a list of inputs, and get a
single return value.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
Fig Leaf Software provides th
BTW
I always appreciate the guidance.
--
Ryan LeTulle
On Fri, Jun 12, 2009 at 7:45 PM, Ryan Letulle wrote:
> Only odd to you because you are all knowing.
>
>> For the most part I have always returned either a query or 1 variable.
>
>
> I have never done this before in
Only odd to you because you are all knowing.
> For the most part I have always returned either a query or 1 variable.
I have never done this before in a cfc.
--
Ryan LeTulle
On Fri, Jun 12, 2009 at 7:43 PM, Dave Watts wrote:
>
> > Understand, I guess the proper terminolo
> Understand, I guess the proper terminology should be multiple "values" ?
Well then, it seems an odd question to ask. Return whatever data type
reflects the best possible output for your function. If that's a
query, return a query. If it's an array, return an array. If it's a
structure, return a
Understand, I guess the proper terminology should be multiple "values" ?
--
Ryan LeTulle
On Fri, Jun 12, 2009 at 7:35 PM, Dave Watts wrote:
>
> > Is it a common/best practice to return multiple variables from a cfc?
> Like
> > if I wanted perform some processing
> Is it a common/best practice to return multiple variables from a cfc? Like
> if I wanted perform some processing in a cfc and return several variables.
> For the most part I have always returned either a query or 1 variable.
>
> If so, what would be the best return type for
That's what I thought but I've been wrong before. :)
--
Ryan LeTulle
On Fri, Jun 12, 2009 at 7:30 PM, Rob Parkhill wrote:
>
> You would need to return it as a struct. then just reference any parts of
> the struct that contain the data you want. I have one cfc that re
You would need to return it as a struct. then just reference any parts of
the struct that contain the data you want. I have one cfc that returns a
struct of arrays...
Rob
On Fri, Jun 12, 2009 at 8:25 PM, Ryan Letulle wrote:
>
> Is it a common/best practice to return multiple variables
Is it a common/best practice to return multiple variables from a cfc? Like
if I wanted perform some processing in a cfc and return several variables.
For the most part I have always returned either a query or 1 variable.
If so, what would be the best return type for this?
Does that make sense
Is your mail server on the same machine as CF? Check it's running.
It probably has nothing to do with being in a CFC. Create a simple cfm page
to test it.
Adrian
> -Original Message-
> From: arya krishnan [mailto:arun.b.shou...@gmail.com]
> Sent: 29 May 2009 19:17
Hi All,
I am able to send mails via cfmail tag in cfm pages but not in cfc. I used to
send mails from cfc but now it is throwing the below error message.Please
advice where i am going wrong
"Error","scheduler-2","05/29/09","06:15:32",,"Could n
>> coded like spaghetti with meatballs.
That is a good one.
>>>The discussion with my colleagues is that some want to refactor the whole
project in a framework. I think it's to much work, and you can better start
from scratch. My other colleagues disagrees.
I just got done doing something very
Forgot to include the URL to the Galleon Project, d'oh!
Here it is: http://www.tapogee.com/galleonproject/
--
s. isaac dealey ^ new epoch
isn't it time for a change?
ph: 817.385.0301
http://onTap.riaforge.org/blog
~~
Isaac's got some great stuff in there. I just wanted to throw in a couple
things and reword what he said my own way...
Typically, a non-frameworked app with thousands of cfm and cfc files is
either made very well, or it's coded like spaghetti with meatballs.
If it's well constru
> I want your opinion ( or experience ) with refactoring an old project
> into a framework. I am working now on a old non-frameworked project
> with plain cfm files with .cfc function and object libraries. This
> projects contains a bunch of .cfm files and .cfc. About 1000 i
Hello,
I want your opinion ( or experience ) with refactoring an old project into a
framework. I am working now on a old non-frameworked project with plain cfm
files with .cfc function and object libraries. This projects contains a bunch
of .cfm files and .cfc. About 1000 items.
The
cf's bindings to form controls do not allow for event chaining or
binding to multiple events...
so, save for turning FF's autocomplete feature off by adding
autocomplete="off" to your / tag, you are out of luck...
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/
On 20/05/2009 15:53, Jayel
I have a simple input field the dynamically retrieves data from Oracle and
populates other input fields.
I am using keyup on the binding. This is working okay EXCEPT that when using
firefox (possible IE as well), firefox has cached the previous data I entered
on the field.
e.g. I I entered "e
imageCFC bro ;)
Jose Diaz
On Thu, May 7, 2009 at 9:46 PM, Casey Dougall
wrote:
>
> On Thu, May 7, 2009 at 2:26 PM, Michael Muller wrote:
>
>>
>> I've just started using it too, and would love a CFC interface to it rather
>> than using CFEXECUTE.
>>
&
On Thu, May 7, 2009 at 2:26 PM, Michael Muller wrote:
>
> I've just started using it too, and would love a CFC interface to it rather
> than using CFEXECUTE.
>
> Have to say, their docs are horrible though. Very little in the way of
> actual command line syntax, and s
I used cf_magicktag back in the day, and I will let you all know that it's
complete crap - never use it. seriously.
Michael - Use cfexecute, put it in a cfc as a wrapper for the exe. Sorry,
that's all I've got.
nathan strutz
[Blog and Family @ http://www.dopefly.com/]
[AZCFUG
I know it was done once as a custom tag, with nested parameters and all
that.
Was called cf_magicktag... really old but it is what I used prior to image
support in cf8.
On Thu, May 7, 2009 at 12:26 PM, Michael Muller wrote:
>
> I've just started using it too, and would love a CF
I've just started using it too, and would love a CFC interface to it rather
than using CFEXECUTE.
Have to say, their docs are horrible though. Very little in the way of actual
command line syntax, and some of the examples are just plain wrong.
Mik
>That would be cool!
>
>If
t; On Fri, May 1, 2009 at 5:46 PM, Scott Stroz wrote:
>
>>
>> As long as the AJAX requests are being made to a file under the web
>> root - and how could they not? - then there is no need to duplicate
>> the tag in your 'remote' CFC
>>
>> On Friday,
d they not? - then there is no need to duplicate
> the tag in your 'remote' CFC
>
> On Friday, May 1, 2009, Lance S wrote:
> >
> > I think you mentioned you are using ajax, correct. Ajax is processing
> with out knowledge of the application space. To get around t
As long as the AJAX requests are being made to a file under the web
root - and how could they not? - then there is no need to duplicate
the tag in your 'remote' CFC
On Friday, May 1, 2009, Lance S wrote:
>
> I think you mentioned you are using ajax, correct. Ajax is proces
edge of the application space. To get around this I created a cfc
> that all my cfc calls go through and the top of the cfc looks like
>
>
>SESSIONMANAGEMENT="true"
>CLIENTMANAGEMENT="true"
>SETCLI
I think you mentioned you are using ajax, correct. Ajax is processing with out
knowledge of the application space. To get around this I created a cfc that
all my cfc calls go through and the top of the cfc looks like
http://ad.doubleclick.net/clk;207172674;29440083;f
Good idea, but the data in this case is going back as part of a
tag, instead of back through jquery the normal way I do it,
with json.
However, perhaps I could run the , etc. code and then run
another
.
I'll give that a try.
Thanks, Maureen.
Rick
On Wed, Apr 29, 2009 at 4:51 PM, Maureen wro
iginal Message-
> From: Rick Faircloth [mailto:r...@whitestonemedia.com]
> Sent: Wednesday, April 29, 2009 1:14 PM
> To: cf-talk
> Subject: Is it not possible to set session variables in a cfc method?
>
>
> I'm trying to create a "preview" setup via cf, jquery,
e first things many people do
> is move them to a directory that is not inside the normal web root and
> thus probably not covered by the Application.cfm or Application.cfc file
> and thus will not be part of the same "Application" memory as far as CF
> is concerned.
>
> I
bject: Is it not possible to set session variables in a cfc method?
I'm trying to create a "preview" setup via cf, jquery, and ajax for
a form.
Before I get too deep into all this code, let me just ask this:
Can I set session variables in the cfc method to the values of the
fo
Write a Coldfusion function that sets a structure equal to session
variables and and pass that structure back to qQuery. Then the client
has access to the session data.
On Wed, Apr 29, 2009 at 1:41 PM, Ian Skinner wrote:
>
> Rick Faircloth wrote:
>> The calling page isn't refreshing, it's just
Rick Faircloth wrote:
> The calling page isn't refreshing, it's just having the content *added*
> to the page via jquery.
JQuery is *NEVER* going to have access to read or write ColdFusion
session data. ColdFusion session data is on the server and JQuery is on
the client and they do not shar
401 - 500 of 4707 matches
Mail list logo