Re: add value to id in js cf

2008-01-12 Thread Matt Williams
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

Re: add value to id in js cf

2008-01-11 Thread Sonny Savage
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

add value to id in js cf

2008-01-11 Thread Paul Ihrig
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).

Re: add value to id in js cf

2008-01-11 Thread Paul Ihrig
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:

Re: add value to id in js cf

2008-01-11 Thread Sonny Savage
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 ~|

Re: add value to id in js cf

2008-01-11 Thread Sonny Savage
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']}); } }

Re: add value to id in js cf

2008-01-11 Thread Paul Ihrig
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

Re: add value to id in js cf

2008-01-11 Thread Matt Williams
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

Re: add value to id in js cf

2008-01-11 Thread Paul Ihrig
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

Re: add value to id in js cf

2008-01-11 Thread Sonny Savage
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(){

JS/CF question

2007-07-14 Thread Will Tomlinson
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

Re: JS/CF question

2007-07-14 Thread Will Tomlinson
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

RE: JS/CF question

2007-07-14 Thread Adrian Lynch
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

RE: Image Swap with JS/CF

2006-06-27 Thread Andy Matthews
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

Image Swap with JS/CF

2006-06-26 Thread Rick King
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

Re: Image Swap with JS/CF

2006-06-26 Thread Alan Rother
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

Re: Image Swap with JS/CF

2006-06-26 Thread Rick King
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){

Re: Image Swap with JS/CF

2006-06-26 Thread Charlie Griefer
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

JS/CF script problem

2002-06-30 Thread Bill Henderson
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

RE: JS/CF script problem

2002-06-30 Thread Dave Watts
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

Re: JS/CF script problem

2002-06-30 Thread Critz
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

RE: JS/CF script problem

2002-06-30 Thread Matthew R. Small
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

RE: JS/CF Screen Resolution

2002-03-16 Thread Tangorre, Michael T.
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

JS - CF

2001-03-01 Thread Javed Mushtaq
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 ==

RE: JS - CF

2001-03-01 Thread Philip Arnold - ASP
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

RE: kinda OT: JS/CF

2001-02-25 Thread Dave Watts
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

kinda OT: JS/CF

2001-02-23 Thread Dylan Bromby
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?

RE: kinda OT: JS/CF

2001-02-23 Thread James McCullough
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

Re: (job) DHTML/JS/CF developer (Atlanta)

2000-05-16 Thread paul smith
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

Re: (job) DHTML/JS/CF developer (Atlanta)

2000-05-16 Thread Stephen M. Aylor
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