[jQuery] Re: ColdFusion, ajax, post, jquery and whitespace

2007-05-26 Thread Gareth Hughes
D]> To: 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: - Jack Jack Killpatrick wrote: > > Hi Gareth, > > Here are the basics: > > 1. add ajaxCF

[jQuery] Re: ColdFusion, ajax, post, jquery and whitespace

2007-05-25 Thread Jack Killpatrick
Oh yeah, and of course include the path to jquery.AjaxCFC.js in your HTML: src="../js/ajaxCFC/jquery.AjaxCFC.js"> - 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. create a CFC that extends AJAXCFC.a

[jQuery] Re: ColdFusion, ajax, post, jquery and whitespace

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: setAllowedVerbs('POST'); setCheckHTTPReferer(true); do some CF stuff For the cfreturn, you can

[jQuery] Re: ColdFusion, ajax, post, jquery and whitespace

y 25, 2007 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/aj

[jQuery] Re: ColdFusion, ajax, post, jquery and whitespace

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 simple

[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/ It's very easy to setup/use and uses jquery. I can supply a few code snipp

[jQuery] Re: ColdFusion, ajax, post, jquery and whitespace

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

[jQuery] Re: ColdFusion, ajax, post, jquery and whitespace

ry-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rey Bango Sent: Friday, May 25, 2007 9:32 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: ColdFusion, ajax, post, jquery and whitespace Because CF is horrible at handling whitespace. Always has been. I always use a CFSAVECONTENT t

[jQuery] Re: ColdFusion, ajax, post, jquery and whitespace

>I'll need to test an ajax post to validate if an account already exists in >database. I'm using this code in action page: > > > >value="#GetHttpTimeString(Now())#"> > > > >#rndTest# > << LOOK HERE WITHOUT CFOUTPUT >no > > > > >Using that script returns(randomly) the "

[jQuery] Re: ColdFusion, ajax, post, jquery and whitespace

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: value="#GetHttpTimeString(Now())#"> #rndTest# no #trim( myResults )#