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
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
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
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
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'
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/?
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
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 )
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:
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
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
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
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
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
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 = {
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
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
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
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
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
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.
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
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
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
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
25 matches
Mail list logo