I'm trying to make a request to a .NET 2 Web Service from CF5 using
cfhttp.
the soap envelope that i am creating is:
cfsavecontent variable=localscope.soapRequest
soap:Envelope xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xmlns:xsd=http://www.w3.org/2001/XMLSchema;
Hi all, Is it possible to compare 2 chunk of text and highlight the difference
in the second chunk?
e.g.cfset textChunk1 = My name is Abi
cfset textChunk2 = My name is Abigail today
comPareString(textChunk1,textChunk2)
The output should then be My name is bAbigail today/b - i.e. Abigail
I'm trying to make a request to a .NET 2 Web Service from CF5 using cfhttp.
the soap envelope that i am creating is:
cfsavecontent variable=localscope.soapRequest
soap:Envelope xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xmlns:xsd=http://www.w3.org/2001/XMLSchema;
chunk comparison
Hi all, Is it possible to compare 2 chunk of text and highlight the
difference in the second chunk?
e.g.cfset textChunk1 = My name is Abi
cfset textChunk2 = My name is Abigail today
comPareString(textChunk1,textChunk2)
The output should then be My name is
// just use equality comparison
cfif textChunk1 IS textChunk2
The two chucks seem from the same stock.
cfelse
You're nuts. Just kidding :)
/cfif
But using equality will only tell you if they're equal or not e.g. the compare
function will only return a -1,0 or 1.
I was hoping that there is
I just checked and don't see it. Can you post it again please?
On Tue, May 27, 2008 at 5:21 PM, Carl Von Stetten
[EMAIL PROTECTED] wrote:
Ray,
I did post the entire CFC in my reply to your earlier post.
I added the cflog to the OnSessionStart, and if I start my application
from a fresh
He was just being a simple tool. There was no intention of that working.
There is nothing built in to do anything like this.
You may be able to find a compare/merge command line tool that you can
cfexecute... else, in CF... basically what you would have to do is:
1) Remove the parts that DO
A simple way to do this would be to split the chunk of text on a space, into
an array or list. Then loop over that list and compare bit of the string
individually. At that point you'd be able to tell where the changes are, if
there are any.
-Original Message-
From: Abigail Coker
A simple way to do this would be to split the chunk of text on a space, into
an array or list. Then loop over that list and compare bit of the string
individually. At that point you'd be able to tell where the changes are, if
there are any.
OK thanks guys, I was hoping there was already a
Good morning Chad,
Try it without the group attribute in the foo query output.
Cheers,
Mark
Chad Gray wrote:
Since when have we been able to nest cfoutputs?
I have always thought that you could not do this. Maybe it was a CF4.5/5.0
thing and in never learned it was possible in MX?
I
Since when have we been able to nest cfoutputs?
I have always thought that you could not do this. Maybe it was a CF4.5/5.0
thing and in never learned it was possible in MX?
I just tried this and it works in my CF8 installation:
cfoutput query=foo group=id
#foo.id#br
cfoutput#foo.b#br/cfoutput
I'm having the same issue here. Did these posts solve anything for ya Ian?
On Thu, Mar 20, 2008 at 9:45 AM, Ian Skinner [EMAIL PROTECTED] wrote:
Is there some trick to consuming a web service over HTTPS(SSL) in
ColdFusion. I keep getting a
Cannot generate stub objects for web service
You've always been able to nest outputs when placed within a grouped output.
-Original Message-
From: Chad Gray [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2008 8:48 AM
To: CF-Talk
Subject: cfoutput in a cfouput
Since when have we been able to nest cfoutputs?
I have always
Casey Dougall wrote:
I'm having the same issue here. Did these posts solve anything for ya Ian?
Solve, no. The requirement went away. So I just filed these links away
for future reference for the next time I have to deal with this issue.
Hold on-- you had this conversation too early for me to get to work and
reply. :)
I have a function I wrote a while back to do this. It is a variant of
the LCS or Longest Common String method. I found a version online in C
called SIFT3 or something and changed it to cfscript. It doesn't
On Wed, May 28, 2008 at 6:47 AM, Chad Gray [EMAIL PROTECTED] wrote:
Since when have we been able to nest cfoutputs?
I have always thought that you could not do this. Maybe it was a CF4.5/5.0
thing and in never learned it was possible in MX?
I just tried this and it works in my CF8
I don't have that access to the server I am hosting the site at Hostek.com.
I have a ticket opened with them and waiting to hear back about the below
questions. My guess is Yes on the first one, not sure about the second.
We actually had this same problem a few months ago when they moved all my
Hello folks,
I've been working on some simple utilities here at work to convert what
people have been doing with paper, yes, that's right some people are
still using paper. Now that I've converted a ton of paper to web forms
and created pdfs for them along with emails, they've asked me about
On Wednesday 28 May 2008, Imperial, Robert wrote:
providing a way to allow them to digitally sign these documents. I'm not
PDF supports this (somewhere...) or you can create detached standards
compliant signatures with gpg.
Depends on the 'why' and if you have any existing PKI infrastructure...
On Tue, May 27, 2008 at 4:50 PM, Dave Watts [EMAIL PROTECTED] wrote:
You need to configure your user account to have the required permissions and
privileges. Your account must have the log on as a service privilege,
read/execute access to your web root directory, and RWXD access to your CF
What's a good way to prevent a user from running a cfm program over and over if
they click a submit button multiple times? For example. a user clicks a submit
button for the first time. CFM runs. Then, before it finishes, they click the
submit button again. Apart from a cfflush and a please
I've looked in C:\Documents and Settings\Administrator\Local
Settings\Temporary Internet Files, however I can't find the
file where the cookie stored. Please advise. Thanks!
Unless you specified an EXPIRES attribute, CFCOOKIE creates a session cookie
which isn't written to disk.
Dave Watts,
On Wednesday 28 May 2008, Richard Steele wrote:
finishes, they click the submit button again. Apart from a cfflush and a
please wait message, are there other options to prevent the cfm from
running multiple instances? Many thanks!
Use JavaScript to disable the button.
--
Tom Chiverton
It won't stop multiple instances... But when I ran a system that was
prone to multiple clicks, I would check to see if a Using System
flag was set in the Database. If it wasn't, then I'd run the process
(which first thing it would do would be to set the flag). If it was
already set, then I would
But why would you ever want to next cfoutput tags?
Rick
-Original Message-
From: Charlie Griefer [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2008 10:55 AM
To: CF-Talk
Subject: Re: cfoutput in a cfouput
you've always been able to nest cfoutputs within one another when the
Might not help as some users turn off javascript. If you are serious
about not duplicating records, then you can't rely on client side
processing IMHO.
You need some logic on the server side of things.
On Wed, May 28, 2008 at 8:37 AM, Tom Chiverton
[EMAIL PROTECTED] wrote:
Use JavaScript to
For which browser? Cookies are stored by browser.
Robert B. Harrison
Director of Interactive services
Austin Williams
125 Kennedy Drive, Suite 100 Hauppauge NY 11788
T : 631.231.6600 Ext. 119
F : 631.434.7022
www.austin-williams.com
Great advertising can't be either/or... It must be .
What's a good way to prevent a user from running a cfm program over
and over if they click a submit button multiple times? For example. a
user clicks a submit button for the first time. CFM runs. Then, before
it finishes, they click the submit button again. Apart from a cfflush
and a
I can't imagine a scenario where you would.
that's why i alluded to the fact that you can now do it (as of MX) as
being either a feature or a bug :) But the fact remains that
pre-MX it would throw an error, where post-MX it does not.
On Wed, May 28, 2008 at 8:37 AM, Rick Faircloth
[EMAIL
I guess to make things easier for those people just starting out...
My god Have I officially passed into Old Time ColdFusion Geezer
after 8 years? :)
On Wed, May 28, 2008 at 8:41 AM, Charlie Griefer
[EMAIL PROTECTED] wrote:
I can't imagine a scenario where you would.
that's why i alluded
You could use a session variable. I play a start up sound on log-in but
don't want it playing every time they refresh the main page and a session
variable works. Set it to on at log-in time and off after play.
Robert B. Harrison
Director of Interactive services
Austin Williams
125 Kennedy
Ray,
I was having some problems with my email account yesterday. Apparently
that post never made it to the forum. Anyway, I'm attaching the current
version of my CFC that is working.
Thanks,
Carl
Raymond Camden wrote:
I just checked and don't see it. Can you post it again please?
On Tue,
OK, as promised here it is.
http://www.bradwood.com/string_compare/
This is a very crude example, and I'm sure the code can be improved
upon, but feel free to use it if you think it will help you.
Also, I should clarify... Below I stated that it didn't perform to well
when doing thousands of
Just curious... I'm a bit confused on how to do this and figured
someone else may have an idea (if not the code). Sorry if this sounds
disjointed. I still have yet to get my coffee this morning.
I have the following string...
This is a a href=http://www.foobar.com;Link/a to foobar.
I would like
I have seen similar problems repeatedly with SSL.
I had to always load the certificate in the Java Key Store for it to work. You
will have to contact the website to which you are attempting to connect and ask
them to provide you with their public cert.
Then, you will have to load the cert into
Hate to break it to you...but you've been in the Geezer category
for a couple of years now. :oP
Rick
-Original Message-
From: Phillip Vector [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2008 11:45 AM
To: CF-Talk
Subject: Re: cfoutput in a cfouput
I guess to make things
Just curious... I'm a bit confused on how to do this and
figured someone else may have an idea (if not the code).
Sorry if this sounds disjointed. I still have yet to get my
coffee this morning.
I have the following string...
This is a a href=http://www.foobar.com;Link/a to foobar.
I am going to get that information and give it try, thanks!
But I am unable to connect using POST to any site with or out without SSL.
Rick
-Original Message-
From: Ci James [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2008 11:00 AM
To: CF-Talk
Subject: Re: CFHTTP Post
I have
I have seen similar problems repeatedly with SSL.
I had to always load the certificate in the Java Key Store
for it to work. You will have to contact the website to which
you are attempting to connect and ask them to provide you
with their public cert.
You don't have to contact the
Hmmm So if a cfcookie is used for a shopping cart id, and
the user's browser crashes, they lose their shopping cart?
However if I use the expires attribute, it's written to disk
immediately and thus preventing that scenario?
Yes to both questions. However, the likelihood of the user's
Ray,
Apparently putting the contents inline and sending from my email client isn't
working, so I'll try through the web interface. Here are the contents (note
the last two functions are commented out as I haven't implemented them yet:
cfcomponent
displayname=Application
Since when have we been able to nest cfoutputs?
I have always thought that you could not do this. Maybe it
was a CF4.5/5.0 thing and in never learned it was possible in MX?
I just tried this and it works in my CF8 installation:
cfoutput query=foo group=id
#foo.id#br
My god Have I officially passed into Old Time ColdFusion Geezer
after 8 years? :)
Ha! Look here sonny. Back in my day when we wanted to query a database we
did it by rubbing two sticks together.
~|
Adobe® ColdFusion® 8
BAH!!!
Heh.. I caught myself thinking Back during ColdFusion 5, I learned
the hard way not to nest cfoutputs... These kids today have it easy.
:)
On Wed, May 28, 2008 at 9:07 AM, Rick Faircloth
[EMAIL PROTECTED] wrote:
Hate to break it to you...but you've been in the Geezer category
for a
Cool. Found a bit of code to do basically what I wanted. Thanks. :)
On Wed, May 28, 2008 at 9:12 AM, Dave Watts [EMAIL PROTECTED] wrote:
Just curious... I'm a bit confused on how to do this and
figured someone else may have an idea (if not the code).
Sorry if this sounds disjointed. I still
Phillip -
Well, for the first part of your question, the following regex will
remove all the html from a string:
cfset blah = reReplaceNoCase(some_html,/?[^]*,,all) /
Thanks!
Ryan
Phillip Vector wrote:
Just curious... I'm a bit confused on how to do this and figured
someone else may have an
Thanks. :)
On Wed, May 28, 2008 at 9:27 AM, Ryan J. Heldt [EMAIL PROTECTED] wrote:
Phillip -
Well, for the first part of your question, the following regex will
remove all the html from a string:
cfset blah = reReplaceNoCase(some_html,/?[^]*,,all) /
Thanks!
Ryan
Phillip Vector wrote:
I've been working on some simple utilities here at work to
convert what people have been doing with paper, yes, that's
right some people are still using paper. Now that I've
converted a ton of paper to web forms and created pdfs for
them along with emails, they've asked me about providing
If you are using a data base for client variables they also work well for
shopping carts. If you're writing client variables to the registry... no no.
I've used client variables for shopping carts with a simple CFID and that
worked well.
Robert B. Harrison
Director of Interactive services
When you strip via Regex you will either restrict your input to the start of
the anchor tag or deal with the end result one more time.
I normally prefer to get the content of the href attribute.
You can get the href content using this type of construct:
sURL = ListGetAt(FullUrl,2,);
where
Graham,
we had occasional trouble with cfpop, especially connecting to Lotus Notes. In
those circumstances we have used an alternate plug in (CFX_POP3), cost about
$50 successfully.
Cheers,
Bilal
~|
Adobe® ColdFusion® 8
Dom,
a while back when using CF5 we also used a framework for soap that had all the
parts build in UDFs.
(http://www.fusionauthority.com/tech-and-tags/3058-whats-new-in-the-tag-gallery.htm)
This may be helpful for you to review.
Cheers,
Bilal
So my number one tip is to simplify. Remove 100% of the stuff you
don't need for right now. All the stuff in onRequestStart, shoot,
remove all the methods except onSessionStart. Make the CFC as simple
as possible and just ensure you can dump the CFC in the session scope.
On Wed, May 28, 2008 at
Thanks Dave this is exactly the kind of kick-start I need on this as it is
all new to me at this point. These utilities are running on windows server
2003 standard w/CF7 standard at the moment. I have full access to the box so
this should help speed things along for me I would think. Currently I
I got a response from Hostek and its now working but they haven't told me
what they did to fix the problem. I am also able to get it to work on a CF8
server also...
I am waiting for them to tell me what they did to fix it and I will post it.
Thanks everyone!
Rick
-Original Message-
Hey all,
I am having some trouble with an install. We have an Apache Web Server set up
with Linux. We have set up a virtual machine to run Cold Fusion. We have run
through the multi-server configuration but when we get to choosing a web
server, we are running into issues. We can not run
I am having some trouble with an install. We have an Apache
Web Server set up with Linux. We have set up a virtual
machine to run Cold Fusion. We have run through the
multi-server configuration but when we get to choosing a web
server, we are running into issues. We can not run the
This will strip the link tags from around text contained in variable mytext:
cfset newtext = rereplacenocase(mytext,(a
[^]*)([^]*)(/a),\2,all) /
cfoutput#newtext#/cfoutput
Using back-references, \2 refers to the text between the a/a tags.
I believe that \1 would refer to the a tag and associated
Ray,
Thanks again for your suggestions. I found the problem in one of the
security-related include files that was performing a StructClear on my
session scope. I fixed that code, and now my CFC is loading into the
session scope just fine.
Carl
Raymond Camden wrote:
So my number one tip is
I'm totally stuck. USAePay has a API that list with a shit load of
coldfusion examples that do squat. I ask them about it, and they are like,
yeah those work for simple transactions. I'm like ok, I'll use the SOAP api
instead...
I tried cfinvoke no luck... Cannot generate stub objects for web
I see a lot of people posting code and/or having problems doing so (like
Carl was having today) and I thought I would share this little nugget of
joy:
http://pastebin.com/
They describe themselves as being a collaborative debugging tool
Basically it a site that allows you to post code and
Gerald,
Thanks. That would have been very handy indeed! I'll try and use it
next time I have to post more than a few lines of code.
Carl
Gerald Guido wrote:
I see a lot of people posting code and/or having problems doing so (like
Carl was having today) and I thought I would share this
Thanks for the info Dave. I will look into using reverse proxy.
-Original Message-
From: Dave Watts [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2008 12:59 PM
To: CF-Talk
Subject: RE: Cold Fusion 8 multi-tier set up
I am having some trouble with an install. We have an Apache
Feel free to download cf4em (http://cf4em.com) and use whatever you can or
want from the BBML parser. You will find it in /inc/parsebbml.cfm
It can turn http://exampleurl.com into a href=http://exampleurl.com;
title= http://exampleurl.com target=_blank http://exampleurl.com /a
It can do the same
Bobby Hartsfield -- a dispicalbe being
He was just being a simple tool. There was no intention of that working.
There is nothing built in to do anything like this.
You may be able to find a compare/merge command line tool that you can
cfexecute... else, in CF... basically what you would have to
I tried to put up with your crap before, but enough, you are nothing
but a dispicalbe being. Try to remember this, anything I post DON'T
FOLLOW UP.
Don L,
Can he follow up if only to point out your spelling errors?
Will
I have an application that onRequestStart is setting an application scoped
variable which needs to be accessed by another page that isn't located in the
same directory as the app e.g. location of app: c:\webroot\myapp and location
of file that needs to access app c:\webroot\common\fckeditor. I
I wasn't 'following up' for you or to you... I was actually giving a
legitimate reply to offer some ideas to the original poster and to point out
that you were not serious since they obviously thought you were. Like most
people here (and a couple other places), the last thing I wanted to do was
68 matches
Mail list logo