Re: Custom Rendering on CFGRID

2014-01-15 Thread Andrew Scott
If you had this if(data == 'false') then this is comparing the data to a string of false, if you want to check for a true or false then you need to remove the single quotes so that it is. if(data == false) Regards, Andrew Scott WebSite: http://www.andyscott.id.au/ Google+:

cfpdf import an image into a pdf

2014-01-15 Thread daniel kessler
I am working on CF9 and I am making a pdf. We did this in CF7, but it's much different in CF9. I have a signature that certifies my document and it's in .gif form. I need to import that into the pdf right where a form field goes. I have CFSET image = expandpath(images\A_CO_Signature.gif)

How do I pass this jQuery variable as arguments to a cfc method?

2014-01-15 Thread Rick Faircloth
Hi, all... I've approached this problem from every direction I can think of and with reference to many, many websites, but I still can put together an answer. I have this HTML in a form: cfoutput query = qGetSpecials div class=special_title_container span class=title_checkbox_span

Re: How do I pass this jQuery variable as arguments to a cfc method?

2014-01-15 Thread Raymond Camden
Why didn't yo post the AJAX code? Isn't that crucial for getting the values to your CFC? We need to see that. On Wed, Jan 15, 2014 at 2:56 PM, Rick Faircloth r...@whitestonemedia.comwrote: Hi, all... I've approached this problem from every direction I can think of and with reference to

RE: How do I pass this jQuery variable as arguments to a cfc method?

2014-01-15 Thread Robert Harrison
If the value isn't changing after the page is rendered you may be able to use document.write java script to write the variable to a CF variable that you can pass to the CFC. I've done that before and it works fine, so long as the variable doesn't change after the page is rendered. Robert

Re: How do I pass this jQuery variable as arguments to a cfc method?

2014-01-15 Thread Matt Quackenbush
It is **impossible** to use document.write java script (sic) to write the variable to a CF variable. Cannot be done. Why? Because CF variables are only available on the server side, and are long gone figments of one's imagination by the time the HTML/JavaScript/CSS/etc. reaches the client side

RE: How do I pass this jQuery variable as arguments to a cfc method?

2014-01-15 Thread Robert Harrison
It is **impossible** to document.write... yes, your right. Sorry about that. It was the other way... writing CF to JS vars. My bad! Doing too much as once. Robert Harrison Director of Interactive Services Austin Williams Advertising I Branding I Digital I Direct   125 Kennedy

Re: How do I pass this jQuery variable as arguments to a cfc method?

2014-01-15 Thread Jon Clausen
I would set your argument type as a list and then validate,loop and process the list in your CFC method. If so you’ll need to change your each() loop to append the variables in to the list and then post the string in your $.post() request. HTH, Jon On Jan 15, 2014, at 3:56 PM, Rick

Re: How do I pass this jQuery variable as arguments to a cfc method?

2014-01-15 Thread Jon Clausen
On a related note, the Postman extension for Chrome is great for testing what your remote CFC's are doing with form variables. On Jan 15, 2014, at 4:53 PM, Jon Clausen jon_clau...@silowebworks.com wrote: I would set your argument type as a list and then validate,loop and process the

Re: How do I pass this jQuery variable as arguments to a cfc method?

2014-01-15 Thread Raymond Camden
How is that better than the Network tab itself? On Wed, Jan 15, 2014 at 3:59 PM, Jon Clausen jon_clau...@silowebworks.comwrote: On a related note, the Postman extension for Chrome is great for testing what your remote CFC's are doing with form variables. On Jan 15, 2014, at 4:53 PM, Jon

Re: How do I pass this jQuery variable as arguments to a cfc method?

2014-01-15 Thread Rick Faircloth
Hey, Ray, and thanks for the reply... Here's the ajax part... $.ajax ({ cache: false, type:'post', url: 'email-newsletter.cfc?method=mProcessEmailNewsletterFormreturnFormat=json', data:values, success: function(result) { alert('Success!');

Re: How do I pass this jQuery variable as arguments to a cfc method?

2014-01-15 Thread Raymond Camden
So values is this: values = { emailNewsletterGreeting: emailNewsletterGreeting, specialTitleID: specialTitleID} I see you set specialTitleID. But you had it in loop. You probably wanted to make that an array. If the values are IDs though you could use an

Re: How do I pass this jQuery variable as arguments to a cfc method?

2014-01-15 Thread Jon Clausen
I like Postman because I can manually test web services, including HTTP verbs and enter form and URL variables against services to test responses and error handling in a variety of formats. It also has tabs that parse your return data, like the network tab does, but in a better format. It's

Re: How do I pass this jQuery variable as arguments to a cfc method?

2014-01-15 Thread Raymond Camden
Ah - so it lets you do ad hoc testing. That is cool. On Wed, Jan 15, 2014 at 5:18 PM, Jon Clausen jon_clau...@silowebworks.comwrote: I like Postman because I can manually test web services, including HTTP verbs and enter form and URL variables against services to test responses and error

Re: How do I pass this jQuery variable as arguments to a cfc method?

2014-01-15 Thread Rick Faircloth
I set emailNewsletterGreeting earlier. It's a value from a single DOM element, so no problem with that. And I was tinkering with code prior to the ajax code, so I was changing variable names halting the processing before ajax kicked in. Your array idea sounds good. I also tried this: var

Re: How do I pass this jQuery variable as arguments to a cfc method?

2014-01-15 Thread Rick Faircloth
Thanks for the tip, Jon! I'll have to check out those Chrome Dev Tools! Rick On Wed, Jan 15, 2014 at 6:18 PM, Jon Clausen jon_clau...@silowebworks.comwrote: I like Postman because I can manually test web services, including HTTP verbs and enter form and URL variables against services to

Re: How do I pass this jQuery variable as arguments to a cfc method?

2014-01-15 Thread Raymond Camden
On Wed, Jan 15, 2014 at 5:38 PM, Rick Faircloth r...@whitestonemedia.comwrote: It shows [ 27, 28, 26 ] in the console. I guess I can just pass that through and have a cfargument type of list and parse those ID's with a cfloop to assign them to individual cfarguments. Or does a