@googlegroups.com
Sent: Friday, May 25, 2007 8:15 PM
Subject: [jQuery] Re: ColdFusion, ajax, post, jquery and whitespace
Oh yeah, and of course include the path to jquery.AjaxCFC.js in your HTML:
script type=text/javascript
src=../js/ajaxCFC/jquery.AjaxCFC.js/script
- Jack
Jack Killpatrick wrote
Because CF is horrible at handling whitespace. Always has been.
I always use a CFSAVECONTENT tag to save the output to a var and then I
trim the var before it goes back to the XHR request. So try this:
cfsetting showdebugoutput=no
cfprocessingdirective suppresswhitespace = yes
Yes Rey. I'm using cfsavecontent with another application and resolves.
But looks like a step ahead...
Returning to cfsavecontent..
Thanx.
2007/5/25, Rey Bango [EMAIL PROTECTED]:
Because CF is horrible at handling whitespace. Always has been.
I always use a CFSAVECONTENT tag to save
You might want to consider using ajaxCFC and returning json data. You
won't have to be concerned about white space, and it could come in handy
for a lot of other things:
http://www.robgonda.com/blog/projects/ajaxcfc/
It's very easy to setup/use and uses jquery. I can supply a few code
Sure Dan. This is only a test to show for the list. ;-)
In the real world I'll return information about client accounts. When user
inserts account data I'll validate(before he/she fills 65 fields), if that
account inserted already exists in database. If exists I'll block submit
button. So
5:39 PM
Subject: [jQuery] Re: ColdFusion, ajax, post, jquery and whitespace
You might want to consider using ajaxCFC and returning json data. You
won't have to be concerned about white space, and it could come in handy
for a lot of other things:
http://www.robgonda.com/blog/projects/ajaxcfc
Hi Gareth,
Here are the basics:
1. add ajaxCFC to your CF project (or somewhere that it can get to).
2. create a CFC that extends AJAXCFC.ajax:
cfcomponent extends=AJAXCFC.ajax
!--- security stuff ---
cfscript
setAllowedVerbs('POST');
setCheckHTTPReferer(true);
Oh yeah, and of course include the path to jquery.AjaxCFC.js in your HTML:
script type=text/javascript
src=../js/ajaxCFC/jquery.AjaxCFC.js/script
- Jack
Jack Killpatrick wrote:
Hi Gareth,
Here are the basics:
1. add ajaxCFC to your CF project (or somewhere that it can get to).
2.
8 matches
Mail list logo