To clarify, the first part of the jquery selector -
$('table.tablesorterLQ') - translates to English as Select any table
with the class of tablesorterLQ. That is why you don't need to
iterate over the multiple tables or use the id attribute. It is
already selecting all of those tables and applying
I'm pretty sure jQuery can grab all the elements in a document with a
specific class, so you should tell it to add the sortable behavior to all
the tables with a class of tablesorterLQ.
On Jan 11, 2008 10:35 AM, Paul Ihrig [EMAIL PROTECTED] wrote:
i have a table thats generated in a cfloop. so
i have a table thats generated in a cfloop. so it spits out multiple tables.
i am using jquery tablesorter to sort the tables but it only works on the
first one.
how would i count the tables and pass the value into js also into the ID
of the generated tabel...
like
$(#tblRep0).
$(#tblRep1).
thats what i did, and its not
~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w
Archive:
Even though you're getting the tables by class name and not using the ID,
you still need to make sure that each ID is unique.
On Jan 11, 2008 11:44 AM, Paul Ihrig [EMAIL PROTECTED] wrote:
thats what i did, and its not
~|
Again, I'm not experienced with jQuery, but this is how I'd approach it:
$( function() {
var aSortTables = $(table.tablesorterLQ);
for ( var i = 1; i aSortTables.length; i++ ) {
aSortTables[i].tablesorter({sortList:[[0,0],[0,1]], widgets:
['zebra']});
}
}
right so if in cf i do
table class=tablesorterLQ id=tblRep#userId# title=Sales Rep's
how do i then pass tblRep#userId# back up to the top of the page
so i can insert #userId# into the script..
$(function() {
$(#tblRep).tablesorter({sortList:[[0,0],[0,1]], widgets: ['zebra']});
});
On Jan
On Jan 11, 2008 2:43 PM, Sonny Savage [EMAIL PROTECTED] wrote:
jQuery might even have a shortcut that assigns all the elements of the array
at once:
$(table.tablesorterLQ).tablesorter({sortList:[[0,0],[0,1]], widgets:
['zebra']});
Sonny is right. What he has should work. Here is some code I
ok.
thanks guys
i will look at it once my eyes relax a bit.
so should i first
var aSortTables = $(table.tablesorterLQ);
for ( var i = 1; i aSortTables.length; i++ )
to creat the +1 count?
or is this not needed.
i am not familar with the short cut you mentioned.
i dont see in Matts test
You can skip the array creation and loop from the first part of my example,
and pretty much copy what Matt did:
script type=text/javascript src=jquery.js/script
script type=text/javascript src=jquery.tablesorter.min.js/script
script type=text/javascript
$(document).ready(function(){
I'm outputting dynamic images. I'm assigning each one its own ID.
I added an onclick to call a function that should switch the image out with
another when called.
onclick=switchImage('#questionid#');
In the function, I can't figure out howta use that argument variable to switch
out the
I got it figured out!
script type=text/javascript
function switchImage(theimage)
{
document.getElementById(theimage).src='../images/commentred.png';
}
/script
That works.
Thanks.
Will
~|
Create Web Applications With
Also, + not to stick strings together in JS.
Adrian
-Original Message-
From: Will Tomlinson [mailto:[EMAIL PROTECTED]
Sent: 14 July 2007 18:57
To: CF-Talk
Subject: Re: JS/CF question
I got it figured out!
script type=text/javascript
function switchImage(theimage
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--//-
-Original Message-
From: Rick King [mailto:[EMAIL PROTECTED]
Sent: Monday, June 26, 2006 8:36 PM
To: CF-Talk
Subject: Image Swap with JS/CF
Anyone know of any methods to create an image swap feature similar
Anyone know of any methods to create an image swap feature similar to the
following:
http://www.designerexposure.com/product/19990/#
I could probably figure something out with static images, but I'd like to do
something similar with dynamic images (uploaded from a user for their
particular
Hey Rick,
What you are asking for is pretty easy with JavaScript. You might like this
more. This is Spry, it's an open source JS library from Adobe
http://labs.adobe.com/technologies/spry/demos/gallery/
The gallery sample is pretty sweet.
=]
--
Alan Rother
Macromedia Certified Advanced
I think I've seen that...it is pretty cool. I might look into it.
But what about if the images are dynamic...would I just place the CF image
variable in the javascript itself. For example (I found this somewhere),
function imageChange(imgName){
if (document.images){
cf variables can go into Javascript just as easily as they go into HTML.
CF is server side and writes client side code (JS/HTML).
You said you hoped you could find an example that showed CF
incorporated into javascript. that function you pasted has CF
incorporated into javascript (just make
Can anybody help me do one of two things:
A.) Make a call from a JavaScript function to a function written in
CFScript,
Or
B.) Reference form elements (before a submission) in CFScript, like
JavaScript does. Example:
myform.mystring.innerText=myform.mystring2.innerText will copy the value
of a
Can anybody help me do one of two things:
A.) Make a call from a JavaScript function to a function
written in CFScript,
Or
B.) Reference form elements (before a submission) in CFScript,
like JavaScript does. Example:
myform.mystring.innerText=myform.mystring2.innerText will
copy the
oi Bill!!
cfscript is serverside...javascript is clientside
so they cannot really interact.
--
Best regards,
Critter, MMCP
Certified ColdFusion Developer
Crit[s2k] - CF_ChannelOp Network=EFNet Channel=ColdFusion
Sunday, June 30, 2002, 4:20:47
You can do choice B:
Document.formname.textboxname.value =
document.formname.textbox2name.value;
- Matt Small
-Original Message-
From: Bill Henderson [mailto:[EMAIL PROTECTED]]
Sent: Sunday, June 30, 2002 4:21 PM
To: CF-Talk
Subject: JS/CF script problem
Can anybody help me do one
nevermind.
foudn soem JS to do it.
Thanks,
Mike
-Original Message-
From: Tangorre, Michael T. [mailto:[EMAIL PROTECTED]]
Sent: Saturday, March 16, 2002 11:16 PM
To: CF-Talk
Subject: JS/CF Screen Resolution
Is there a way to detect a site visitors screen resolution?
Michael T
Hi all,
How could i store a javascript variable inside a cold fusion variable.
For example the snippet of code needs to set a session variable equal to the
javascript referrer variable.
script
var strRef;
if (document.referrer == "" || window.document.referrer ==
How could i store a javascript variable inside a cold fusion variable.
For example the snippet of code needs to set a session variable
equal to the javascript referrer variable.
CF=Server Side, JS=Client Side
You have to pass varaibles between the 2, and it's up to you to pass the
variables
i have a FORM with ACTION="Javascript:function()" where my
function opens a window. i specifiy the URL as a function
parameter. in the popup window, i cannot access the variables
from the form. is there something odd i'm missing about
submitting a form using a JS function in the ACTION
i have a FORM with ACTION="Javascript:function()" where my function opens a
window. i specifiy the URL as a function parameter. in the popup window, i
cannot access the variables from the form. is there something odd i'm
missing about submitting a form using a JS function in the ACTION of FORM?
o: CF-Talk
Subject: kinda OT: JS/CF
i have a FORM with ACTION="Javascript:function()" where my function opens a
window. i specifiy the URL as a function parameter. in the popup window, i
cannot access the variables from the form. is there something odd i'm
missing about submitting a form
Damn! And the domain kickass.com is already taken ;-)
At 07:12 PM 5/16/00 -0400, you wrote:
We are currently reviewing resumes for a kickass UI Developer that would
also be familiar with CF. I am looking for someone that is very fluent in
DHTML, specifically dynamic positioning and scripting
Just hang tight man... Network Solutions may revoke it at anytime :-)
how bout www.kicksfreakinarse.com www.kicknarse.com
- Original Message -
From: paul smith [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, May 16, 2000 04:51 PM
Subject: Re: (job) DHTML/JS/CF developer (Atlanta
30 matches
Mail list logo