RE: (ot) jQuery question

2010-12-12 Thread Rick Faircloth
Thanks, Matt! :o) Rick -Original Message- From: Matt Quackenbush [mailto:quackfu...@gmail.com] Sent: Sunday, December 12, 2010 12:45 PM To: cf-talk Subject: Re: (ot) jQuery question In Charlie's example, 'i' is the current index position of the each loop, while &#x

RE: (ot) jQuery question

2010-12-12 Thread Rick Faircloth
ubject: Re: (ot) jQuery question You don't need the i or o arguments for the code I posted. They were remnants from copying your original code. >From the docs (http://api.jquery.com/each/): .each( function(index, Element) ) so the first argument is the index. .each() is looping over an array

RE: (ot) jQuery question

2010-12-12 Thread Rick Faircloth
: Re: (ot) jQuery question Hi Rick, Take a look at the following jQuery Doc link http://api.jquery.com/each/ The order of the parameters matter. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion

Re: (ot) jQuery question

2010-12-12 Thread Matt Quackenbush
In Charlie's example, 'i' is the current index position of the each loop, while 'o' is the current item (or object) of the index. And yes, they are arguments passed into the function. ~| Order the Adobe Coldfusion Anthology now

Re: (ot) jQuery question

2010-12-12 Thread Charlie Griefer
the first argument position?  And the > same with the variable that's in the second position? > > I scoured the Internet trying to get a good explanation of using > these arguments, but haven't found what I needed to understand. > > Thanks for any insight you'

Re: (ot) jQuery question

2010-12-12 Thread Raj Vijay
Hi Rick, Take a look at the following jQuery Doc link http://api.jquery.com/each/ The order of the parameters matter. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?

RE: (ot) jQuery question

2010-12-12 Thread Rick Faircloth
to:charlie.grie...@gmail.com] Sent: Saturday, December 11, 2010 10:51 PM To: cf-talk Subject: Re: (ot) jQuery question You're missing a # in your selector for #myTable. Even with the #, couldn't get your code to run... but the following seems to work: $( document ).ready( functio

Re: (ot) jQuery question

2010-12-11 Thread Charlie Griefer
You're missing a # in your selector for #myTable. Even with the #, couldn't get your code to run... but the following seems to work: $( document ).ready( function() { var staffOrder = ""; $( '#myTable tr' ).each( function( i,o ) { if ( staffOrder.length )

(ot) jQuery question

2010-12-11 Thread Rick Faircloth
Hope some of you jQuery and CF users can answer what seems to me should be an easy question, but I can't figure out how to write this jQuery to product a list of values. (I'll use AJAX and JSON to send the value list to a cffunction for processing). Given this HTML:

Re: jQuery question

2009-08-12 Thread Dave l
you can hit the cfc directly just fine and you did the right thing by setting the returntype in the call instead of in the cfc so you can reuse the cfc without returning just json. Are you sending a form or hard coded info? BTW~ jquery doesn't handle json very much, they have a getJson tag whi

Re: jQuery question

2009-08-12 Thread Dominic Watson
That's not saying you should do what I do or that hitting the cfc directly is bad - just saying how I solve the problem you are having... However, is it absolutely neccessary for the cfc method to take a struct as its single argument? Could you define no arguments at all and use the arguments sco

Re: jQuery question

2009-08-12 Thread Dominic Watson
jQuery was not the problem here. CF knowing what to do with your post variables was. My personal preference is not to hit cfc's directly. Instead, I use a framework (ModelGlue, Fusebox, etc) for *every* request, be it an ajax one or anything else. My cfc method just knows that it gets given a loa

Re: jQuery question

2009-08-11 Thread Rick Root
On Tue, Aug 11, 2009 at 8:25 PM, Josh Nathanson wrote: > > Like any other form post, you can't pass complex arguments to the server. > What you could do is pass a JSON string and then deserialize it in the CFC. Man, I figured since jQuery requires you to "code less", it would do that for me autom

RE: jQuery question

2009-08-11 Thread Josh Nathanson
o: cf-talk Subject: jQuery question I have a CFC hat accepts a struct as its argument. The struct can contain 0 or more items, but the struct itself is required. I want to use jQuery to call this method. But I can't figure out how. what I'm trying to do is this: I'm trying to

jQuery question

2009-08-11 Thread Rick Root
I have a CFC hat accepts a struct as its argument. The struct can contain 0 or more items, but the struct itself is required. I want to use jQuery to call this method. But I can't figure out how. what I'm trying to do is this: I'm trying to do this as a jquery post... var command = {

Re: jquery question

2009-06-06 Thread Mike Little
thanks azadi, this looks very much like what i am trying to achieve. mike ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusio

RE: jquery question

2009-06-04 Thread Andy Matthews
Just write the contents of the textarea into the html of the target. -Original Message- From: Mike Little [mailto:m...@nzsolutions.co.nz] Sent: Wednesday, June 03, 2009 7:03 PM To: cf-talk Subject: Re: jquery question thanks guys, my question is though - how to pass formatted

RE: jquery question

2009-06-04 Thread Andy Matthews
ptana andy -Original Message- From: Charlie Griefer [mailto:charlie.grie...@gmail.com] Sent: Wednesday, June 03, 2009 5:54 PM To: cf-talk Subject: Re: jquery question check out one of the many jquery lightbox clones. http://www.no-margin-for-errors.com/projects/prettyPhoto-j

Re: jquery question

2009-06-03 Thread Azadi Saryev
1) make sure your cfc function that processes the textarea content has access="remote" 2) create a button on your page to click to pass the textarea content to your cfc function 3) add onclick="showContent('id-of-your-textarea-here');" to this button (replace 'id-of-your-textarea-here' with actual

Re: jquery question

2009-06-03 Thread Ryan Letulle
Sorry Mike. I guess I'm not fully understanding where your problem is if you are going to submit form data. Do you want the lightbox to appear automatically after the form is submitted? Why can't you process the submission normally? or are you looking to just submit the script through jquery (i

Re: jquery question

2009-06-03 Thread Mike Little
thanks guys, my question is though - how to pass formatted content from my textarea to the div upon form submission (or another button submit). ultimately i would like to pass the content to a cfc first to check and amend data as required so this is why i thought jquery would be the way to go.

Re: jquery question

2009-06-03 Thread Ryan Letulle
I usually choose Thickbox for a lightbox feature. Not the best looking out of the box but very functional and you can always style it. -- Ryan On Wed, Jun 3, 2009 at 5:54 PM, Charlie Griefer wrote: > > check out one of the many jquery lightbox clones. > > > http://www.no-margin-for-errors.com

Re: jquery question

2009-06-03 Thread Charlie Griefer
check out one of the many jquery lightbox clones. http://www.no-margin-for-errors.com/projects/prettyPhoto-jquery-lightbox-clone/ http://www.stickmanlabs.com/lightwindow/ On Wed, Jun 3, 2009 at 3:42 PM, Mike Little wrote: > > sorry, could not think of a better subject! > > i have a form which

Re: jquery question

2009-06-03 Thread Ryan Letulle
Shouldn't be hard at all to have a hidden div prepared. After the text area is changed put the script in the div (getelementbyid) and show the div. I don't think you need ajax for that. You could certainly write it in jQuery syntax but any old javascript should do that. I've never tested it but

jquery question

2009-06-03 Thread Mike Little
sorry, could not think of a better subject! i have a form which an admin enters a embed script such as a youtube video. what i would like to achieve is to have a preview button which takes the contents of the textarea (ultimately filters the content with my clever param filter) and displays th