Re: Javascript question

2011-03-14 Thread Carl Von Stetten

Is it possible that the click event is actually happening on the TD 
elements and not the TR?  You might try attaching the click event to the 
parent table (so it only binds to one element) and take advantage of 
event bubbling.  Use the event.target attribute to get to the row:

$(#mytable).click(function(event) {
 var $target = event.target;
 if ( $target.is(td) ) {
 row_id = $target.parent().attr(id);
 } else if ( $target.is(tr) ) {
 row_id = $target.attr(id);
 }
 rest of your code here
});

HTH,
Carl

On 3/13/2011 7:43 AM, fun and learning wrote:
 Hi All - I am trying to get the following working. It seemed to work 
 initially, but somehow it stopped working

 I have a row like below

 tr id=row_1_4_2009_abc class=rowclick
 td/td
 /tr

 I am using jquery to get the id on click of a row:

 $(.rowclick).click(function() {
var row_id = $(this).attr(id);
var getAttributes = row_id.split(_);
var setCommonAttr = getAttributes[1] + _ + getAttributes[2] + _ + 
 getAttributes[3] + _ + getAttributes[4];
var new_row_id = document.getElementById(new_row_ + setCommonAttr).value;
 });

 Can anyone let me know what is wrong with the above code. Tried different 
 options but with no success



 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343008
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Javascript question

2011-03-13 Thread Jake Churchill

Look into jQuery's .each() method.  It helps in loopin over things like that

-Jake

Sent from my Droid
On Mar 13, 2011 9:51 AM, fun and learning funandlrnn...@gmail.com wrote:

 Hi All - I am trying to get the following working. It seemed to work
initially, but somehow it stopped working

 I have a row like below

 tr id=row_1_4_2009_abc class=rowclick
 td/td
 /tr

 I am using jquery to get the id on click of a row:

 $(.rowclick).click(function() {
 var row_id = $(this).attr(id);
 var getAttributes = row_id.split(_);
 var setCommonAttr = getAttributes[1] + _ + getAttributes[2] + _ +
getAttributes[3] + _ + getAttributes[4];
 var new_row_id = document.getElementById(new_row_ +
setCommonAttr).value;
 });

 Can anyone let me know what is wrong with the above code. Tried different
options but with no success



 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342961
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Javascript question

2011-03-13 Thread Russ Michaels

it looks like you are using the classname instead of the object ID.
normally the $() function is fer getting a reference to a obejct by its ID.

$(.rowclick)
shouldn't this be
$(row_1_4_2009_abc)




On Sun, Mar 13, 2011 at 3:29 PM, Jake Churchill reyna...@gmail.com wrote:


 Look into jQuery's .each() method.  It helps in loopin over things like
 that

 -Jake

 Sent from my Droid
 On Mar 13, 2011 9:51 AM, fun and learning funandlrnn...@gmail.com
 wrote:
 
  Hi All - I am trying to get the following working. It seemed to work
 initially, but somehow it stopped working
 
  I have a row like below
 
  tr id=row_1_4_2009_abc class=rowclick
  td/td
  /tr
 
  I am using jquery to get the id on click of a row:
 
  $(.rowclick).click(function() {
  var row_id = $(this).attr(id);
  var getAttributes = row_id.split(_);
  var setCommonAttr = getAttributes[1] + _ + getAttributes[2] + _ +
 getAttributes[3] + _ + getAttributes[4];
  var new_row_id = document.getElementById(new_row_ +
 setCommonAttr).value;
  });
 
  Can anyone let me know what is wrong with the above code. Tried different
 options but with no success
 
 
 
 

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342962
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Javascript question

2011-03-13 Thread Michael Grant

$(.rowclick) is completely acceptable. It will just add the function to
all elements with that class name, which I assume is that the OP is looking
for.

OP: In the code you pasted what part isn't working exactly? All you are
doing is setting some variables. I don't see in the code where any actually
does anything other than populate variables which are all var'd to the
function, they aren't global. Also, can you confirm that there is an element
with the id of  new_row_1_4_2009_abc and a parameter called value?

I guess it might help if we knew what exactly you were trying to accomplish
in order to determine if it's working or not.

On a side note, since you are using jQuery I'd recommend the jQuery
$(#idname).val() instead of document.getElementById(idname).value.


On Sun, Mar 13, 2011 at 12:17 PM, Russ Michaels r...@michaels.me.uk wrote:


 it looks like you are using the classname instead of the object ID.
 normally the $() function is fer getting a reference to a obejct by its ID.

 $(.rowclick)
 shouldn't this be
 $(row_1_4_2009_abc)




 On Sun, Mar 13, 2011 at 3:29 PM, Jake Churchill reyna...@gmail.com
 wrote:

 
  Look into jQuery's .each() method.  It helps in loopin over things like
  that
 
  -Jake
 
  Sent from my Droid
  On Mar 13, 2011 9:51 AM, fun and learning funandlrnn...@gmail.com
  wrote:
  
   Hi All - I am trying to get the following working. It seemed to work
  initially, but somehow it stopped working
  
   I have a row like below
  
   tr id=row_1_4_2009_abc class=rowclick
   td/td
   /tr
  
   I am using jquery to get the id on click of a row:
  
   $(.rowclick).click(function() {
   var row_id = $(this).attr(id);
   var getAttributes = row_id.split(_);
   var setCommonAttr = getAttributes[1] + _ + getAttributes[2] + _ +
  getAttributes[3] + _ + getAttributes[4];
   var new_row_id = document.getElementById(new_row_ +
  setCommonAttr).value;
   });
  
   Can anyone let me know what is wrong with the above code. Tried
 different
  options but with no success
  
  
  
  
 
 

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342963
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Javascript question

2011-03-13 Thread Michael Grant

And one other thought. If your code posted accurately reflects the id's of
the items you can replace this:

 var getAttributes = row_id.split(_);
 var setCommonAttr = getAttributes[1] + _ + getAttributes[2] + _ +
getAttributes[3] + _ + getAttributes[4];
 var new_row_id = document.getElementById(new_row_ + setCommonAttr).value;

with this:

var new_row_id = $('#new_' + row_id).val();

In both cases id is going to evaluate to: new_row_1_4_2009_abc so all you
need to do is prepend new_.


On Sun, Mar 13, 2011 at 1:48 PM, Michael Grant mgr...@modus.bz wrote:

 $(.rowclick) is completely acceptable. It will just add the function to
 all elements with that class name, which I assume is that the OP is looking
 for.

 OP: In the code you pasted what part isn't working exactly? All you are
 doing is setting some variables. I don't see in the code where any actually
 does anything other than populate variables which are all var'd to the
 function, they aren't global. Also, can you confirm that there is an element
 with the id of  new_row_1_4_2009_abc and a parameter called value?

 I guess it might help if we knew what exactly you were trying to accomplish
 in order to determine if it's working or not.

 On a side note, since you are using jQuery I'd recommend the jQuery
 $(#idname).val() instead of document.getElementById(idname).value.


 On Sun, Mar 13, 2011 at 12:17 PM, Russ Michaels r...@michaels.me.ukwrote:


 it looks like you are using the classname instead of the object ID.
 normally the $() function is fer getting a reference to a obejct by its
 ID.

 $(.rowclick)
 shouldn't this be
 $(row_1_4_2009_abc)




 On Sun, Mar 13, 2011 at 3:29 PM, Jake Churchill reyna...@gmail.com
 wrote:

 
  Look into jQuery's .each() method.  It helps in loopin over things like
  that
 
  -Jake
 
  Sent from my Droid
  On Mar 13, 2011 9:51 AM, fun and learning funandlrnn...@gmail.com
  wrote:
  
   Hi All - I am trying to get the following working. It seemed to work
  initially, but somehow it stopped working
  
   I have a row like below
  
   tr id=row_1_4_2009_abc class=rowclick
   td/td
   /tr
  
   I am using jquery to get the id on click of a row:
  
   $(.rowclick).click(function() {
   var row_id = $(this).attr(id);
   var getAttributes = row_id.split(_);
   var setCommonAttr = getAttributes[1] + _ + getAttributes[2] + _ +
  getAttributes[3] + _ + getAttributes[4];
   var new_row_id = document.getElementById(new_row_ +
  setCommonAttr).value;
   });
  
   Can anyone let me know what is wrong with the above code. Tried
 different
  options but with no success
  
  
  
  
 
 

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342964
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Javascript question

2011-03-13 Thread andy matthews

You didn't say what it is you're trying to accomplish, nor did you post
example code, so we can't really say what's not working. One thing you could
try is simplifying your code. Try replacing 3 lines with one:

// old lines
var getAttributes = row_id.split(_);
var setCommonAttr = getAttributes[1] + _ + getAttributes[2] + _ +
getAttributes[3] + _ + getAttributes[4];
var new_row_id = document.getElementById(new_row_ +
setCommonAttr).value;});

// new line
new_row_id = $('#' + row_id.replace(/^row/,'new_row') );


-Original Message-
From: fun and learning [mailto:funandlrnn...@gmail.com] 
Sent: Sunday, March 13, 2011 9:43 AM
To: cf-talk
Subject: Javascript question


Hi All - I am trying to get the following working. It seemed to work
initially, but somehow it stopped working

I have a row like below

tr id=row_1_4_2009_abc class=rowclick
   td/td
/tr

I am using jquery to get the id on click of a row:

$(.rowclick).click(function() {
  var row_id = $(this).attr(id);
  var getAttributes = row_id.split(_);
  var setCommonAttr = getAttributes[1] + _ + getAttributes[2] + _ +
getAttributes[3] + _ + getAttributes[4];
  var new_row_id = document.getElementById(new_row_ +
setCommonAttr).value;
});

Can anyone let me know what is wrong with the above code. Tried different
options but with no success





~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342965
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Javascript question

2009-03-18 Thread Ian Skinner

Jenny Gavin-Wear wrote:
 Could someone tell me what I am doing wrong, please?

Does your form control of an id of 'registerForm' with that exact 
capitalization?

Is it the only thing on the page with that id?





~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320640
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Javascript question

2009-03-18 Thread Massimo Foti

 script type=text/javascript
 function submitForm()
 {
 document.getElementById(registerForm).submit()
 }
 /script

 and this as the trigger:

 input name=roomID type=radio id=radio value=0 cfif 
 session.roomID
 is 0checked /cfif onClick=submitForm()

 I am getting the error:
 document.registerForm.submit is not a function

 Could someone tell me what I am doing wrong, please?

Let me guess... Your form contains an element named submit? IE doesn't 
like that (should be fine in FF).


Massimo Foti, web-programmer for hire
Tools for ColdFusion, JavaScript and Dreamweaver:
http://www.massimocorner.com



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320641
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Javascript question

2009-03-18 Thread Ryan Stille

Do you have ID=registerForm in your opening form tag?  Don't forget it 
is case sensitive, too.

-Ryan

Jenny Gavin-Wear wrote:
 I have in the header:

 script type=text/javascript
 function submitForm()
 {
 document.getElementById(registerForm).submit()
 }
 /script

 and this as the trigger:

 input name=roomID type=radio id=radio value=0 cfif session.roomID
 is 0checked /cfif onClick=submitForm()

 I am getting the error:
 document.registerForm.submit is not a function

 Could someone tell me what I am doing wrong, please?

 tia, Jenny



 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320642
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Javascript question

2009-03-18 Thread Claude Schneegans

 document.registerForm.submit is not a function

Apparently, getElementById() has returned an object which is not a form, 
thus which has no submit function..
Make sure no other object has an id=registerForm.

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320644
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


IUM Re: Javascript question

2009-03-18 Thread Jenny Gavin-Wear

Thanks all for the rapid replies.

I'm sure it's something stupid I'm doing, arrghhh

I've tried this as a test and it works fine:

cfquery name=rooms datasource=#application.cfdatasource#
SELECT *
FROM tbl_confRooms
where confID = #session.confID#
/cfquery

HTML
HEAD
/HEAD
BODY BGCOLOR=#FF
form method=post name=MyForm id=MyForm action=register-new.cfm 
!---
FORM METHOD=POST name=MyForm action=process.asp
---
1INPUT TYPE=radio NAME=rdo onClick=document.MyForm.submit()BR
2INPUT TYPE=radio NAME=rdo onClick=document.MyForm.submit()BR
3INPUT TYPE=radio NAME=rdo onClick=document.MyForm.submit()BR
4INPUT TYPE=radio NAME=rdo onClick=document.MyForm.submit()BR
cfoutput query=rooms
4.5input type=radio name=roomID value=#rooms.roomID#
onClick=document.MyForm.submit()cfif session.temproomID is
session.roomID checked /cfif
/cfoutput
5input name=roomID type=radio value=0
onClick=document.MyForm.submit()cfif session.roomID is 0 checked
/cfif
/FORM
/BODY
/HTML

But when it's on the page I need it on I get the error:

cfif not isdefined(session.isMember)
cfset session.ismember = 0
/cfif
cfif isdefined(url.ismember) and val(url.isMember) gt 0
cfset session.ismember = url.ismember
/cfif

cfif isdefined(url.confID)
cfset session.confID = url.confID
/cfif
cfif not isdefined(session.confid)
cflocation url=../ukasfp/conference.cfm
/cfif
cfif not isdefined(session.roomID)
cfset session.roomID = 0
/cfif

!--- Conference ---
cfquery name=conf datasource=#application.cfdatasource#
SELECT *
FROM tbl_conf
where confID = #session.confID#
/cfquery

cfset session.confprice = conf.confPrice

!--- MEMBER ---
cfif isdefined(session.userID) and val(session.userID) gt 0
cfquery name=member datasource=#application.cfdatasource#
SELECT *
FROM tbl_members
where memberID = #session.userID#
/cfquery
cfset session.confprice = conf.confMemberPrice
/cfif

cfif isdefined(form.name)
cfset session.name = form.name
/cfif
cfif isdefined(form.email)
cfset session.email = form.email
/cfif
cfif isdefined(form.phone)
cfset session.phone = form.phone
/cfif
cfif isdefined(form.add1)
cfset session.add1 = form.add1
/cfif
cfif isdefined(form.add2)
cfset session.add2 = form.add2
/cfif
cfif isdefined(form.city)
cfset session.city = form.city
/cfif
cfif isdefined(form.county)
cfset session.county = form.county
/cfif
cfif isdefined(form.postcode)
cfset session.postcode = form.postcode
/cfif
cfif isdefined(form.roomID)
cfset session.roomID = form.roomID
/cfif

cfset session.continue = 1
cfif not isdefined(session.name) or not len(session.name)
cfset session.continue = 0
/cfif
cfif not isdefined(session.email) or not len(session.email)
cfset session.continue = 0
/cfif
cfif not isdefined(session.phone) or not len(session.phone)
cfset session.continue = 0
/cfif
cfif not isdefined(session.add1) or not len(session.add1)
cfset session.continue = 0
/cfif
cfif not isdefined(session.add2) or not len(session.add2)
cfset session.continue = 0
/cfif
cfif not isdefined(session.city) or not len(session.city)
cfset session.continue = 0
/cfif
cfif not isdefined(session.county) or not len(session.county)
cfset session.continue = 0
/cfif
cfif not isdefined(session.postcode) or not len(session.postcode)
cfset session.continue = 0
/cfif


!--- ACCOMMODATION ---
!--- all rooms ---
cfquery name=rooms datasource=#application.cfdatasource#
SELECT *
FROM tbl_confRooms
where confID = #session.confID#
/cfquery
!--- booked room ---
cfif isdefined(session.roomID) and val(session.roomID) gt 0
cfquery name=BookedRoom datasource=#application.cfdatasource#
SELECT *
FROM tbl_confRooms
where roomid = #session.roomID#
/cfquery
cfset session.confprice = session.confprice + bookedRoom.roomprice
/cfif

!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
http://www.w3.org/TR/html4/loose.dtd;
html!-- InstanceBegin template=/Templates/2005-01-09.dwt.cfm
codeOutsideHTMLIsLocked=false --
head
meta http-equiv=Content-Type content=text/html; charset=iso-8859-1
!-- InstanceBeginEditable name=doctitle --
titleUntitled Document/title

!-- InstanceEndEditable --
link href=../styles.css rel=stylesheet media=screen type=text/css
LINK REL=stylesheet MEDIA=aural HREF=../ukaural.css TYPE=text/css
LINK REL=stylesheet MEDIA=print HREF=../ukprintfinal.css
TYPE=text/css
!-- InstanceBeginEditable name=head --!-- InstanceEndEditable --
/head

body
table width=800  border=0 align=center cellpadding=5
cellspacing=0 id=main
  tr
td colspan=2table width=100%  border=0 cellpadding=0
cellspacing=0 id=header
  tr
tdimg src=../pageart/ukasfp-logo.png alt=United Kingdom
Association for Solution Focused Practice width=800 height=132/td
  /tr
/table/td
  /tr
  tr
td colspan=2table width=100% border=0 cellpadding=5
cellspacing=0 id=navtop
  tr
td
  cfinclude template=../nav/menu-top.cfm
/td
td
cfoutput
ul
lia href=/directory/joining.cfmJoin UKASFP/a/li
cfif not isdefined(session.mm_username) or 

IUM IUM Re: Javascript question

2009-03-18 Thread Jenny Gavin-Wear

ha! Got it!

it was the submit buttons on the page being named submit ...

Thanks all, pointed me in the right direction !!

-Original Message-
From: Jenny Gavin-Wear [mailto:jenn...@fasttrackonline.co.uk]
Sent: 18 March 2009 14:24
To: cf-talk
Subject: SPAM-MEDIUM IUM Re: Javascript question



Thanks all for the rapid replies.

I'm sure it's something stupid I'm doing, arrghhh

I've tried this as a test and it works fine:

cfquery name=rooms datasource=#application.cfdatasource#
SELECT *
FROM tbl_confRooms
where confID = #session.confID#
/cfquery

HTML
HEAD
/HEAD
BODY BGCOLOR=#FF
form method=post name=MyForm id=MyForm action=register-new.cfm 
!---
FORM METHOD=POST name=MyForm action=process.asp
---
1INPUT TYPE=radio NAME=rdo onClick=document.MyForm.submit()BR
2INPUT TYPE=radio NAME=rdo onClick=document.MyForm.submit()BR
3INPUT TYPE=radio NAME=rdo onClick=document.MyForm.submit()BR
4INPUT TYPE=radio NAME=rdo onClick=document.MyForm.submit()BR
cfoutput query=rooms
4.5input type=radio name=roomID value=#rooms.roomID#
onClick=document.MyForm.submit()cfif session.temproomID is
session.roomID checked /cfif
/cfoutput
5input name=roomID type=radio value=0
onClick=document.MyForm.submit()cfif session.roomID is 0 checked
/cfif
/FORM
/BODY
/HTML

But when it's on the page I need it on I get the error:

cfif not isdefined(session.isMember)
cfset session.ismember = 0
/cfif
cfif isdefined(url.ismember) and val(url.isMember) gt 0
cfset session.ismember = url.ismember
/cfif

cfif isdefined(url.confID)
cfset session.confID = url.confID
/cfif
cfif not isdefined(session.confid)
cflocation url=../ukasfp/conference.cfm
/cfif
cfif not isdefined(session.roomID)
cfset session.roomID = 0
/cfif

!--- Conference ---
cfquery name=conf datasource=#application.cfdatasource#
SELECT *
FROM tbl_conf
where confID = #session.confID#
/cfquery

cfset session.confprice = conf.confPrice

!--- MEMBER ---
cfif isdefined(session.userID) and val(session.userID) gt 0
cfquery name=member datasource=#application.cfdatasource#
SELECT *
FROM tbl_members
where memberID = #session.userID#
/cfquery
cfset session.confprice = conf.confMemberPrice
/cfif

cfif isdefined(form.name)
cfset session.name = form.name
/cfif
cfif isdefined(form.email)
cfset session.email = form.email
/cfif
cfif isdefined(form.phone)
cfset session.phone = form.phone
/cfif
cfif isdefined(form.add1)
cfset session.add1 = form.add1
/cfif
cfif isdefined(form.add2)
cfset session.add2 = form.add2
/cfif
cfif isdefined(form.city)
cfset session.city = form.city
/cfif
cfif isdefined(form.county)
cfset session.county = form.county
/cfif
cfif isdefined(form.postcode)
cfset session.postcode = form.postcode
/cfif
cfif isdefined(form.roomID)
cfset session.roomID = form.roomID
/cfif

cfset session.continue = 1
cfif not isdefined(session.name) or not len(session.name)
cfset session.continue = 0
/cfif
cfif not isdefined(session.email) or not len(session.email)
cfset session.continue = 0
/cfif
cfif not isdefined(session.phone) or not len(session.phone)
cfset session.continue = 0
/cfif
cfif not isdefined(session.add1) or not len(session.add1)
cfset session.continue = 0
/cfif
cfif not isdefined(session.add2) or not len(session.add2)
cfset session.continue = 0
/cfif
cfif not isdefined(session.city) or not len(session.city)
cfset session.continue = 0
/cfif
cfif not isdefined(session.county) or not len(session.county)
cfset session.continue = 0
/cfif
cfif not isdefined(session.postcode) or not len(session.postcode)
cfset session.continue = 0
/cfif


!--- ACCOMMODATION ---
!--- all rooms ---
cfquery name=rooms datasource=#application.cfdatasource#
SELECT *
FROM tbl_confRooms
where confID = #session.confID#
/cfquery
!--- booked room ---
cfif isdefined(session.roomID) and val(session.roomID) gt 0
cfquery name=BookedRoom datasource=#application.cfdatasource#
SELECT *
FROM tbl_confRooms
where roomid = #session.roomID#
/cfquery
cfset session.confprice = session.confprice + bookedRoom.roomprice
/cfif

!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
http://www.w3.org/TR/html4/loose.dtd;
html!-- InstanceBegin template=/Templates/2005-01-09.dwt.cfm
codeOutsideHTMLIsLocked=false --
head
meta http-equiv=Content-Type content=text/html; charset=iso-8859-1
!-- InstanceBeginEditable name=doctitle --
titleUntitled Document/title

!-- InstanceEndEditable --
link href=../styles.css rel=stylesheet media=screen type=text/css
LINK REL=stylesheet MEDIA=aural HREF=../ukaural.css TYPE=text/css
LINK REL=stylesheet MEDIA=print HREF=../ukprintfinal.css
TYPE=text/css
!-- InstanceBeginEditable name=head --!-- InstanceEndEditable --
/head

body
table width=800  border=0 align=center cellpadding=5
cellspacing=0 id=main
  tr
td colspan=2table width=100%  border=0 cellpadding=0
cellspacing=0 id=header
  tr
tdimg src=../pageart/ukasfp-logo.png alt=United Kingdom
Association for Solution Focused Practice width=800 height=132/td
  /tr
/table/td
  /tr
  tr
td colspan=2table width=100% border=0

RE: Javascript question

2009-02-13 Thread Dawson, Michael

This isn't the answer you are asking for, but I would suggest that you
use jQuery for this task.

jQuery's selectors would make it easier to find the objects you want to
modify, then you can easily set the disabled flag, as needed.

Thanks,
Mike

-Original Message-
From: Scott Stewart [mailto:saste...@email.unc.edu] 
Sent: Friday, February 13, 2009 10:11 AM
To: cf-talk
Subject: Javascript question


I've got a chunk of javascript that's supposed to do something really
simple, toggle radio buttons on and off (disable/enable) based on
another radio button

However, there's a bug in IE,
(http://webbugtrack.blogspot.com/2007/08/bug-152-getelementbyid-returns.
html)
that forces me (I think)
to add some additional code, which under normal circumstances wouldn't
be a big deal.

The layout that I'm dealing with has multiple nested tables and alot of
other elements, and re-working the layout is out of the question so...
Is there a way, given the code below. to just deal with the ID's inside
the form?
Here's the code:

function toggleOnPaidLeave(){
   * // this code corrects javascript bugs in IE and Opera*
//use browser sniffing to determine if IE or Opera (ugly, but
required)
var toggle;
var isOpera,
isIE = false;
if(typeof(window.opera) != 'undefined'){
isOpera = true;
}
if(!isOpera  navigator.userAgent.indexOf('Internet
Explorer')){
isIE = true;}
//fix both IE and Opera (adjust when they implement this method
properly)
if(isOpera || isIE){ 
document.nativeGetElementById = document.getElementById; 
//redefine it! 
document.getElementById = function(id){   
var elem = document.nativeGetElementById(id);   
if(elem){ 
//verify it is a valid match! 
if(elem.attributes['id']  
elem.attributes['id'].value == id){   
//valid match!   
return elem; 
} else {   
//not a valid match!   
//the non-standard, document.all array has keys 
for all name'd, and id'd elements   
//start at one, because we know the first match,

is wrong!   
for(var 
i=1;idocument.all[id].length;i++){ 
if(document.all[id][i].attributes['id']  
document.all[id][i].attributes['id'].value == id){  
 return document.all[id][i];
  }   
}
 }   
}   
return null; 
};
}
   
   
 *//this is what I actually want to do*
if(toggle = 1){
document.getElementById(pre_absent).disabled=true;
 
document.getElementById(alternative_week_id).disabled=true;
document.getElementById(pre_pretransplant).disabled=true;
 
document.getElementById(pre_pediatric_clinic).disabled=true;
}else{
document.getElementById(pre_absent).disabled=false;
 
document.getElementById(alternative_week_id).disabled=false;
document.getElementById(pre_pretransplant).disabled=false;
 
document.getElementById(pre_pediatric_clinic).disabled=false;
}
   
}
   

--
Scott Stewart
ColdFusion Developer

Office of Research Information Systems
Research amp; Economic Development
University of North Carolina at Chapel Hill

Phone:(919)843-2408
Fax: (919)962-3600
Email: saste...@email.unc.edu





~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:319281
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Javascript question

2009-02-13 Thread Scott Stewart

I wish I could,  I've had fits trying to get jquery to function properly 
with this layout in IE.
I'm not sure jquery likes nested tables.

Dawson, Michael wrote:
 This isn't the answer you are asking for, but I would suggest that you
 use jQuery for this task.

 jQuery's selectors would make it easier to find the objects you want to
 modify, then you can easily set the disabled flag, as needed.

 Thanks,
 Mike

 -Original Message-
 From: Scott Stewart [mailto:saste...@email.unc.edu] 
 Sent: Friday, February 13, 2009 10:11 AM
 To: cf-talk
 Subject: Javascript question


 I've got a chunk of javascript that's supposed to do something really
 simple, toggle radio buttons on and off (disable/enable) based on
 another radio button

 However, there's a bug in IE,
 (http://webbugtrack.blogspot.com/2007/08/bug-152-getelementbyid-returns.
 html)
 that forces me (I think)
 to add some additional code, which under normal circumstances wouldn't
 be a big deal.

 The layout that I'm dealing with has multiple nested tables and alot of
 other elements, and re-working the layout is out of the question so...
 Is there a way, given the code below. to just deal with the ID's inside
 the form?
 Here's the code:

 function toggleOnPaidLeave(){
* // this code corrects javascript bugs in IE and Opera*
 //use browser sniffing to determine if IE or Opera (ugly, but
 required)
 var toggle;
 var isOpera,
 isIE = false;
 if(typeof(window.opera) != 'undefined'){
 isOpera = true;
 }
 if(!isOpera  navigator.userAgent.indexOf('Internet
 Explorer')){
 isIE = true;}
 //fix both IE and Opera (adjust when they implement this method
 properly)
 if(isOpera || isIE){ 
 document.nativeGetElementById = document.getElementById; 
 //redefine it! 
 document.getElementById = function(id){   
 var elem = document.nativeGetElementById(id);   
 if(elem){ 
 //verify it is a valid match! 
 if(elem.attributes['id']  
 elem.attributes['id'].value == id){   
 //valid match!   
 return elem; 
 } else {   
 //not a valid match!   
 //the non-standard, document.all array has keys 
 for all name'd, and id'd elements   
 //start at one, because we know the first match,

 is wrong!   
 for(var 
 i=1;idocument.all[id].length;i++){ 
 if(document.all[id][i].attributes['id']  
 document.all[id][i].attributes['id'].value == id){  
  return document.all[id][i];
   }   
 }
  }   
 }   
 return null; 
 };
 }


  *//this is what I actually want to do*
 if(toggle = 1){
 document.getElementById(pre_absent).disabled=true;
  
 document.getElementById(alternative_week_id).disabled=true;
 document.getElementById(pre_pretransplant).disabled=true;
  
 document.getElementById(pre_pediatric_clinic).disabled=true;
 }else{
 document.getElementById(pre_absent).disabled=false;
  
 document.getElementById(alternative_week_id).disabled=false;
 document.getElementById(pre_pretransplant).disabled=false;
  
 document.getElementById(pre_pediatric_clinic).disabled=false;
 }

 }


 --
 Scott Stewart
 ColdFusion Developer

 Office of Research Information Systems
 Research amp; Economic Development
 University of North Carolina at Chapel Hill

 Phone:(919)843-2408
 Fax: (919)962-3600
 Email: saste...@email.unc.edu





 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:319282
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Javascript question

2009-02-13 Thread Adrian Lynch

I know, I hate it sometimes too when you ask a question and someone says,
don't do it that way, do it this completely different way, but, jQuery!

script type=text/javascript src=/scripts/jquery-1.3.1.min.js/script
script type=text/javascript
$(function() {


$(.checkAll).change(function() {

if (this.checked) {
var checked = checked;
} else {
var checked = ;
}

$(input.checkGroup,
$(this).parent()).attr(checked, checked);

});

});
/script

cfoutput

h2Group 1/h2
div
All input type=checkbox class=checkAll /br /
cfloop from=1 to=10 index=i
#i# input type=checkbox class=checkGroup /br /
/cfloop
/div

h2Group 2/h2
div
All input type=checkbox class=checkAll /br /
cfloop from=1 to=10 index=i
#i# input type=checkbox class=checkGroup  /br /
/cfloop
/div

/cfoutput

Download jQuery, change the path to it and run this.

Adrian

 -Original Message-
 From: Scott Stewart [mailto:saste...@email.unc.edu]
 Sent: 13 February 2009 16:11
 To: cf-talk
 Subject: Javascript question
 
 
 I've got a chunk of javascript that's supposed to do something really
 simple, toggle radio buttons on and off (disable/enable)
 based on another radio button
 
 However, there's a bug in IE,
 (http://webbugtrack.blogspot.com/2007/08/bug-152-getelementbyid-
 returns.html)
 that forces me (I think)
 to add some additional code, which under normal circumstances wouldn't
 be a big deal.
 
 The layout that I'm dealing with has multiple nested tables and alot of
 other elements, and re-working the layout is out of the question so...
 Is there a way, given the code below. to just deal with the ID's inside
 the form?
 Here's the code:
 
 function toggleOnPaidLeave(){
* // this code corrects javascript bugs in IE and Opera*
 //use browser sniffing to determine if IE or Opera (ugly, but
 required)
 var toggle;
 var isOpera,
 isIE = false;
 if(typeof(window.opera) != 'undefined'){
 isOpera = true;
 }
 if(!isOpera  navigator.userAgent.indexOf('Internet
 Explorer')){
 isIE = true;}
 //fix both IE and Opera (adjust when they implement this method
 properly)
 if(isOpera || isIE){
 document.nativeGetElementById = document.getElementById;
 //redefine it!
 document.getElementById = function(id){
 var elem = document.nativeGetElementById(id);
 if(elem){
 //verify it is a valid match!
 if(elem.attributes['id'] 
 elem.attributes['id'].value == id){
 //valid match!
 return elem;
 } else {
 //not a valid match!
 //the non-standard, document.all array has keys
 for all name'd, and id'd elements
 //start at one, because we know the first
 match,
 is wrong!
 for(var
 i=1;idocument.all[id].length;i++){
 if(document.all[id][i].attributes['id'] 
 document.all[id][i].attributes['id'].value == id){
  return document.all[id][i];
   }
 }
  }
 }
 return null;
 };
 }
 
 
  *//this is what I actually want to do*
 if(toggle = 1){
 document.getElementById(pre_absent).disabled=true;
 
 document.getElementById(alternative_week_id).disabled=true;
 document.getElementById(pre_pretransplant).disabled=true;
 
 document.getElementById(pre_pediatric_clinic).disabled=true;
 }else{
 document.getElementById(pre_absent).disabled=false;
 
 document.getElementById(alternative_week_id).disabled=false;
 
 document.getElementById(pre_pretransplant).disabled=false;
 
 document.getElementById(pre_pediatric_clinic).disabled=false;
 }
 
 }
 
 
 --
 Scott Stewart
 ColdFusion Developer
 
 Office of Research Information Systems
 Research amp; Economic Development
 University of North Carolina at Chapel Hill
 
 Phone:(919)843-2408
 Fax: (919)962-3600
 Email: saste...@email.unc.edu


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:319283
Subscription: 

RE: Javascript question

2009-02-13 Thread Adrian Lynch

Could you post the HTML source for us? Or point to it on t'internet.

Adrian

 -Original Message-
 From: Scott Stewart [mailto:saste...@email.unc.edu]
 Sent: 13 February 2009 16:28
 To: cf-talk
 Subject: Re: Javascript question
 
 
 I wish I could,  I've had fits trying to get jquery to function
 properly
 with this layout in IE.
 I'm not sure jquery likes nested tables.
 
 Dawson, Michael wrote:
  This isn't the answer you are asking for, but I would suggest that
 you
  use jQuery for this task.
 
  jQuery's selectors would make it easier to find the objects you want
 to
  modify, then you can easily set the disabled flag, as needed.
 
  Thanks,
  Mike
 
  -Original Message-
  From: Scott Stewart [mailto:saste...@email.unc.edu]
  Sent: Friday, February 13, 2009 10:11 AM
  To: cf-talk
  Subject: Javascript question
 
 
  I've got a chunk of javascript that's supposed to do something really
  simple, toggle radio buttons on and off (disable/enable) based on
  another radio button
 
  However, there's a bug in IE,
  (http://webbugtrack.blogspot.com/2007/08/bug-152-getelementbyid-
 returns.
  html)
  that forces me (I think)
  to add some additional code, which under normal circumstances
 wouldn't
  be a big deal.
 
  The layout that I'm dealing with has multiple nested tables and alot
 of
  other elements, and re-working the layout is out of the question
 so...
  Is there a way, given the code below. to just deal with the ID's
 inside
  the form?
  Here's the code:
 
  function toggleOnPaidLeave(){
 * // this code corrects javascript bugs in IE and Opera*
  //use browser sniffing to determine if IE or Opera (ugly, but
  required)
  var toggle;
  var isOpera,
  isIE = false;
  if(typeof(window.opera) != 'undefined'){
  isOpera = true;
  }
  if(!isOpera  navigator.userAgent.indexOf('Internet
  Explorer')){
  isIE = true;}
  //fix both IE and Opera (adjust when they implement this
 method
  properly)
  if(isOpera || isIE){
  document.nativeGetElementById = document.getElementById;
  //redefine it!
  document.getElementById = function(id){
  var elem = document.nativeGetElementById(id);
  if(elem){
  //verify it is a valid match!
  if(elem.attributes['id'] 
  elem.attributes['id'].value == id){
  //valid match!
  return elem;
  } else {
  //not a valid match!
  //the non-standard, document.all array has
 keys
  for all name'd, and id'd elements
  //start at one, because we know the first
 match,
 
  is wrong!
  for(var
  i=1;idocument.all[id].length;i++){
  if(document.all[id][i].attributes['id']
 
  document.all[id][i].attributes['id'].value == id){
   return document.all[id][i];
}
  }
   }
  }
  return null;
  };
  }
 
 
   *//this is what I actually want to do*
  if(toggle = 1){
  document.getElementById(pre_absent).disabled=true;
 
  document.getElementById(alternative_week_id).disabled=true;
 
 document.getElementById(pre_pretransplant).disabled=true;
 
  document.getElementById(pre_pediatric_clinic).disabled=true;
  }else{
  document.getElementById(pre_absent).disabled=false;
 
  document.getElementById(alternative_week_id).disabled=false;
 
 document.getElementById(pre_pretransplant).disabled=false;
 
  document.getElementById(pre_pediatric_clinic).disabled=false;
  }
 
  }
 
 
  --
  Scott Stewart
  ColdFusion Developer
 
  Office of Research Information Systems
  Research amp; Economic Development
  University of North Carolina at Chapel Hill
 
  Phone:(919)843-2408
  Fax: (919)962-3600
  Email: saste...@email.unc.edu
 
 
 
 
 
 
 
 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:319284
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Javascript question

2009-02-13 Thread Scott Stewart

jquery doesn't work with this layout, that's the first place I went.

Adrian Lynch wrote:
 I know, I hate it sometimes too when you ask a question and someone says,
 don't do it that way, do it this completely different way, but, jQuery!

 script type=text/javascript src=/scripts/jquery-1.3.1.min.js/script
 script type=text/javascript
   $(function() {

   
   $(.checkAll).change(function() {
   
   if (this.checked) {
   var checked = checked;
   } else {
   var checked = ;
   }
   
   $(input.checkGroup,
 $(this).parent()).attr(checked, checked);
   
   });

   });
 /script

 cfoutput

 h2Group 1/h2
 div
   All input type=checkbox class=checkAll /br /
   cfloop from=1 to=10 index=i
   #i# input type=checkbox class=checkGroup /br /
   /cfloop
 /div

 h2Group 2/h2
 div
   All input type=checkbox class=checkAll /br /
   cfloop from=1 to=10 index=i
   #i# input type=checkbox class=checkGroup  /br /
   /cfloop
 /div

 /cfoutput

 Download jQuery, change the path to it and run this.

 Adrian

   
 -Original Message-
 From: Scott Stewart [mailto:saste...@email.unc.edu]
 Sent: 13 February 2009 16:11
 To: cf-talk
 Subject: Javascript question


 I've got a chunk of javascript that's supposed to do something really
 simple, toggle radio buttons on and off (disable/enable)
 based on another radio button

 However, there's a bug in IE,
 (http://webbugtrack.blogspot.com/2007/08/bug-152-getelementbyid-
 returns.html)
 that forces me (I think)
 to add some additional code, which under normal circumstances wouldn't
 be a big deal.

 The layout that I'm dealing with has multiple nested tables and alot of
 other elements, and re-working the layout is out of the question so...
 Is there a way, given the code below. to just deal with the ID's inside
 the form?
 Here's the code:

 function toggleOnPaidLeave(){
* // this code corrects javascript bugs in IE and Opera*
 //use browser sniffing to determine if IE or Opera (ugly, but
 required)
 var toggle;
 var isOpera,
 isIE = false;
 if(typeof(window.opera) != 'undefined'){
 isOpera = true;
 }
 if(!isOpera  navigator.userAgent.indexOf('Internet
 Explorer')){
 isIE = true;}
 //fix both IE and Opera (adjust when they implement this method
 properly)
 if(isOpera || isIE){
 document.nativeGetElementById = document.getElementById;
 //redefine it!
 document.getElementById = function(id){
 var elem = document.nativeGetElementById(id);
 if(elem){
 //verify it is a valid match!
 if(elem.attributes['id'] 
 elem.attributes['id'].value == id){
 //valid match!
 return elem;
 } else {
 //not a valid match!
 //the non-standard, document.all array has keys
 for all name'd, and id'd elements
 //start at one, because we know the first
 match,
 is wrong!
 for(var
 i=1;idocument.all[id].length;i++){
 if(document.all[id][i].attributes['id'] 
 document.all[id][i].attributes['id'].value == id){
  return document.all[id][i];
   }
 }
  }
 }
 return null;
 };
 }


  *//this is what I actually want to do*
 if(toggle = 1){
 document.getElementById(pre_absent).disabled=true;

 document.getElementById(alternative_week_id).disabled=true;
 document.getElementById(pre_pretransplant).disabled=true;

 document.getElementById(pre_pediatric_clinic).disabled=true;
 }else{
 document.getElementById(pre_absent).disabled=false;

 document.getElementById(alternative_week_id).disabled=false;

 document.getElementById(pre_pretransplant).disabled=false;

 document.getElementById(pre_pediatric_clinic).disabled=false;
 }

 }


 --
 Scott Stewart
 ColdFusion Developer

 Office of Research Information Systems
 Research amp; Economic Development
 University of North Carolina at Chapel Hill

 Phone:(919)843-2408
 Fax: (919)962-3600
 Email: saste...@email.unc.edu
 


 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 

Re: Javascript question

2009-02-13 Thread Claude Schneegans

Hi,

IMHO, the simplest on most efficient way to bypass the problem would be 
to make sure
no element has a name which could be identical to the ID of another one.
For instance, always use something like ID=id_ NAME=name_

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:319287
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Javascript question

2009-02-13 Thread Brian Swartzfager

jquery doesn't work with this layout, that's the first place I went.

Not to keep beating the jQuery horse, but if jQuery is referencing the radio 
button by ID or some other non-positional selector, the layout shouldn't matter.

Just to be sure, I wrote up a quick little test with 2 sets of radio buttons.  
This works find in FireFox and IE7:

script type=text/javascript src=jquery-1.2.6.min.js/script
script type=text/javascript
$(document).ready(function() {

$(input[type='radio'][name='radio1']).click(function() {
var $clickedRadioButton= $(this);
if($clickedRadioButton.val()== Yes)
{
$(#radio2AA).attr(checked,true);
$(#radio2AA).attr(disabled,false);
$(#radio2BB).attr(disabled,true);
}
else
{
$(#radio2BB).attr(checked,true);
$(#radio2BB).attr(disabled,false);
$(#radio2AA).attr(disabled,true);
}
});

});

/script

form name=testForm method=post action=none
table id=table1 cellpadding=2 cellspacing=2 style=border:1px solid 
black;
tr
  td
table id=table2 cellpadding=2 cellspacing=2 
style=border:1px solid blue;
tr
  tdJust a random cell to be different./td
  td
   table id=table3 cellpadding=2 cellspacing=2 
style=border:1px solid red;
tr
 td
   Okay, in the next cell is our set of radio buttons.
 /td
td
  strongRadio #1/strongbr /
  input type=radio name=radio1 id=radio1AA 
value=Yes The answer is Yesbr /
  input type=radio name=radio1 id=radio1BB 
value=No The answer is Nobr /
hr /
strongRadio #2/strongbr /
input type=radio name=radio2 id=radio2AA 
value=Yep You just answered Yesbr /
input type=radio name=radio2 id=radio2BB 
value=Nope You just answered Nobr /
/td
/tr
/table
/td
/tr
  /table
  /td
  /tr
/table
/form

...the only reason I can think of for the layout to affect the script is if one 
or more HTML elements are not closed properly:  invalid HTML that perhaps the 
browser can compensate for and display correctly, but wrecks the DOM of the 
page.

Of course, if it's IE 6 you're talking about, all bets are off.  :)


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:319293
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Javascript question

2009-02-13 Thread Scott Stewart

and that would/does work.

I don't know if it's an error with the layout or jquery can't  traverse 
nested tables or what but I've never been able to get it to function 
consistently in this layout

Brian Swartzfager wrote:
 jquery doesn't work with this layout, that's the first place I went.
 

 Not to keep beating the jQuery horse, but if jQuery is referencing the radio 
 button by ID or some other non-positional selector, the layout shouldn't 
 matter.

 Just to be sure, I wrote up a quick little test with 2 sets of radio buttons. 
  This works find in FireFox and IE7:

 script type=text/javascript src=jquery-1.2.6.min.js/script
 script type=text/javascript
   $(document).ready(function() {

   $(input[type='radio'][name='radio1']).click(function() {
   var $clickedRadioButton= $(this);
   if($clickedRadioButton.val()== Yes)
   {
   $(#radio2AA).attr(checked,true);
   $(#radio2AA).attr(disabled,false);
   $(#radio2BB).attr(disabled,true);
   }
   else
   {
   $(#radio2BB).attr(checked,true);
   $(#radio2BB).attr(disabled,false);
   $(#radio2AA).attr(disabled,true);
   }
   });

   });

 /script

 form name=testForm method=post action=none
 table id=table1 cellpadding=2 cellspacing=2 style=border:1px solid 
 black;
   tr
 td
   table id=table2 cellpadding=2 cellspacing=2 
 style=border:1px solid blue;
   tr
 tdJust a random cell to be different./td
 td
  table id=table3 cellpadding=2 cellspacing=2 
 style=border:1px solid red;
   tr
td
  Okay, in the next cell is our set of radio buttons.
/td
   td
 strongRadio #1/strongbr /
 input type=radio name=radio1 id=radio1AA 
 value=Yes The answer is Yesbr /
 input type=radio name=radio1 id=radio1BB 
 value=No The answer is Nobr /
   hr /
   strongRadio #2/strongbr /
   input type=radio name=radio2 id=radio2AA 
 value=Yep You just answered Yesbr /
   input type=radio name=radio2 id=radio2BB 
 value=Nope You just answered Nobr /
   /td
   /tr
   /table
   /td
   /tr
   /table
   /td
   /tr
 /table
 /form

 ...the only reason I can think of for the layout to affect the script is if 
 one or more HTML elements are not closed properly:  invalid HTML that perhaps 
 the browser can compensate for and display correctly, but wrecks the DOM of 
 the page.

 Of course, if it's IE 6 you're talking about, all bets are off.  :)


 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:319294
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Javascript question

2009-02-13 Thread Nathan Strutz

Ok scott, you've piqued my interest. You've _got_ to share this interface
that chokes jQuery.
:)

nathan strutz
[Blog and Family @ http://www.dopefly.com/]
[AZCFUG Manager @ http://www.azcfug.org/]



On Fri, Feb 13, 2009 at 12:57 PM, Scott Stewart saste...@email.unc.eduwrote:


 and that would/does work.

 I don't know if it's an error with the layout or jquery can't  traverse
 nested tables or what but I've never been able to get it to function
 consistently in this layout

 Brian Swartzfager wrote:
  jquery doesn't work with this layout, that's the first place I went.
 
 
  Not to keep beating the jQuery horse, but if jQuery is referencing the
 radio button by ID or some other non-positional selector, the layout
 shouldn't matter.
 
  Just to be sure, I wrote up a quick little test with 2 sets of radio
 buttons.  This works find in FireFox and IE7:
 
  script type=text/javascript src=jquery-1.2.6.min.js/script
  script type=text/javascript
$(document).ready(function() {
 
$(input[type='radio'][name='radio1']).click(function() {
var $clickedRadioButton= $(this);
if($clickedRadioButton.val()== Yes)
{
$(#radio2AA).attr(checked,true);
$(#radio2AA).attr(disabled,false);
$(#radio2BB).attr(disabled,true);
}
else
{
$(#radio2BB).attr(checked,true);
$(#radio2BB).attr(disabled,false);
$(#radio2AA).attr(disabled,true);
}
});
 
});
 
  /script
 
  form name=testForm method=post action=none
  table id=table1 cellpadding=2 cellspacing=2 style=border:1px
 solid black;
tr
  td
table id=table2 cellpadding=2 cellspacing=2
 style=border:1px solid blue;
tr
  tdJust a random cell to be different./td
  td
   table id=table3 cellpadding=2 cellspacing=2
 style=border:1px solid red;
tr
 td
   Okay, in the next cell is our set of radio
 buttons.
 /td
td
  strongRadio #1/strongbr /
  input type=radio name=radio1 id=radio1AA
 value=Yes The answer is Yesbr /
  input type=radio name=radio1 id=radio1BB
 value=No The answer is Nobr /
hr /
strongRadio #2/strongbr /
input type=radio name=radio2 id=radio2AA
 value=Yep You just answered Yesbr /
input type=radio name=radio2 id=radio2BB
 value=Nope You just answered Nobr /
/td
/tr
/table
/td
/tr
/table
/td
/tr
  /table
  /form
 
  ...the only reason I can think of for the layout to affect the script is
 if one or more HTML elements are not closed properly:  invalid HTML that
 perhaps the browser can compensate for and display correctly, but wrecks the
 DOM of the page.
 
  Of course, if it's IE 6 you're talking about, all bets are off.  :)
 
 
 

 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:319299
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Javascript question

2009-02-13 Thread Adrian Lynch

SHARE IT, SHARE IT, SHARE IT, SHARE IT, SHARE IT!! :OD

Go on, take out any sensitive info (but make sure the structure remains the
same).

Adrian

 -Original Message-
 From: Nathan Strutz [mailto:str...@gmail.com]
 Sent: 13 February 2009 21:50
 To: cf-talk
 Subject: Re: Javascript question
 
 
 Ok scott, you've piqued my interest. You've _got_ to share this
 interface
 that chokes jQuery.
 :)
 
 nathan strutz
 [Blog and Family @ http://www.dopefly.com/]
 [AZCFUG Manager @ http://www.azcfug.org/]
 
 
 
 On Fri, Feb 13, 2009 at 12:57 PM, Scott Stewart
 saste...@email.unc.eduwrote:
 
 
  and that would/does work.
 
  I don't know if it's an error with the layout or jquery can't
 traverse
  nested tables or what but I've never been able to get it to function
  consistently in this layout
 
  Brian Swartzfager wrote:
   jquery doesn't work with this layout, that's the first place I
 went.
  
  
   Not to keep beating the jQuery horse, but if jQuery is referencing
 the
  radio button by ID or some other non-positional selector, the layout
  shouldn't matter.
  
   Just to be sure, I wrote up a quick little test with 2 sets of
 radio
  buttons.  This works find in FireFox and IE7:
  
   script type=text/javascript src=jquery-1.2.6.min.js/script
   script type=text/javascript
 $(document).ready(function() {
  
 $(input[type='radio'][name='radio1']).click(function() {
 var $clickedRadioButton= $(this);
 if($clickedRadioButton.val()== Yes)
 {
 $(#radio2AA).attr(checked,true);
  
 $(#radio2AA).attr(disabled,false);
 $(#radio2BB).attr(disabled,true);
 }
 else
 {
 $(#radio2BB).attr(checked,true);
  
 $(#radio2BB).attr(disabled,false);
 $(#radio2AA).attr(disabled,true);
 }
 });
  
 });
  
   /script
  
   form name=testForm method=post action=none
   table id=table1 cellpadding=2 cellspacing=2
 style=border:1px
  solid black;
 tr
   td
 table id=table2 cellpadding=2 cellspacing=2
  style=border:1px solid blue;
 tr
   tdJust a random cell to be different./td
   td
table id=table3 cellpadding=2 cellspacing=2
  style=border:1px solid red;
 tr
  td
Okay, in the next cell is our set of radio
  buttons.
  /td
 td
   strongRadio #1/strongbr /
   input type=radio name=radio1
 id=radio1AA
  value=Yes The answer is Yesbr /
   input type=radio name=radio1
 id=radio1BB
  value=No The answer is Nobr /
 hr /
 strongRadio #2/strongbr /
 input type=radio name=radio2
 id=radio2AA
  value=Yep You just answered Yesbr /
 input type=radio name=radio2
 id=radio2BB
  value=Nope You just answered Nobr /
 /td
 /tr
 /table
 /td
 /tr
 /table
 /td
 /tr
   /table
   /form
  
   ...the only reason I can think of for the layout to affect the
 script is
  if one or more HTML elements are not closed properly:  invalid HTML
 that
  perhaps the browser can compensate for and display correctly, but
 wrecks the
  DOM of the page.
  
   Of course, if it's IE 6 you're talking about, all bets are off.  :)


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:319301
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: javascript question

2008-08-14 Thread Andy Matthews
Why not just have it all in one form field? Easier to store, easier to
manage, no extra coding needed. 

-Original Message-
From: BJ McShane [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 14, 2008 10:25 AM
To: CF-Talk
Subject: javascript question

I built a form for my users where they enter IP addresses.  They are use to
putting in the .(period) in between the numbers but I built the form so all
they would have to do is type in the number.  Is there a way I can change
the keystroke of a . (period) to a tab.  So when they are typing they could
type in the . but it would tab over to the next field?

thanks for any help,

bj 



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310978
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: javascript question

2008-08-14 Thread Dave Phillips
BJ,

Yes, there is a way you can do that.  I'm not sure of the exact syntax, but
hopefully you can google this and get a solution:

You need to use the onkeypress event, something like this:

input type=text name=whatever onkeypress=changePeriod();

Your changePeriod() function should look at the window.event.keyCode (which
is the ascii value of the key pressed) and it matches the ascii value of a
period (46), change it to a tab (9).  Something like this might work:

function changePeriod() {
  if(window.event.keyCode == 46) {
window.event.keyCode = 9;
  }
}

Try that and see if it works.  I know it will work in IE, but not sure about
other browsers.  

Hope this helps!

Sincerely,

Dave Phillips
http://www.dave-phillips.com


-Original Message-
From: BJ McShane [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 14, 2008 10:25 AM
To: CF-Talk
Subject: javascript question

I built a form for my users where they enter IP addresses.  They are use to
putting in the .(period) in between the numbers but I built the form so all
they would have to do is type in the number.  Is there a way I can change
the keystroke of a . (period) to a tab.  So when they are typing they could
type in the . but it would tab over to the next field?

thanks for any help,

bj 



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310983
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: javascript question

2008-08-14 Thread Yuliang Ruan
remember that when you do this, it changes the behavior of the keystroke in the 
entire window.   If you have another field that can input a period(.), this 
will make it a tab too.  

Not sure if you're allowed to check focus and based on the focused element, 
maybe make a decision to bypass or not 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310985
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: javascript question

2008-08-14 Thread Yuliang Ruan
oh wait n/m   the way dave has it, it only activates on that element.  :) 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310986
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: javascript question

2008-08-14 Thread BJ McShane
Dave thanks for the input.  I did do some google searches on this but never 
found a solution that would work. I'll try what you posted and try some more 
searches to see what I can find.
thanks! 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310990
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: javascript question

2008-08-14 Thread BJ McShane
Yes I did take that into account. If I keep in at the input tag level I think 
it should only effect the fields I want.  I'll have to do more testing.

thanks, 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310992
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: javascript question

2008-08-14 Thread BJ McShane
I'll probably change it that way.  I stored it in 4 different field in the DB 
since each of the 4 parts mean certain things to the user. They could search 
and sort based on what they are trying to find.  Also when they search they can 
just put input into any of the fields to find all the IPs with that number. So 
if the third part of the IP address is 10 they could just input something in 
the 3rd input box. 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310987
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: javascript question

2008-08-14 Thread William Seiter
If the code isn't cross-browser compatible (not tested, probably is though)

You could use the same concept to activate the javascript , when the javascript 
senses the key that was pressed, if it was the 'period' then have the element's 
'tabindex' detected and then have the system 'focus()' on the next tabindex and 
'return false' for the keystroke. 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311002
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: javascript question

2007-06-01 Thread Charlie Griefer
the onchange() goes into the select element.

select name=NEW_Plate_to_make
onchange=displayStockLevels(this.options[this.selectedIndex].value);
cfloop query=getPlates
 option value=#getPlates.ID##getPlates.Name#/option
/cfloop
/select

On 6/1/07, Chad Gray [EMAIL PROTECTED] wrote:
 I thought this would be an easy one but I cant get it to work.

 I want a text input to change value when an option in a select box is changed.

 I am looping over my options in the select with database information.  Do I 
 need to use something other then onChange?


 script
 function displayStockLevels(ID) {
 document.frmDryOffset.stockLevels.value = ID;
 }
 /script

 input type=text id=stockLevels  /

 select name=NEW_Plate_to_make
 cfloop query=getPlates
 option 
 onchange=displayStockLevels(#getPlates.ID#);#getPlates.Name#/option
 /cfloop
 /select


 

~|
Macromedia ColdFusion MX7
Upgrade to MX7  experience time-saving features, more productivity.
http://www.adobe.com/products/coldfusion?sdid=RVJW

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:279861
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: javascript question

2007-06-01 Thread Chad Gray
Oh... duh!  Thanks for the help Charlie that works great!



-Original Message-
From: Charlie Griefer [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 01, 2007 3:39 PM
To: CF-Talk
Subject: Re: javascript question

the onchange() goes into the select element.

select name=NEW_Plate_to_make
onchange=displayStockLevels(this.options[this.selectedIndex].value);
cfloop query=getPlates
 option value=#getPlates.ID##getPlates.Name#/option
/cfloop
/select

On 6/1/07, Chad Gray [EMAIL PROTECTED] wrote:
 I thought this would be an easy one but I cant get it to work.

 I want a text input to change value when an option in a select box is changed.

 I am looping over my options in the select with database information.  Do I 
 need to use something other then onChange?


 script
 function displayStockLevels(ID) {
 document.frmDryOffset.stockLevels.value = ID;
 }
 /script

 input type=text id=stockLevels  /

 select name=NEW_Plate_to_make
 cfloop query=getPlates
 option 
 onchange=displayStockLevels(#getPlates.ID#);#getPlates.Name#/option
 /cfloop
 /select


 



~|
Create robust enterprise, web RIAs.
Upgrade  integrate Adobe Coldfusion MX7 with Flex 2
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:279863
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Javascript Question

2007-04-12 Thread Scott Stewart
Never mind, I figured it out

-- 
Scott Stewart
ColdFusion Developer
 
SSTWebworks
7241 Jillspring Ct.
Springfield, Va. 22152
(703) 220-2835
 
http://www.sstwebworks.com
-Original Message-
From: Scott Stewart [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 12, 2007 10:52 AM
To: CF-Talk
Subject: OT: Javascript Question

Hey all, 

 

 

How would I control a select tag based on this.

 

function updateSelectedJournals(responseStruct) {

$('selectedJournals').innerHTML = Selected Journals
(+responseStruct.total+);

$('lstSelectedTerms').innerHTML = responseStruct.lstoutput;

 

 

I have select name=opoptionOR/optionoptionAND/option/select 

I want the and to show up if repsonseStruct.total is greater than 1.

 

Thanks

 

sas

 

 

-- 

Scott Stewart

ColdFusion Developer

 

SSTWebworks

7241 Jillspring Ct.

Springfield, Va. 22152

(703) 220-2835

 

http://www.sstwebworks.com

 





~|
Deploy Web Applications Quickly across the enterprise with ColdFusion MX7  
Flex 2
Free Trial 
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:275089
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Javascript Question

2007-03-07 Thread Dave Watts
  Can an instance of a JavaScript object know the name of 
 its instance?

My understanding is that it generally can't; this makes sense, since an
object may have more than one reference.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!


~|
Upgrade to Adobe ColdFusion MX7
The most significant release in over 10 years. Upgrade  see new features.
http://www.adobe.com/products/coldfusion

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:271957
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Javascript Question

2007-03-07 Thread Brad Wood
By more that one reference do you mean more than one instance, or more
than one pointer to the same instance?

~Brad


My understanding is that it generally can't; this makes sense, since an
object may have more than one reference.


~|
Create Web Applications With ColdFusion MX7  Flex 2. 
Build powerful, scalable RIAs. Free Trial
http://www.adobe.com/products/coldfusion/flex2/

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:271958
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Javascript Question

2007-03-07 Thread Jim Davis
 -Original Message-
 From: Brad Wood [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 07, 2007 10:53 PM
 To: CF-Talk
 Subject: OT: Javascript Question
 
 Hi guys, I've got a JavaScript question which has me puzzled.  Can an
 instance of a JavaScript object know the name of its instance?

No - there's really no way to do things as you're talking about it.

Take a line like this:

var foo = new MyObject();

Well - foo is just a pointer to the new object - it has no real affect on
it in any way.

You might consider foo to be the object - and want a function or property
to remember it.  But that really doesn't make any sense when you think about
it.  Consider this:

var foo = new MyObject();
var faa = foo;
var fii = faa;

or

var foo,faa,fii = new MyObject();

There is no difference at all between foo, faa and fii - they are all
equal references to the object.  What would WhoAmI() return?

Now - all that said, you can sort of do this with a custom assignment
function of some kind.

For example you could easily pass an ID on object creation like this:

var foo = new MyObject(foo);

You might also be able to (I'm not sure) create a function which can inject
your new variable into a passed scope... but I've not tried it. But since
functions are both data and objects something like this might work:

createMyObject(foo);

This would do something like this (from memory, forgive me if I've got
things muddled):

Function createMyObject(varName) {
caller[varName] = new MyObject();
caller[varName].InstanceName = varName;
};

That's not very elegant - but you might be able to come up with a decent
abstraction.

Finally I think the best way to do what you're talking about is just to
manage your instances.  I use custom collection objects to manage related
groups of objects.  I've put them online here:

http://www.depressedpress.com/Content/Development/JavaScript/Extensions/Inde
x.cfm

Look at DP_ObCollection (for managing unordered lists) and
DP_ObCollectionOrdered (for managing ordered lists).  These assume that
the member objects are of the same type and have a property to use as a key
name.  Once you set that up can retrieve any of the members by name using a
get() method.  You can loop over the collection in multiple ways and
basically treat the collection as a single unit.

I'm not sure what you're trying to do in the end, but I find those
collection components useful over and over again.

Jim DAvis 





~|
Create Web Applications With ColdFusion MX7  Flex 2. 
Build powerful, scalable RIAs. Free Trial
http://www.adobe.com/products/coldfusion/flex2/

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:271959
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Javascript Question

2007-03-07 Thread Dave Watts
 By more that one reference do you mean more than one 
 instance, or more than one pointer to the same instance?

The latter. Jim just explained it better than I did. But he's probably not
typing with his thumbs!

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!


~|
Macromedia ColdFusion MX7
Upgrade to MX7  experience time-saving features, more productivity.
http://www.adobe.com/products/coldfusion

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:271960
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Javascript Question

2007-03-07 Thread Brad Wood
Lol.  It all makes perfect sense.

~Brad


~|
Deploy Web Applications Quickly across the enterprise with ColdFusion MX7  
Flex 2. 
Free Trial 
http://www.adobe.com/products/coldfusion/flex2/

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:271961
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: JavaScript question.

2006-12-20 Thread Andy Matthews
Using jQuery this would be a snap:

$('fieldsent#contacts div');

Assuming that the fieldset tag had an ID of contacts.

!//--
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--//-

-Original Message-
From: Ian Skinner [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 20, 2006 2:33 PM
To: CF-Talk
Subject: SOT: JavaScript question.


Is there any way to restrict a getElementByTag() function to a subsection of
the DOM?

I.E.  Only return div tags that are children of the contacts fiedset node?

I've tried a couple of nebulous attempts at this with no success.

--
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

-
| 1 |   |
-  Binary Soduko
|   |   |
-

C code. C code run. Run code run. Please!
- Cynthia Dunning

Confidentiality Notice:  This message including any
attachments is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the
intended recipient, please contact the sender and
delete any copies of this message.





~|
Create robust enterprise, web RIAs.
Upgrade  integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:264646
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Javascript question...or suggestion where to go to get answer

2006-01-29 Thread Adrian Lynch
Only tested on IE6:

Two pages, temp.cfm and temp2.cfm

temp.cfm:

!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN

html
head
titleUntitled/title
script type=text/javascript

function pageLoaded() {

window.onfocus = function() {
alert(WE HAVE FOCUS);
};

window.onblur = function() {
window.close();
};

}

/script
/head

body onload=pageLoaded();

/body

/html


temp2.cfm

script
window.open(temp.cfm, aNewWindow);
/script


Seems to work but I'd test a fair bit :O)

Adrian Lynch
http://www.halestorm.co.uk/

Spring clean out:
http://www.adrianlynch.co.uk/selling/

-Original Message-
From: Eric Roberts [mailto:[EMAIL PROTECTED]
Sent: 29 January 2006 21:11
To: CF-Talk
Subject: OT: Javascript question...or suggestion where to go to get
answer


I have a JavaScript dilemma in one of my CF apps and I am not sure how to
solve it.  We have popup that is used to modify some values in the database
before running a report.  We want this popup to close if you click on
another window.  I tried putting close in an onBlur event as part of the
body tag, but then when I click on any location within the window, it
closes...I guess because when you focus on one element, you are blurring
another.  Anyone have any suggestions on how to accomplish this or where I
can go to get some help with this?  Any help would be greatly appreciated.

Blessings,
Eric




~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:230703
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Javascript question...or suggestion where to go to get answer

2006-01-29 Thread Eric Roberts
I will have to try that...thanks!

Eric 

-Original Message-
From: Adrian Lynch [mailto:[EMAIL PROTECTED] 
Sent: Sunday, 29 January 2006 15:32
To: CF-Talk
Subject: RE: Javascript question...or suggestion where to go to get answer

Only tested on IE6:

Two pages, temp.cfm and temp2.cfm

temp.cfm:

!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN

html
head
titleUntitled/title
script type=text/javascript

function pageLoaded() {

window.onfocus = function() {
alert(WE HAVE FOCUS);
};

window.onblur = function() {
window.close();
};

}

/script
/head

body onload=pageLoaded();

/body

/html


temp2.cfm

script
window.open(temp.cfm, aNewWindow);
/script


Seems to work but I'd test a fair bit :O)

Adrian Lynch
http://www.halestorm.co.uk/

Spring clean out:
http://www.adrianlynch.co.uk/selling/

-Original Message-
From: Eric Roberts [mailto:[EMAIL PROTECTED]
Sent: 29 January 2006 21:11
To: CF-Talk
Subject: OT: Javascript question...or suggestion where to go to get answer


I have a JavaScript dilemma in one of my CF apps and I am not sure how to
solve it.  We have popup that is used to modify some values in the database
before running a report.  We want this popup to close if you click on
another window.  I tried putting close in an onBlur event as part of the
body tag, but then when I click on any location within the window, it
closes...I guess because when you focus on one element, you are blurring
another.  Anyone have any suggestions on how to accomplish this or where I
can go to get some help with this?  Any help would be greatly appreciated.

Blessings,
Eric






~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:230704
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Javascript question...or suggestion where to go to get answer

2006-01-29 Thread Mark Drew
I dont have the code here at home, but this is a kind of requirement  
for a modal window... i.e. a window that stops the window below it  
from gaining focus until its closed.

I have seen it implemented as a modal popup but you could also  
implement it as a div that covers the main window (I have done this  
and can try and find the code.

Basically it puts a div over EVERYTHING on the window (thus you cant  
gain access to any of the links or functions) and presents you with a  
popup that you have to close or submit so that it will go away.

Would either of these help?

Regards

Mark Drew

On 29 Jan 2006, at 22:04, Eric Roberts wrote:

 I will have to try that...thanks!

 Eric

 -Original Message-
 From: Adrian Lynch [mailto:[EMAIL PROTECTED]
 Sent: Sunday, 29 January 2006 15:32
 To: CF-Talk
 Subject: RE: Javascript question...or suggestion where to go to get  
 answer

 Only tested on IE6:

 Two pages, temp.cfm and temp2.cfm

 temp.cfm:

 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN

 html
 head
   titleUntitled/title
   script type=text/javascript

   function pageLoaded() {

   window.onfocus = function() {
   alert(WE HAVE FOCUS);
   };

   window.onblur = function() {
   window.close();
   };

   }

   /script
 /head

 body onload=pageLoaded();

 /body

 /html


 temp2.cfm

 script
   window.open(temp.cfm, aNewWindow);
 /script


 Seems to work but I'd test a fair bit :O)

 Adrian Lynch
 http://www.halestorm.co.uk/

 Spring clean out:
 http://www.adrianlynch.co.uk/selling/

 -Original Message-
 From: Eric Roberts [mailto:[EMAIL PROTECTED]
 Sent: 29 January 2006 21:11
 To: CF-Talk
 Subject: OT: Javascript question...or suggestion where to go to get  
 answer


 I have a JavaScript dilemma in one of my CF apps and I am not sure  
 how to
 solve it.  We have popup that is used to modify some values in the  
 database
 before running a report.  We want this popup to close if you click on
 another window.  I tried putting close in an onBlur event as part  
 of the
 body tag, but then when I click on any location within the window, it
 closes...I guess because when you focus on one element, you are  
 blurring
 another.  Anyone have any suggestions on how to accomplish this or  
 where I
 can go to get some help with this?  Any help would be greatly  
 appreciated.

 Blessings,
 Eric






 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:230710
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Javascript question...or suggestion where to go to get answer

2006-01-29 Thread Eric Roberts
No...it has to go away when the focus is lost.  The main page allows you to
change parameters that determine what is accessed in the popup.  We want to
make it as simple as possible as the folks who are using this are not
necessarily technically adept.  If the example that was given before doesn't
work, however, I may have to use something like this though.

Thanks!

Eric

-Original Message-
From: Mark Drew [mailto:[EMAIL PROTECTED] 
Sent: Sunday, 29 January 2006 18:51
To: CF-Talk
Subject: Re: Javascript question...or suggestion where to go to get answer

I dont have the code here at home, but this is a kind of requirement for a
modal window... i.e. a window that stops the window below it from gaining
focus until its closed.

I have seen it implemented as a modal popup but you could also implement it
as a div that covers the main window (I have done this and can try and find
the code.

Basically it puts a div over EVERYTHING on the window (thus you cant gain
access to any of the links or functions) and presents you with a popup that
you have to close or submit so that it will go away.

Would either of these help?

Regards

Mark Drew

On 29 Jan 2006, at 22:04, Eric Roberts wrote:

 I will have to try that...thanks!

 Eric

 -Original Message-
 From: Adrian Lynch [mailto:[EMAIL PROTECTED]
 Sent: Sunday, 29 January 2006 15:32
 To: CF-Talk
 Subject: RE: Javascript question...or suggestion where to go to get 
 answer

 Only tested on IE6:

 Two pages, temp.cfm and temp2.cfm

 temp.cfm:

 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN

 html
 head
   titleUntitled/title
   script type=text/javascript

   function pageLoaded() {

   window.onfocus = function() {
   alert(WE HAVE FOCUS);
   };

   window.onblur = function() {
   window.close();
   };

   }

   /script
 /head

 body onload=pageLoaded();

 /body

 /html


 temp2.cfm

 script
   window.open(temp.cfm, aNewWindow); /script


 Seems to work but I'd test a fair bit :O)

 Adrian Lynch
 http://www.halestorm.co.uk/

 Spring clean out:
 http://www.adrianlynch.co.uk/selling/

 -Original Message-
 From: Eric Roberts [mailto:[EMAIL PROTECTED]
 Sent: 29 January 2006 21:11
 To: CF-Talk
 Subject: OT: Javascript question...or suggestion where to go to get  
 answer


 I have a JavaScript dilemma in one of my CF apps and I am not sure  
 how to
 solve it.  We have popup that is used to modify some values in the  
 database
 before running a report.  We want this popup to close if you click on
 another window.  I tried putting close in an onBlur event as part  
 of the
 body tag, but then when I click on any location within the window, it
 closes...I guess because when you focus on one element, you are  
 blurring
 another.  Anyone have any suggestions on how to accomplish this or  
 where I
 can go to get some help with this?  Any help would be greatly  
 appreciated.

 Blessings,
 Eric






 



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:230713
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Javascript question

2005-12-14 Thread Andrew Scott
Very easy actually.


script language=javascript
 Function showSubmit(element)
 {
   Element.style.visibility = show;
 }
/script

input style=visibility:hidden; TYPE=submit VALUE=Submit Order


Another way you could do this is have the button disabled, and then enable
the button once the required action is completed.


Regards,
Andrew Scott
 
Quote of the Day:
Never express yourself more clearly than you think. - N. Bohr
-Original Message-
From: eric.creese [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 14 December 2005 5:05 PM
To: CF-Talk
Subject: Javascript question

Quick qustion, I have a submit button I do not want to show until a user
clicks a button to calculate a total first on the same page. How do I do
this?

tr
  td align=center CLASS=defaulttextbTOTAL:/b/td
  td align=center colspan=2INPUT CLASS=inputlarge TYPE=button
VALUE=Click to Total Order
onClick=order.totaltxt.value=total(this.form);/td
  td align=rightINPUT CLASS=textbox TYPE=text NAME=totaltxt
SIZE=10 MAXLENGTH=30 VALUE=0 
  /td
 /tr
 tr
  td align=center colspan=4
   cfif order.totaltxt NEQ 0
   INPUT CLASS=inputlarge TYPE=submit VALUE=Submit Order
  /cfif
  /td
 /tr



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226997
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Javascript question

2005-12-14 Thread Bobby Hartsfield
Give the button in question a style like...

Style=visibility:hidden; to hide it

At the end of your 'calculate total' function or onclick of the total button
or wherever you wan it... put

document.myformname.mybuttonname.style.visibility='visible'; to show it

 
..:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com

-Original Message-
From: eric.creese [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 14, 2005 1:05 AM
To: CF-Talk
Subject: Javascript question

Quick qustion, I have a submit button I do not want to show until a user
clicks a button to calculate a total first on the same page. How do I do
this?

tr
  td align=center CLASS=defaulttextbTOTAL:/b/td
  td align=center colspan=2INPUT CLASS=inputlarge TYPE=button
VALUE=Click to Total Order
onClick=order.totaltxt.value=total(this.form);/td
  td align=rightINPUT CLASS=textbox TYPE=text NAME=totaltxt
SIZE=10 MAXLENGTH=30 VALUE=0 
  /td
 /tr
 tr
  td align=center colspan=4
   cfif order.totaltxt NEQ 0
   INPUT CLASS=inputlarge TYPE=submit VALUE=Submit Order
  /cfif
  /td
 /tr



~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:227001
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Javascript question

2005-12-14 Thread eric.creese
That is what I want to do, show the button only after the total button is
clicked, so wouldn't have to do the visbility function pieces in the onclick
function? Here is what I have, should have included the other function. So
when I click SubtotalItem button the OrderTotal button will appear.

script
function total(current)
{
  calctax(current);
  sum=cfloop query=getprods
  cfif itemid NEQ enditem
  eval(current.Subtotalcfoutput#itemid#/cfoutput.value)+
  cfelse
  eval(current.Subtotalcfoutput#itemid#/cfoutput.value)
  /cfif
   /cfloop
   ;
  document.order.SH.value=calcsh(sum);
  sum = sum + eval(current.Tax.value)+ eval(current.SH.value);
  return format(sum);
  script
}

cfform 

tr
  td align=center CLASS=defaulttextbTOTAL:/b/td
  td align=center colspan=2INPUT NAME=SubtotalItem CLASS=inputlarge
TYPE=button VALUE=Click to Total Order
onClick=order.totaltxt.value=total(this.form);/td
  td align=rightINPUT CLASS=textbox TYPE=text NAME=totaltxt
SIZE=10 MAXLENGTH=30 VALUE=0 
  /td
 /tr
 tr
  td align=center colspan=4
   INPUT NAME=OrderTotal CLASS=inputlarge TYPE=submit VALUE=Submit
Order 
  /td
 /tr
/table

/cfform


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:227002
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Javascript question - SOLVED

2005-12-14 Thread eric.creese
thanks that was exactly what I was trying to do.


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:227003
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Javascript question...

2005-05-10 Thread Che Vilnonis
Mark...
Isn't it \n instead of /n ???

-Original Message-
From: Mark A Kruger [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 10, 2005 10:55 AM
To: CF-Talk
Subject: OT: Javascript question...


I want to manipulate the innerText property of a  div tag. It works fine
except that I can't seem to put in a linefeed or break. I tried all the
following without success. Does anyone know how to get a linebreak in there?

-mark





divName.innerText = divName.innerText + some new text + br/;

divName.innerText = divName.innerText + some new text + /n;

divName.innerText = divName.innerText + some new text + chr(10);

divName.innerText = divName.innerText + some new text + chr(13);

---




Mark A. Kruger, CFG, MCSE
www.cfwebtools.com
www.necfug.com
http://mkruger.cfwebtools.com






~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:206185
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Javascript question...

2005-05-10 Thread Dave Watts
 I want to manipulate the innerText property of a  div 
 tag. It works fine except that I can't seem to put in a linefeed 
 or break. I tried all the following without success. Does anyone 
 know how to get a linebreak in there?
 
 -mark

 divName.innerText = divName.innerText + some new text + br/;
 
 divName.innerText = divName.innerText + some new text + /n;
 
 divName.innerText = divName.innerText + some new text + chr(10);
 
 divName.innerText = divName.innerText + some new text + chr(13);

The escape metacharacter in JavaScript is \. The newline character escape
sequence in JavaScript is \n.

str = str + '\n';

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized 
instruction at our training centers in Washington DC, Atlanta, 
Chicago, Baltimore, Northern Virginia, or on-site at your location. 
Visit http://training.figleaf.com/ for more information!


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:206191
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Javascript question...

2005-05-10 Thread Justin D. Scott
 I want to manipulate the innerText property of a
 div tag. It works fine except that I can't seem
 to put in a linefeed or break. I tried all the
 following without success. Does anyone know how to
 get a linebreak in there?

I think you want innerHTML, not innerText.


---
Justin D. Scott
Vice President
Sceiron Interactive, Inc.
www.sceiron.com

[EMAIL PROTECTED]
941.378.5341 - office
941.320.2402 - mobile
941.870.5626 - facsimile


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:206197
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Javascript question...

2005-05-10 Thread Dave Francis
divName.innerText = divName.innerText + some new text + \n + abc

-Original Message-
From: Mark A Kruger [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 10, 2005 10:55 AM
To: CF-Talk
Subject: OT: Javascript question...


I want to manipulate the innerText property of a  div tag. It works fine
except that I can't seem to put in a linefeed or break. I tried all the
following without success. Does anyone know how to get a linebreak in there?

-mark





divName.innerText = divName.innerText + some new text + br/;

divName.innerText = divName.innerText + some new text + /n;

divName.innerText = divName.innerText + some new text + chr(10);

divName.innerText = divName.innerText + some new text + chr(13);

---




Mark A. Kruger, CFG, MCSE
www.cfwebtools.com
www.necfug.com
http://mkruger.cfwebtools.com






~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:206194
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Javascript question...

2005-05-10 Thread Claude Schneegans
If you add \n to the string, it just adds a line feed to the text, 
which does not show off in HTML.
If you add BR, you're actually adding an HTML element to the text, 
which I think is not allowed.

Try to use innerHTML instead.

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:206213
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Javascript question...

2005-05-10 Thread S . Isaac Dealey
cfsavecontent variable=mycontent

/cfsavecontent

divName.innerText += '#jsstringformat(mycontent)#';

or divName.innerText += '\n'

your problem in all likelyhood isn't that the space isn't being added
but that the content is being interpreted in standard html format
wherein white space is all collapsed. You need to either use a pre
tag (instead of a div) or set the css white-space property of the div
tag to pre.

div style=white-space:pre;

I'm not sure that all browsers interpret that css property correctly
tho -- iirc particularly IE ... so you're likely better off with a
pre tag...

Although I would also recommend using innerHTML instead of innerText.


 divName.innerText = divName.innerText + some new text +
 \n + abc

 -Original Message-
 From: Mark A Kruger [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, May 10, 2005 10:55 AM
 To: CF-Talk
 Subject: OT: Javascript question...


 I want to manipulate the innerText property of a  div
 tag. It works fine
 except that I can't seem to put in a linefeed or break. I
 tried all the
 following without success. Does anyone know how to get a
 linebreak in there?

 -mark


s. isaac dealey   954.522.6080
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm




~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:206221
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Javascript question...

2005-05-10 Thread Mark A Kruger
probably g

-Original Message-
From: Che Vilnonis [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 10, 2005 10:29 AM
To: CF-Talk
Subject: RE: Javascript question...


Mark...
Isn't it \n instead of /n ???

-Original Message-
From: Mark A Kruger [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 10, 2005 10:55 AM
To: CF-Talk
Subject: OT: Javascript question...


I want to manipulate the innerText property of a  div tag. It works fine
except that I can't seem to put in a linefeed or break. I tried all the
following without success. Does anyone know how to get a linebreak in there?

-mark





divName.innerText = divName.innerText + some new text + br/;

divName.innerText = divName.innerText + some new text + /n;

divName.innerText = divName.innerText + some new text + chr(10);

divName.innerText = divName.innerText + some new text + chr(13);

---




Mark A. Kruger, CFG, MCSE
www.cfwebtools.com
www.necfug.com
http://mkruger.cfwebtools.com








~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:206255
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Javascript question...

2005-05-10 Thread Mark A Kruger
Ah... innerHTML doh!

-Original Message-
From: Pascal Peters [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 10, 2005 10:20 AM
To: CF-Talk
Subject: OT: Javascript question...


divName.innerHTML += some new text + br/;

This should work

Pascal

I want to manipulate the innerText property of a  div tag. It works
fine
except that I can't seem to put in a linefeed or break. I tried all the
following without success. Does anyone know how to get a linebreak in
there?

-mark



---
-

divName.innerText = divName.innerText + some new text + br/;

divName.innerText = divName.innerText + some new text + /n;

divName.innerText = divName.innerText + some new text + chr(10);

divName.innerText = divName.innerText + some new text + chr(13);
---
-
---




Mark A. Kruger, CFG, MCSE
www.cfwebtools.com
www.necfug.com
http://mkruger.cfwebtools.com



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:206254
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Javascript Question. JS Wizards needed!

2005-04-15 Thread Andy Mcshane
Yeah, let's all be friends again and move on :-)

 


From: Charlie Griefer [mailto:[EMAIL PROTECTED]
Sent: Thu 14/04/2005 23:45
To: CF-Talk
Subject: Re: Javascript Question. JS Wizards needed!



c'mon people...micha was mean and now everyone's mad at him. we get it.

let's move this over to cf-whogivesacrapanymore :)

On 4/14/05, Will Tomlinson [EMAIL PROTECTED] wrote:

 I agree as well. And this is coming from someone that probably holds the
 HoF record on asking basic questions.

 Sometimes a berating is warranted, but not on this one.

 Will





~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:203003
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Javascript Question. JS Wizards needed!

2005-04-14 Thread Micha Schopman
This is basic beginners stuff.

select name=myDropdown
onchange=document.getElementById('dropdownValue').innerHTML=(this.value
-1)
optgroup label=my group
option value=1This is number one
/optgroup
optgroup label=my 2nd group
option value=2This is number two
option value=3This is number three
/optgroup
/select

Get yourself a basic book about Javascript, or try to invest some time
in using Google.

Micha Schopman
Project Manager

Modern Media, Databankweg 12 M, 3821 AL  Amersfoort
Tel 033-4535377, Fax 033-4535388
KvK Amersfoort 39081679, Rabo 39.48.05.380


~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:202733
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Javascript Question. JS Wizards needed!

2005-04-14 Thread dave
Good one micha, very tactful, very pleasant, so kind and helpful, may I be so 
lucky as to ask for and acquire the help of such a true coding gem as 
yourself
 It's great that you know it but why try to help and then be an ass about it?
 No comprende? google it ;)


From: Micha Schopman [EMAIL PROTECTED]
Sent: Thursday, April 14, 2005 4:04 AM
To: CF-Talk cf-talk@houseoffusion.com
Subject: RE: Javascript Question. JS Wizards needed! 

This is basic beginners stuff.

This is number one This is number two This is number three 

Get yourself a basic book about Javascript, or try to invest some time
in using Google.

Micha Schopman
Project Manager

Modern Media, Databankweg 12 M, 3821 AL Amersfoort
Tel 033-4535377, Fax 033-4535388
KvK Amersfoort 39081679, Rabo 39.48.05.380



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:202734
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Javascript Question. JS Wizards needed!

2005-04-14 Thread Micha Schopman
Because there are people who think they can almost post every lazy
question without investing some of their own time in it. Quick, easy,
post it here people will solve it for me, in the meanwhile I am gonna
get me some coffee.

This question has nothing to do with ignorance, it has to do with people
lacking initiative. In every corporate environment you would hear the
same.

It is just lazy. 

Micha Schopman

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:202737
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Javascript Question. JS Wizards needed!

2005-04-14 Thread Che Vilnonis
I agree. A little tact would be nice. It's not like I asked how to turn a PC
on.
FTR, I went to several javascript sites. Not only are they full of
advertisements and difficult to navigate, they didn't seem to have exactly
what I need. That is why I turned to you fine folks! ;)

Micha... I literally wear a half a dozen 'hats' where I work and I do them
all well. No one knows everything... but we all have the capacity to learn.
I was in need of a fix, so I finally asked. Lazy on my part, not a chance!

I'll remember to be so kind to you in the future when you need help. Oops, I
forgot... you'll never need it!

~Che

-Original Message-
From: Micha Schopman [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 14, 2005 4:20 AM
To: CF-Talk
Subject: RE: Javascript Question. JS Wizards needed!


Because there are people who think they can almost post every lazy
question without investing some of their own time in it. Quick, easy,
post it here people will solve it for me, in the meanwhile I am gonna
get me some coffee.

This question has nothing to do with ignorance, it has to do with people
lacking initiative. In every corporate environment you would hear the
same.

It is just lazy.

Micha Schopman


~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:202763
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Javascript Question. JS Wizards needed!

2005-04-14 Thread Jochem van Dieten
Che Vilnonis wrote:
 
 FTR, I went to several javascript sites.

But how should we know that?

Describe the research you did to try and understand the problem 
before you asked the question.
http://www.catb.org/~esr/faqs/smart-questions.html#beprecise

Jochem

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:202766
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Javascript Question. JS Wizards needed!

2005-04-14 Thread Che Vilnonis
Dually (sp) noted Jochem. Its not like I ask a question a day. More like a
few times a year.
Believe me, I would never waste anyone's time on this list. We all
occasionally find ourselves in a 'pickle' and need help.

~Che

-Original Message-
From: Jochem van Dieten [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 14, 2005 9:32 AM
To: CF-Talk
Subject: Re: Javascript Question. JS Wizards needed!


Che Vilnonis wrote:

 FTR, I went to several javascript sites.

But how should we know that?

Describe the research you did to try and understand the problem
before you asked the question.
http://www.catb.org/~esr/faqs/smart-questions.html#beprecise

Jochem



~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:202768
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Javascript Question. JS Wizards needed!

2005-04-14 Thread Michael T. Tangorre
 From: Jochem van Dieten [mailto:[EMAIL PROTECTED] 
 Che Vilnonis wrote:
  
  FTR, I went to several javascript sites.
 
 But how should we know that?

Come on, cut the guy some slack. For heavens sake




~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:202769
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Javascript Question. JS Wizards needed!

2005-04-14 Thread John Stanley
I think only one person (Mike D) should be berating people for asking
questions, no matter how obvious or easy some of us think the answers might
be. This list is to help people, not to have those who need help fear asking
because someone might take exception with that persons amount of research
undertaken before the question is posed.

-Original Message-
From: Che Vilnonis [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 14, 2005 9:43 AM
To: CF-Talk
Subject: RE: Javascript Question. JS Wizards needed!


Dually (sp) noted Jochem. Its not like I ask a question a day. More like a
few times a year.
Believe me, I would never waste anyone's time on this list. We all
occasionally find ourselves in a 'pickle' and need help.

~Che

-Original Message-
From: Jochem van Dieten [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 14, 2005 9:32 AM
To: CF-Talk
Subject: Re: Javascript Question. JS Wizards needed!


Che Vilnonis wrote:

 FTR, I went to several javascript sites.

But how should we know that?

Describe the research you did to try and understand the problem
before you asked the question.
http://www.catb.org/~esr/faqs/smart-questions.html#beprecise

Jochem





~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:202771
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Javascript Question. JS Wizards needed!

2005-04-14 Thread Mark Drew
I agree.. cut the guy some slack. There are times when one's brain has
gone into freespin and you need the help of an intelligent coleague or
two... and sometimes you dont have one of those in the near vecinity
so you turn to the list.

of course.. I could join many many wonderful lists but hell, we all do
a bit of JS here and there right?. right???

and until google get their search engine totally sorted with the read
my mind there is always the humans that are FREE to help if they so
wish

MD


On 4/14/05, John Stanley [EMAIL PROTECTED] wrote:
 I think only one person (Mike D) should be berating people for asking
 questions, no matter how obvious or easy some of us think the answers might
 be. This list is to help people, not to have those who need help fear asking
 because someone might take exception with that persons amount of research
 undertaken before the question is posed.
 
 -Original Message-
 From: Che Vilnonis [mailto:[EMAIL PROTECTED]
 Sent: Thursday, April 14, 2005 9:43 AM
 To: CF-Talk
 Subject: RE: Javascript Question. JS Wizards needed!
 
 Dually (sp) noted Jochem. Its not like I ask a question a day. More like a
 few times a year.
 Believe me, I would never waste anyone's time on this list. We all
 occasionally find ourselves in a 'pickle' and need help.
 
 ~Che
 
 -Original Message-
 From: Jochem van Dieten [mailto:[EMAIL PROTECTED]
 Sent: Thursday, April 14, 2005 9:32 AM
 To: CF-Talk
 Subject: Re: Javascript Question. JS Wizards needed!
 
 Che Vilnonis wrote:
 
  FTR, I went to several javascript sites.
 
 But how should we know that?
 
 Describe the research you did to try and understand the problem
 before you asked the question.
 http://www.catb.org/~esr/faqs/smart-questions.html#beprecise
 
 Jochem
 
 

~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:202772
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Javascript Question. JS Wizards needed!

2005-04-14 Thread Andy Mcshane
I cannot believe this thread! If in your opinion you think that someone has 
been lazy and asked a question that you feel that they have not done any 
reasearch on then don't bother to reply to it! It's that simple. There has been 
more time spent flaming this poor guy than it actually took to answer the 
question in the first place. We all get code blind sometimes and even Google 
can add to the problem instead of helping you solve it so. It can be time 
saving to post the question to the forum, if only for someone to kindly point 
out the simple solution that may be staring you in the face!


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:202778
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Javascript Question. JS Wizards needed!

2005-04-14 Thread Che Vilnonis
Thanks all. I can defend myself. :)

-Original Message-
From: Andy Mcshane [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 14, 2005 10:31 AM
To: CF-Talk
Subject: RE: Javascript Question. JS Wizards needed!


I cannot believe this thread! If in your opinion you think that someone has
been lazy and asked a question that you feel that they have not done any
reasearch on then don't bother to reply to it! It's that simple. There has
been more time spent flaming this poor guy than it actually took to answer
the question in the first place. We all get code blind sometimes and even
Google can add to the problem instead of helping you solve it so. It can be
time saving to post the question to the forum, if only for someone to
kindly point out the simple solution that may be staring you in the face!




~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:202779
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Javascript Question. JS Wizards needed!

2005-04-14 Thread Ray Champagne
I totally agree with you on this one.  I think an apology is in order, 
Micha.  Your comments were at best uncalled for, and if it were me that 
said that, I would be ashamed of myself.

Ray

Andy Mcshane wrote:
 I cannot believe this thread! If in your opinion you think that someone has 
 been lazy and asked a question that you feel that they have not done any 
 reasearch on then don't bother to reply to it! It's that simple. There has 
 been more time spent flaming this poor guy than it actually took to answer 
 the question in the first place. We all get code blind sometimes and even 
 Google can add to the problem instead of helping you solve it so. It can be 
 time saving to post the question to the forum, if only for someone to 
 kindly point out the simple solution that may be staring you in the face!
 
 
 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:202782
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Javascript Question. JS Wizards needed!

2005-04-14 Thread Claude Schneegans
 I totally agree with you on this one.

Me too.
If someone participates in this list, it is either because he is a 
beginer and has questions to ask,
or because he has the skill and enjoy answering questions,... or both.
Beside the fact that we all are specilists in some area and beginers in 
some other.

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:202784
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Javascript Question. JS Wizards needed!

2005-04-14 Thread Jared Rypka-Hauer - CMG, LLC
It's nice to see bad behavior being called out... and I won't say another word.

:)

J

On 4/14/05, Claude Schneegans [EMAIL PROTECTED] wrote:
  I totally agree with you on this one.
 
 Me too.
 If someone participates in this list, it is either because he is a
 beginer and has questions to ask,
 or because he has the skill and enjoy answering questions,... or both.
 Beside the fact that we all are specilists in some area and beginers in
 some other. 


-- 
Continuum Media Group LLC
Burnsville, MN 55337
http://www.web-relevant.com
http://www.web-relevant.com/blogs/cfobjective

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:202855
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Javascript Question. JS Wizards needed!

2005-04-14 Thread Will Tomlinson
I agree as well. And this is coming from someone that probably holds the HoF 
record on asking basic questions. 

Sometimes a berating is warranted, but not on this one. 

Will

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:202866
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Javascript Question. JS Wizards needed!

2005-04-14 Thread Charlie Griefer
c'mon people...micha was mean and now everyone's mad at him. we get it.

let's move this over to cf-whogivesacrapanymore :)

On 4/14/05, Will Tomlinson [EMAIL PROTECTED] wrote:
 
 I agree as well. And this is coming from someone that probably holds the 
 HoF record on asking basic questions.
 
 Sometimes a berating is warranted, but not on this one.
 
 Will
 
 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:202940
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Javascript question

2005-02-16 Thread Charlie Griefer
change: for (i = 0; i = myform.Impact.length; i++)
to: for (i = 0; i  myform.Impact.length; i++)


On Wed, 16 Feb 2005 11:13:32 -0800, John Wilker [EMAIL PROTECTED] wrote:
 I didn't know of a good JS list
 
 I have the code below. The if loop seems to kill the script. The IF
 loop runs fine but the alert after the FOR and everything after the
 FOR for that matter, fail to execute.
 
 function Validator() {
 var myform = document.getElementById('SuggestionForm');
 var errMsg = ''
 var checkboxcounter = 0
 if (myform.SuggestionText.value == '')
 errMsg = errMsg + '- Please explain your 
 suggestion.\n\r'
 if (myform.SuggestTitle.value == '')
 errMsg = errMsg + '- Your suggestion needs a 
 title.\n\r'
 alert(myform.Impact.length);
 for (i = 0; i = myform.Impact.length; i++)
 {
 if (myform.Impact[i].checked) {
 alert('true');
 checkboxcounter++;
 }else{
 alert('false');
 }
 }
 alert('hi');
 alert(checkboxcounter);
 if (errMsg != '')
 alert(errMsg)
 else
 myform.submit()
 }
 
 Any thoughts.
 
 --
 John Wilker
 Writer/Web Consultant
 www.red-omega.com
 
 I balance, I weave, I dodge, I frolic, and my bills are all paid. On
 weekends, to let off steam, I participate in full-contact origami.
 
 

~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:195057
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Javascript question

2005-02-16 Thread Jim Davis
 -Original Message-
 From: Charlie Griefer [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, February 16, 2005 2:28 PM
 To: CF-Talk
 Subject: Re: Javascript question
 
 change: for (i = 0; i = myform.Impact.length; i++)
 to: for (i = 0; i  myform.Impact.length; i++)

Yup - Charlie's 'xactly right.  Remember that JavaScript counts from zero,
but length is still the full count.  So you while length would be (for
example) 3 the actual count would be 0,1,2

Jim Davis




~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:195059
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Javascript question

2005-02-16 Thread Micha Schopman
I did some refactoring for you :) while loops in javascript are quicker than 
for loops.

function Validator() {
var myform = document.getElementById('SuggestionForm');
var errMsg = ''
var checkboxcounter = 0;

if (myform.SuggestionText.value.length = 0){
  errMsg += '- Please explain your suggestion.\n\r'
}

if (myform.SuggestTitle.value.value.length = 0){
  errMsg += '- Your suggestion needs a title.\n\r'
}

var i=myform.Impact.length;while(i--){
  if(myform.Impact[i].checked){
checkboxcounter++;
  }
}

if (errMsg.length  0) {
  alert(errMsg)
}else{
 myform.submit()
}

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:195061
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Javascript question

2005-02-16 Thread John Wilker
thank you gentlemen!!! The = is no  and that worked perfectly.

I'm redesigning to use the while loop, thanks for that as well. Much obliged.

J


On Wed, 16 Feb 2005 14:55:19 -0400, Micha Schopman
[EMAIL PROTECTED] wrote:
 I did some refactoring for you :) while loops in javascript are quicker than 
 for loops.
 
 function Validator() {
 var myform = document.getElementById('SuggestionForm');
 var errMsg = ''
 var checkboxcounter = 0;
 
 if (myform.SuggestionText.value.length = 0){
   errMsg += '- Please explain your suggestion.\n\r'
 }
 
 if (myform.SuggestTitle.value.value.length = 0){
   errMsg += '- Your suggestion needs a title.\n\r'
 }
 
 var i=myform.Impact.length;while(i--){
   if(myform.Impact[i].checked){
 checkboxcounter++;
   }
 }
 
 if (errMsg.length  0) {
   alert(errMsg)
 }else{
  myform.submit()
 }
 
 

~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:195078
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: JavaScript Question

2005-02-03 Thread Charlie Griefer
just to get you started...

for (var i=0; idocument.formname.elements.length; i++) {
 alert(document.formname.elements[i].type);
 // based on the 'type' above, you can run various validations to
see if it's checked, selected, etc.
}



On Thu, 3 Feb 2005 12:13:23 -0500, Duane Boudreau [EMAIL PROTECTED] wrote:
 Is there a way, using JavaScript to get a list of objects on a page and then
 determine the object's type?
 
 I have a page that is dynamically created with a multiple input boxes and
 multiple select boxes. I am writing a JS validation script that loops thru
 all the fields and checks to see if the object is checked, selected or
 completed. Any ideas?
 
 Thanks,
 Duane
 
 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:192907
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Javascript question

2005-01-24 Thread Andrew Tyrone
 Can anyone tell me please what do question marks and colon 
 symbols signify in a javascript command? For example:
 
 F.value = S  0 ? ??  + F.value : (new Date(2000, 0, 1, 
 S[0], S[1])).USlocaltimeStr();
 
 My guess is that this is some kind of shorthand for an 
 if-then-else control structure, but I've never seen it 
 documented anywhere.

Your guess is right; it is analogous to IIF() in CFML.



~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:191556
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: JavaScript Question.

2004-08-16 Thread Lofback, Chris
Well, the original code would fail against a value between 0 and 0.01 (like 0.001) so I'd modify it like this:

 var reg = /([^0-9\.])/g;
 var str = $0.01;
 var myValue = parseFloat(str.replace(reg,))
 alert(myValue0.01);

Also, keep in mind that this will not catch invalid decimal amounts (like 3.1415, etc.)You'd need to get a bit more involved for that.I've written a _javascript_ 1.2 library that does these kinds of validations plus much more including JS versions of dozens of useful CF functions and it's fairly small (~20k).Let me know if you'd like a copy.

 
Chris

-Original Message-
From: Marlon Moyer [mailto:[EMAIL PROTECTED]
Sent: Friday, August 13, 2004 7:35 PM
To: CF-Talk
Subject: RE: _javascript_ Question.

put this into a function:

var reg = /([^0-9\.])/g;
var str = $0.01;
var myValue = parseFloat(str.replace(reg,))
alert(myValue0);

 -Original Message-
 From: Tangorre, Michael [mailto:[EMAIL PROTECTED]
 Sent: Friday, August 13, 2004 4:46 PM
 To: CF-Talk
 Subject: OT: _javascript_ Question.
 
 I have a money field that needs to be greater than $0.01. The field may
 or may not contain a dollar sign ($) and may or may not contain a
 period
 (.) as a dollar/cents split. When the form loads the default value is
 $0.00
 
 What would be the easiest way to verify the amount is greater than 1
 cent (0.01)... Using _javascript_ of course :-) ?
 
 Thanks!
 
 Mike
 
 
_
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: javascript question

2004-08-16 Thread Matthew Walker
So you need people to choose a different number in each select? But what if
they've set all 15, but then want to change one. All the other values would
be somehow disabled so you couldn't choose another value in the select box.

How about this: you can select a value that's already selected but if you do
then any other select boxes set to that value (therecould only be a maximum
of 1) become set to nothing and you have to reset them..?

_

From: Tony Weeg [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 17 August 2004 11:01 a.m.
To: CF-Talk
Subject: ot: _javascript_ question

hello good peoples...

i have a _javascript_ question, that really aims for a coupla things...

1. can this be done elegantly?
2. if not, then whats the best non-elegant way?
3. if so, a bit of a point in the right direction...i can READ
_javascript_, most of the time, and tell ya whats going on...however, i
SUCK, with a capital freakin' S at writing it...anyway, im sick of
bugging mike t. all the time with my _javascript_ questions...so i
figured i try here, and im sure he'll read this...but whatever, :)

anyway...

i have, lets say...

1. 15 select elements on a page.
2. each is named uniquely.
3. all are filled with 1-15 as the values (indexes 0-14)
4. if a user chooses, 14 in element 1 (index 0) i need to prevent them
from choosing 14 in ANY other element.

i (think) i can do it with something sort of LONG and VERY unelegant inline 
 (this.selectedIndex==0){2.something.Whatever};
onChange() event, but i think there has to be a BETTER way to do it.

id love to learn this, is there a place to get this kind of _javascript_
learning?ive picked up EVERY thing i can about a lot of web
programming languages, just cant crack the _javascript_ code...

help ??? :)

cheers.
-- 
tony

Tony Weeg
human.
email: tonyweeg [at] gmail [dot] com
blog: http://www.revolutionwebdesign.com/blog/

Check out http://www.antiwrap.com to send websites to your friends.

_
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: javascript question

2004-08-16 Thread Adrian Lynch
As an overview, in the onChange call a function that loops through all the
other selects and checks their selected values/indexes(which ever makes more
sense)

elements = new Array(
	getElementById('select_1'),
	getElementById('select_2'),
	getElementById('select_3'),
	getElementById('select_4'),
	...
	...
);

Then a function that you call with onChange of all those selects.

for () {
	if elements.selected index/value = the current selected index/value {
		alert(something);
	}
}

Hows about that?

Ade

-Original Message-
From: Tony Weeg [mailto:[EMAIL PROTECTED]
Sent: 17 August 2004 00:01
To: CF-Talk
Subject: ot: _javascript_ question

hello good peoples...

i have a _javascript_ question, that really aims for a coupla things...

1. can this be done elegantly?
2. if not, then whats the best non-elegant way?
3. if so, a bit of a point in the right direction...i can READ
_javascript_, most of the time, and tell ya whats going on...however, i
SUCK, with a capital freakin' S at writing it...anyway, im sick of
bugging mike t. all the time with my _javascript_ questions...so i
figured i try here, and im sure he'll read this...but whatever, :)

anyway...

i have, lets say...

1. 15 select elements on a page.
2. each is named uniquely.
3. all are filled with 1-15 as the values (indexes 0-14)
4. if a user chooses, 14 in element 1 (index 0) i need to prevent them
from choosing 14 in ANY other element.

i (think) i can do it with something sort of LONG and VERY unelegant inline
 (this.selectedIndex==0){2.something.Whatever};
onChange() event, but i think there has to be a BETTER way to do it.

id love to learn this, is there a place to get this kind of _javascript_
learning?ive picked up EVERY thing i can about a lot of web
programming languages, just cant crack the _javascript_ code...

help ??? :)

cheers.
--
tony

Tony Weeg
human.
email: tonyweeg [at] gmail [dot] com
blog: http://www.revolutionwebdesign.com/blog/

Check out http://www.antiwrap.com to send websites to your friends.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: javascript question

2004-08-16 Thread Tony Weeg
matt.

great idea...that makes sense since i have to allow them to swap.

now, coupled with adrian lynch's idea, will that work?

tw

On Tue, 17 Aug 2004 11:07:25 +1200, Matthew Walker
[EMAIL PROTECTED] wrote:
 So you need people to choose a different number in each select? But what if
 they've set all 15, but then want to change one. All the other values would
 be somehow disabled so you couldn't choose another value in the select box.
 
 How about this: you can select a value that's already selected but if you do
 then any other select boxes set to that value (therecould only be a maximum
 of 1) become set to nothing and you have to reset them..?
 
_
 
 From: Tony Weeg [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, 17 August 2004 11:01 a.m.
 To: CF-Talk
 Subject: ot: _javascript_ question
 
 hello good peoples...
 
 i have a _javascript_ question, that really aims for a coupla things...
 
 1. can this be done elegantly?
 2. if not, then whats the best non-elegant way?
 3. if so, a bit of a point in the right direction...i can READ
 _javascript_, most of the time, and tell ya whats going on...however, i
 SUCK, with a capital freakin' S at writing it...anyway, im sick of
 bugging mike t. all the time with my _javascript_ questions...so i
 figured i try here, and im sure he'll read this...but whatever, :)
 
 anyway...
 
 i have, lets say...
 
 1. 15 select elements on a page.
 2. each is named uniquely.
 3. all are filled with 1-15 as the values (indexes 0-14)
 4. if a user chooses, 14 in element 1 (index 0) i need to prevent them
 from choosing 14 in ANY other element.
 
 i (think) i can do it with something sort of LONG and VERY unelegant inline
  (this.selectedIndex==0){2.something.Whatever};
 onChange() event, but i think there has to be a BETTER way to do it.
 
 id love to learn this, is there a place to get this kind of _javascript_
 learning?ive picked up EVERY thing i can about a lot of web
 programming languages, just cant crack the _javascript_ code...
 
 help ??? :)
 
 cheers.
 --
 tony
 
 Tony Weeg
 human.
 email: tonyweeg [at] gmail [dot] com
 blog: http://www.revolutionwebdesign.com/blog/
 
 Check out http://www.antiwrap.com to send websites to your friends.
 
_
 

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: javascript question

2004-08-16 Thread Tony Weeg
adrian...

thank you, now, how can i marry that with matt's idea?

tw

On Tue, 17 Aug 2004 00:16:21 +0100, Adrian Lynch
[EMAIL PROTECTED] wrote:
 As an overview, in the onChange call a function that loops through all the
 other selects and checks their selected values/indexes(which ever makes more
 sense)
 
 elements = new Array(
getElementById('select_1'),
getElementById('select_2'),
getElementById('select_3'),
getElementById('select_4'),
...
...
 );
 
 Then a function that you call with onChange of all those selects.
 
 for () {
if elements.selected index/value = the current selected index/value {
 alert(something);
}
 }
 
 Hows about that?
 
 Ade
 
 -Original Message-
 From: Tony Weeg [mailto:[EMAIL PROTECTED]
 Sent: 17 August 2004 00:01
 To: CF-Talk
 Subject: ot: _javascript_ question
 
 hello good peoples...
 
 i have a _javascript_ question, that really aims for a coupla things...
 
 1. can this be done elegantly?
 2. if not, then whats the best non-elegant way?
 3. if so, a bit of a point in the right direction...i can READ
 _javascript_, most of the time, and tell ya whats going on...however, i
 SUCK, with a capital freakin' S at writing it...anyway, im sick of
 bugging mike t. all the time with my _javascript_ questions...so i
 figured i try here, and im sure he'll read this...but whatever, :)
 
 anyway...
 
 i have, lets say...
 
 1. 15 select elements on a page.
 2. each is named uniquely.
 3. all are filled with 1-15 as the values (indexes 0-14)
 4. if a user chooses, 14 in element 1 (index 0) i need to prevent them
 from choosing 14 in ANY other element.
 
 i (think) i can do it with something sort of LONG and VERY unelegant inline
  (this.selectedIndex==0){2.something.Whatever};
 onChange() event, but i think there has to be a BETTER way to do it.
 
 id love to learn this, is there a place to get this kind of _javascript_
 learning?ive picked up EVERY thing i can about a lot of web
 programming languages, just cant crack the _javascript_ code...
 
 help ??? :)
 
 cheers.
 --
 tony
 
 Tony Weeg
 human.
 email: tonyweeg [at] gmail [dot] com
 blog: http://www.revolutionwebdesign.com/blog/
 
 Check out http://www.antiwrap.com to send websites to your friends.
 
 

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: javascript question

2004-08-16 Thread Adrian Lynch
Here's a question for ya. Is this for some sort of ordering? Do you need to
order 15 things, hence the need to make sure all fifteen are different?

Ade

-Original Message-
From: Tony Weeg [mailto:[EMAIL PROTECTED]
Sent: 17 August 2004 00:21
To: CF-Talk
Subject: Re: _javascript_ question

matt.

great idea...that makes sense since i have to allow them to swap.

now, coupled with adrian lynch's idea, will that work?

tw

On Tue, 17 Aug 2004 11:07:25 +1200, Matthew Walker
[EMAIL PROTECTED] wrote:
 So you need people to choose a different number in each select? But what
if
 they've set all 15, but then want to change one. All the other values
would
 be somehow disabled so you couldn't choose another value in the select
box.

 How about this: you can select a value that's already selected but if you
do
 then any other select boxes set to that value (therecould only be a
maximum
 of 1) become set to nothing and you have to reset them..?

_

 From: Tony Weeg [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, 17 August 2004 11:01 a.m.
 To: CF-Talk
 Subject: ot: _javascript_ question

 hello good peoples...

 i have a _javascript_ question, that really aims for a coupla things...

 1. can this be done elegantly?
 2. if not, then whats the best non-elegant way?
 3. if so, a bit of a point in the right direction...i can READ
 _javascript_, most of the time, and tell ya whats going on...however, i
 SUCK, with a capital freakin' S at writing it...anyway, im sick of
 bugging mike t. all the time with my _javascript_ questions...so i
 figured i try here, and im sure he'll read this...but whatever, :)

 anyway...

 i have, lets say...

 1. 15 select elements on a page.
 2. each is named uniquely.
 3. all are filled with 1-15 as the values (indexes 0-14)
 4. if a user chooses, 14 in element 1 (index 0) i need to prevent them
 from choosing 14 in ANY other element.

 i (think) i can do it with something sort of LONG and VERY unelegant
inline
  (this.selectedIndex==0){2.something.Whatever};
 onChange() event, but i think there has to be a BETTER way to do it.

 id love to learn this, is there a place to get this kind of _javascript_
 learning?ive picked up EVERY thing i can about a lot of web
 programming languages, just cant crack the _javascript_ code...

 help ??? :)

 cheers.
 --
 tony

 Tony Weeg
 human.
 email: tonyweeg [at] gmail [dot] com
 blog: http://www.revolutionwebdesign.com/blog/

 Check out http://www.antiwrap.com to send websites to your friends.

_


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: javascript question

2004-08-16 Thread Matthew Walker
Yeah I think so. Instead of an alert you just change the selectedIndex to 0
( getElementById('select_4').selectedIndex = 0 ). But you'd have to have the
first option in the select box a null value, i.e.

option value=gt; choose lt;/value

Or something like that.

_

From: Tony Weeg [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 17 August 2004 11:21 a.m.
To: CF-Talk
Subject: Re: _javascript_ question

matt.

great idea...that makes sense since i have to allow them to swap.

now, coupled with adrian lynch's idea, will that work?

tw

On Tue, 17 Aug 2004 11:07:25 +1200, Matthew Walker
[EMAIL PROTECTED] wrote:
 So you need people to choose a different number in each select? But what
if
 they've set all 15, but then want to change one. All the other values
would
 be somehow disabled so you couldn't choose another value in the select
box.
 
 How about this: you can select a value that's already selected but if you
do
 then any other select boxes set to that value (therecould only be a
maximum
 of 1) become set to nothing and you have to reset them..?
 
_
 
 From: Tony Weeg [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, 17 August 2004 11:01 a.m.
 To: CF-Talk
 Subject: ot: _javascript_ question
 
 hello good peoples...
 
 i have a _javascript_ question, that really aims for a coupla things...
 
 1. can this be done elegantly?
 2. if not, then whats the best non-elegant way?
 3. if so, a bit of a point in the right direction...i can READ
 _javascript_, most of the time, and tell ya whats going on...however, i
 SUCK, with a capital freakin' S at writing it...anyway, im sick of
 bugging mike t. all the time with my _javascript_ questions...so i
 figured i try here, and im sure he'll read this...but whatever, :)
 
 anyway...
 
 i have, lets say...
 
 1. 15 select elements on a page.
 2. each is named uniquely.
 3. all are filled with 1-15 as the values (indexes 0-14)
 4. if a user chooses, 14 in element 1 (index 0) i need to prevent them
 from choosing 14 in ANY other element.
 
 i (think) i can do it with something sort of LONG and VERY unelegant
inline
  (this.selectedIndex==0){2.something.Whatever};
 onChange() event, but i think there has to be a BETTER way to do it.
 
 id love to learn this, is there a place to get this kind of _javascript_
 learning?ive picked up EVERY thing i can about a lot of web
 programming languages, just cant crack the _javascript_ code...
 
 help ??? :)
 
 cheers.
 --
 tony
 
 Tony Weeg
 human.
 email: tonyweeg [at] gmail [dot] com
 blog: http://www.revolutionwebdesign.com/blog/
 
 Check out http://www.antiwrap.com to send websites to your friends.
 
_
 


_
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: javascript question

2004-08-16 Thread Adrian Lynch
Yup, sorry, my code wasn't too hot.

// Get references to the selects
elements = new Array(
	getElementById('select_1'),
	getElementById('select_2'),
	getElementById('select_3'),
	getElementById('select_4'),
	...
	...
);

function myOnChange() {

	for (...) {
		if ( elements[i].options[elements[i].selectedIndex].value ==
this.options[this.selectedIndex].value ) {
			elements[i].selectedIndex = 0; // Set the other select back to the top
option
		}
	}

}

Didn't test that, does it work?

Ade

-Original Message-
From: Tony Weeg [mailto:[EMAIL PROTECTED]
Sent: 17 August 2004 00:22
To: CF-Talk
Subject: Re: _javascript_ question

adrian...

thank you, now, how can i marry that with matt's idea?

tw

On Tue, 17 Aug 2004 00:16:21 +0100, Adrian Lynch
[EMAIL PROTECTED] wrote:
 As an overview, in the onChange call a function that loops through all the
 other selects and checks their selected values/indexes(which ever makes
more
 sense)

 elements = new Array(
getElementById('select_1'),
getElementById('select_2'),
getElementById('select_3'),
getElementById('select_4'),
...
...
 );

 Then a function that you call with onChange of all those selects.

 for () {
if elements.selected index/value = the current selected index/value
{
 alert(something);
}
 }

 Hows about that?

 Ade

 -Original Message-
 From: Tony Weeg [mailto:[EMAIL PROTECTED]
 Sent: 17 August 2004 00:01
 To: CF-Talk
 Subject: ot: _javascript_ question

 hello good peoples...

 i have a _javascript_ question, that really aims for a coupla things...

 1. can this be done elegantly?
 2. if not, then whats the best non-elegant way?
 3. if so, a bit of a point in the right direction...i can READ
 _javascript_, most of the time, and tell ya whats going on...however, i
 SUCK, with a capital freakin' S at writing it...anyway, im sick of
 bugging mike t. all the time with my _javascript_ questions...so i
 figured i try here, and im sure he'll read this...but whatever, :)

 anyway...

 i have, lets say...

 1. 15 select elements on a page.
 2. each is named uniquely.
 3. all are filled with 1-15 as the values (indexes 0-14)
 4. if a user chooses, 14 in element 1 (index 0) i need to prevent them
 from choosing 14 in ANY other element.

 i (think) i can do it with something sort of LONG and VERY unelegant
inline
  (this.selectedIndex==0){2.something.Whatever};
 onChange() event, but i think there has to be a BETTER way to do it.

 id love to learn this, is there a place to get this kind of _javascript_
 learning?ive picked up EVERY thing i can about a lot of web
 programming languages, just cant crack the _javascript_ code...

 help ??? :)

 cheers.
 --
 tony

 Tony Weeg
 human.
 email: tonyweeg [at] gmail [dot] com
 blog: http://www.revolutionwebdesign.com/blog/

 Check out http://www.antiwrap.com to send websites to your friends.



 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: javascript question

2004-08-16 Thread Matthew Walker
Third example down may be of interest

http://www.mattkruse.com/_javascript_/selectbox/ 

_

From: Adrian Lynch [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 17 August 2004 11:30 a.m.
To: CF-Talk
Subject: RE: _javascript_ question

Here's a question for ya. Is this for some sort of ordering? Do you need to
order 15 things, hence the need to make sure all fifteen are different?

Ade

-Original Message-
From: Tony Weeg [mailto:[EMAIL PROTECTED]
Sent: 17 August 2004 00:21
To: CF-Talk
Subject: Re: _javascript_ question

matt.

great idea...that makes sense since i have to allow them to swap.

now, coupled with adrian lynch's idea, will that work?

tw

On Tue, 17 Aug 2004 11:07:25 +1200, Matthew Walker
[EMAIL PROTECTED] wrote:
 So you need people to choose a different number in each select? But what
if
 they've set all 15, but then want to change one. All the other values
would
 be somehow disabled so you couldn't choose another value in the select
box.

 How about this: you can select a value that's already selected but if you
do
 then any other select boxes set to that value (therecould only be a
maximum
 of 1) become set to nothing and you have to reset them..?

_

 From: Tony Weeg [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, 17 August 2004 11:01 a.m.
 To: CF-Talk
 Subject: ot: _javascript_ question

 hello good peoples...

 i have a _javascript_ question, that really aims for a coupla things...

 1. can this be done elegantly?
 2. if not, then whats the best non-elegant way?
 3. if so, a bit of a point in the right direction...i can READ
 _javascript_, most of the time, and tell ya whats going on...however, i
 SUCK, with a capital freakin' S at writing it...anyway, im sick of
 bugging mike t. all the time with my _javascript_ questions...so i
 figured i try here, and im sure he'll read this...but whatever, :)

 anyway...

 i have, lets say...

 1. 15 select elements on a page.
 2. each is named uniquely.
 3. all are filled with 1-15 as the values (indexes 0-14)
 4. if a user chooses, 14 in element 1 (index 0) i need to prevent them
 from choosing 14 in ANY other element.

 i (think) i can do it with something sort of LONG and VERY unelegant
inline
  (this.selectedIndex==0){2.something.Whatever};
 onChange() event, but i think there has to be a BETTER way to do it.

 id love to learn this, is there a place to get this kind of _javascript_
 learning?ive picked up EVERY thing i can about a lot of web
 programming languages, just cant crack the _javascript_ code...

 help ??? :)

 cheers.
 --
 tony

 Tony Weeg
 human.
 email: tonyweeg [at] gmail [dot] com
 blog: http://www.revolutionwebdesign.com/blog/

 Check out http://www.antiwrap.com to send websites to your friends.

_



_
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: javascript question

2004-08-16 Thread Tony Weeg
its for a football pool that im building, and if there are 15 games in
a weekend you can only assign 1-15, well 15 times :)make sense?its
almost football season (well..american football season) and this is
for our pool, im building a site to manage it now...

tw


On Tue, 17 Aug 2004 00:30:00 +0100, Adrian Lynch
[EMAIL PROTECTED] wrote:
 Here's a question for ya. Is this for some sort of ordering? Do you need to
 order 15 things, hence the need to make sure all fifteen are different?
 
 Ade
 
 -Original Message-
 From: Tony Weeg [mailto:[EMAIL PROTECTED]
 Sent: 17 August 2004 00:21
 To: CF-Talk
 Subject: Re: _javascript_ question
 
 matt.
 
 great idea...that makes sense since i have to allow them to swap.
 
 now, coupled with adrian lynch's idea, will that work?
 
 tw
 
 On Tue, 17 Aug 2004 11:07:25 +1200, Matthew Walker
 [EMAIL PROTECTED] wrote:
  So you need people to choose a different number in each select? But what
 if
  they've set all 15, but then want to change one. All the other values
 would
  be somehow disabled so you couldn't choose another value in the select
 box.
 
  How about this: you can select a value that's already selected but if you
 do
  then any other select boxes set to that value (therecould only be a
 maximum
  of 1) become set to nothing and you have to reset them..?
 
 _
 
  From: Tony Weeg [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, 17 August 2004 11:01 a.m.
  To: CF-Talk
  Subject: ot: _javascript_ question
 
  hello good peoples...
 
  i have a _javascript_ question, that really aims for a coupla things...
 
  1. can this be done elegantly?
  2. if not, then whats the best non-elegant way?
  3. if so, a bit of a point in the right direction...i can READ
  _javascript_, most of the time, and tell ya whats going on...however, i
  SUCK, with a capital freakin' S at writing it...anyway, im sick of
  bugging mike t. all the time with my _javascript_ questions...so i
  figured i try here, and im sure he'll read this...but whatever, :)
 
  anyway...
 
  i have, lets say...
 
  1. 15 select elements on a page.
  2. each is named uniquely.
  3. all are filled with 1-15 as the values (indexes 0-14)
  4. if a user chooses, 14 in element 1 (index 0) i need to prevent them
  from choosing 14 in ANY other element.
 
  i (think) i can do it with something sort of LONG and VERY unelegant
 inline
   (this.selectedIndex==0){2.something.Whatever};
  onChange() event, but i think there has to be a BETTER way to do it.
 
  id love to learn this, is there a place to get this kind of _javascript_
  learning?ive picked up EVERY thing i can about a lot of web
  programming languages, just cant crack the _javascript_ code...
 
  help ??? :)
 
  cheers.
  --
  tony
 
  Tony Weeg
  human.
  email: tonyweeg [at] gmail [dot] com
  blog: http://www.revolutionwebdesign.com/blog/
 
  Check out http://www.antiwrap.com to send websites to your friends.
 
 _
 
 
 

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: javascript question

2004-08-16 Thread Adrian Lynch
Yup, sorry, my code wasn't too hot.

// Get references to the selects
elements = new Array(
	getElementById('select_1'),
	getElementById('select_2'),
	getElementById('select_3'),
	getElementById('select_4'),
	...
	...
);

function myOnChange() {

	for (...) {
		if ( elements[i].options[elements[i].selectedIndex].value ==
this.options[this.selectedIndex].value ) {
			elements[i].selectedIndex = 0; // Set the other select back to the top
option
		}
	}

}

Didn't test that, does it work?

Ade

-Original Message-
From: Tony Weeg [mailto:[EMAIL PROTECTED]
Sent: 17 August 2004 00:22
To: CF-Talk
Subject: Re: _javascript_ question

adrian...

thank you, now, how can i marry that with matt's idea?

tw
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: javascript question

2004-08-16 Thread Adrian Lynch
Yup, I've used something like those. Nice and easy to use.

Or how about a nice drag and drop flash movie, not as hard as you'd think
:OD

Ade

-Original Message-
From: Matthew Walker [mailto:[EMAIL PROTECTED]
Sent: 17 August 2004 00:30
To: CF-Talk
Subject: RE: _javascript_ question

Third example down may be of interest

http://www.mattkruse.com/_javascript_/selectbox/

_

From: Adrian Lynch [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 17 August 2004 11:30 a.m.
To: CF-Talk
Subject: RE: _javascript_ question

Here's a question for ya. Is this for some sort of ordering? Do you need to
order 15 things, hence the need to make sure all fifteen are different?

Ade

-Original Message-
From: Tony Weeg [mailto:[EMAIL PROTECTED]
Sent: 17 August 2004 00:21
To: CF-Talk
Subject: Re: _javascript_ question

matt.

great idea...that makes sense since i have to allow them to swap.

now, coupled with adrian lynch's idea, will that work?

tw

On Tue, 17 Aug 2004 11:07:25 +1200, Matthew Walker
[EMAIL PROTECTED] wrote:
 So you need people to choose a different number in each select? But what
if
 they've set all 15, but then want to change one. All the other values
would
 be somehow disabled so you couldn't choose another value in the select
box.

 How about this: you can select a value that's already selected but if you
do
 then any other select boxes set to that value (therecould only be a
maximum
 of 1) become set to nothing and you have to reset them..?

_

 From: Tony Weeg [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, 17 August 2004 11:01 a.m.
 To: CF-Talk
 Subject: ot: _javascript_ question

 hello good peoples...

 i have a _javascript_ question, that really aims for a coupla things...

 1. can this be done elegantly?
 2. if not, then whats the best non-elegant way?
 3. if so, a bit of a point in the right direction...i can READ
 _javascript_, most of the time, and tell ya whats going on...however, i
 SUCK, with a capital freakin' S at writing it...anyway, im sick of
 bugging mike t. all the time with my _javascript_ questions...so i
 figured i try here, and im sure he'll read this...but whatever, :)

 anyway...

 i have, lets say...

 1. 15 select elements on a page.
 2. each is named uniquely.
 3. all are filled with 1-15 as the values (indexes 0-14)
 4. if a user chooses, 14 in element 1 (index 0) i need to prevent them
 from choosing 14 in ANY other element.

 i (think) i can do it with something sort of LONG and VERY unelegant
inline
  (this.selectedIndex==0){2.something.Whatever};
 onChange() event, but i think there has to be a BETTER way to do it.

 id love to learn this, is there a place to get this kind of _javascript_
 learning?ive picked up EVERY thing i can about a lot of web
 programming languages, just cant crack the _javascript_ code...

 help ??? :)

 cheers.
 --
 tony

 Tony Weeg
 human.
 email: tonyweeg [at] gmail [dot] com
 blog: http://www.revolutionwebdesign.com/blog/

 Check out http://www.antiwrap.com to send websites to your friends.

_



_
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: javascript question

2004-08-16 Thread Tony Weeg
not 15 times, but one number 1-15 each.

game 1 point value 15
game 2 point value 12
game 3 point value 11

etc..

until all are used...

ive got EVERYTHING done on the site, except you can pick a value more
than once, and that aint good...people wont pay attention to what
they've used, and it will take them time to figure out which numbers
they have used...so im trying to help that experience.i currently
flag duplicates on a refresh of the page so they know what to
fix...jsut would be easier if it told them

make sense?

tw

On Mon, 16 Aug 2004 19:36:13 -0400, Tony Weeg [EMAIL PROTECTED] wrote:
 its for a football pool that im building, and if there are 15 games in
 a weekend you can only assign 1-15, well 15 times :)make sense?its
 almost football season (well..american football season) and this is
 for our pool, im building a site to manage it now...
 
 tw
 
 
 
 
 On Tue, 17 Aug 2004 00:30:00 +0100, Adrian Lynch
 [EMAIL PROTECTED] wrote:
  Here's a question for ya. Is this for some sort of ordering? Do you need to
  order 15 things, hence the need to make sure all fifteen are different?
 
  Ade
 
  -Original Message-
  From: Tony Weeg [mailto:[EMAIL PROTECTED]
  Sent: 17 August 2004 00:21
  To: CF-Talk
  Subject: Re: _javascript_ question
 
  matt.
 
  great idea...that makes sense since i have to allow them to swap.
 
  now, coupled with adrian lynch's idea, will that work?
 
  tw
 
  On Tue, 17 Aug 2004 11:07:25 +1200, Matthew Walker
  [EMAIL PROTECTED] wrote:
   So you need people to choose a different number in each select? But what
  if
   they've set all 15, but then want to change one. All the other values
  would
   be somehow disabled so you couldn't choose another value in the select
  box.
  
   How about this: you can select a value that's already selected but if you
  do
   then any other select boxes set to that value (therecould only be a
  maximum
   of 1) become set to nothing and you have to reset them..?
  
  _
  
   From: Tony Weeg [mailto:[EMAIL PROTECTED]
   Sent: Tuesday, 17 August 2004 11:01 a.m.
   To: CF-Talk
   Subject: ot: _javascript_ question
  
   hello good peoples...
  
   i have a _javascript_ question, that really aims for a coupla things...
  
   1. can this be done elegantly?
   2. if not, then whats the best non-elegant way?
   3. if so, a bit of a point in the right direction...i can READ
   _javascript_, most of the time, and tell ya whats going on...however, i
   SUCK, with a capital freakin' S at writing it...anyway, im sick of
   bugging mike t. all the time with my _javascript_ questions...so i
   figured i try here, and im sure he'll read this...but whatever, :)
  
   anyway...
  
   i have, lets say...
  
   1. 15 select elements on a page.
   2. each is named uniquely.
   3. all are filled with 1-15 as the values (indexes 0-14)
   4. if a user chooses, 14 in element 1 (index 0) i need to prevent them
   from choosing 14 in ANY other element.
  
   i (think) i can do it with something sort of LONG and VERY unelegant
  inline
(this.selectedIndex==0){2.something.Whatever};
   onChange() event, but i think there has to be a BETTER way to do it.
  
   id love to learn this, is there a place to get this kind of _javascript_
   learning?ive picked up EVERY thing i can about a lot of web
   programming languages, just cant crack the _javascript_ code...
  
   help ??? :)
  
   cheers.
   --
   tony
  
   Tony Weeg
   human.
   email: tonyweeg [at] gmail [dot] com
   blog: http://www.revolutionwebdesign.com/blog/
  
   Check out http://www.antiwrap.com to send websites to your friends.
  
  _
  
  
 
 
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: javascript question

2004-08-16 Thread Tony Weeg
its lookiung like it makes sense!!! good.

ok, the for (...) { part needs to know how many too loop through, right?

ok, how the heck can cf tell the _javascript_, how many times to loop,
that variable
will be available in a cfquery.recordCount, which is, i supps how ill
build the elements array()

right?

tw

On Tue, 17 Aug 2004 00:36:12 +0100, Adrian Lynch
[EMAIL PROTECTED] wrote:
 Yup, sorry, my code wasn't too hot.
 
 // Get references to the selects
 elements = new Array(
getElementById('select_1'),
getElementById('select_2'),
getElementById('select_3'),
getElementById('select_4'),
...
...
 );
 
 function myOnChange() {
 
for (...) {
 if ( elements[i].options[elements[i].selectedIndex].value ==
 this.options[this.selectedIndex].value ) {
elements[i].selectedIndex = 0; // Set the other select back to the top
 option
 }
}
 
 }
 
 Didn't test that, does it work?
 
 Ade
 
 -Original Message-
 From: Tony Weeg [mailto:[EMAIL PROTECTED]
 Sent: 17 August 2004 00:22
 To: CF-Talk
 Subject: Re: _javascript_ question
 
 adrian...
 
 thank you, now, how can i marry that with matt's idea?
 
 tw
 
 On Tue, 17 Aug 2004 00:16:21 +0100, Adrian Lynch
 [EMAIL PROTECTED] wrote:
  As an overview, in the onChange call a function that loops through all the
  other selects and checks their selected values/indexes(which ever makes
 more
  sense)
 
  elements = new Array(
 getElementById('select_1'),
 getElementById('select_2'),
 getElementById('select_3'),
 getElementById('select_4'),
 ...
 ...
  );
 
  Then a function that you call with onChange of all those selects.
 
  for () {
 if elements.selected index/value = the current selected index/value
 {
  alert(something);
 }
  }
 
  Hows about that?
 
  Ade
 
  -Original Message-
  From: Tony Weeg [mailto:[EMAIL PROTECTED]
  Sent: 17 August 2004 00:01
  To: CF-Talk
  Subject: ot: _javascript_ question
 
  hello good peoples...
 
  i have a _javascript_ question, that really aims for a coupla things...
 
  1. can this be done elegantly?
  2. if not, then whats the best non-elegant way?
  3. if so, a bit of a point in the right direction...i can READ
  _javascript_, most of the time, and tell ya whats going on...however, i
  SUCK, with a capital freakin' S at writing it...anyway, im sick of
  bugging mike t. all the time with my _javascript_ questions...so i
  figured i try here, and im sure he'll read this...but whatever, :)
 
  anyway...
 
  i have, lets say...
 
  1. 15 select elements on a page.
  2. each is named uniquely.
  3. all are filled with 1-15 as the values (indexes 0-14)
  4. if a user chooses, 14 in element 1 (index 0) i need to prevent them
  from choosing 14 in ANY other element.
 
  i (think) i can do it with something sort of LONG and VERY unelegant
 inline
   (this.selectedIndex==0){2.something.Whatever};
  onChange() event, but i think there has to be a BETTER way to do it.
 
  id love to learn this, is there a place to get this kind of _javascript_
  learning?ive picked up EVERY thing i can about a lot of web
  programming languages, just cant crack the _javascript_ code...
 
  help ??? :)
 
  cheers.
  --
  tony
 
  Tony Weeg
  human.
  email: tonyweeg [at] gmail [dot] com
  blog: http://www.revolutionwebdesign.com/blog/
 
  Check out http://www.antiwrap.com to send websites to your friends.
 
 
 
 

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: javascript question

2004-08-16 Thread Adrian Lynch
Ermmm, yup, I think. You can dynamically build the elements array and either
do...

	for ( var i = 0; i  elements.length ;++ ) {...}

... or...

	for ( var i = 0; i  #query.RecordCount# ;++ ) {...}

I'd go for the first one because I'm not keen on mixing CF and JS, but the
second might be faster.

Ade

Can we be in this pool when it's done? :OD

-Original Message-
From: Tony Weeg [mailto:[EMAIL PROTECTED]
Sent: 17 August 2004 00:42
To: CF-Talk
Subject: Re: _javascript_ question

its lookiung like it makes sense!!! good.

ok, the for (...) { part needs to know how many too loop through, right?

ok, how the heck can cf tell the _javascript_, how many times to loop,
that variable
will be available in a cfquery.recordCount, which is, i supps how ill
build the elements array()

right?

tw

On Tue, 17 Aug 2004 00:36:12 +0100, Adrian Lynch
[EMAIL PROTECTED] wrote:
 Yup, sorry, my code wasn't too hot.

 // Get references to the selects
 elements = new Array(
getElementById('select_1'),
getElementById('select_2'),
getElementById('select_3'),
getElementById('select_4'),
...
...
 );

 function myOnChange() {

for (...) {
 if ( elements[i].options[elements[i].selectedIndex].value
==
 this.options[this.selectedIndex].value ) {
elements[i].selectedIndex = 0; // Set the other
select back to the top
 option
 }
}

 }

 Didn't test that, does it work?

 Ade

 -Original Message-
 From: Tony Weeg [mailto:[EMAIL PROTECTED]
 Sent: 17 August 2004 00:22
 To: CF-Talk
 Subject: Re: _javascript_ question

 adrian...

 thank you, now, how can i marry that with matt's idea?

 tw

 On Tue, 17 Aug 2004 00:16:21 +0100, Adrian Lynch
 [EMAIL PROTECTED] wrote:
  As an overview, in the onChange call a function that loops through all
the
  other selects and checks their selected values/indexes(which ever makes
 more
  sense)
 
  elements = new Array(
 getElementById('select_1'),
 getElementById('select_2'),
 getElementById('select_3'),
 getElementById('select_4'),
 ...
 ...
  );
 
  Then a function that you call with onChange of all those selects.
 
  for () {
 if elements.selected index/value = the current selected
index/value
 {
  alert(something);
 }
  }
 
  Hows about that?
 
  Ade
 
  -Original Message-
  From: Tony Weeg [mailto:[EMAIL PROTECTED]
  Sent: 17 August 2004 00:01
  To: CF-Talk
  Subject: ot: _javascript_ question
 
  hello good peoples...
 
  i have a _javascript_ question, that really aims for a coupla things...
 
  1. can this be done elegantly?
  2. if not, then whats the best non-elegant way?
  3. if so, a bit of a point in the right direction...i can READ
  _javascript_, most of the time, and tell ya whats going on...however, i
  SUCK, with a capital freakin' S at writing it...anyway, im sick of
  bugging mike t. all the time with my _javascript_ questions...so i
  figured i try here, and im sure he'll read this...but whatever, :)
 
  anyway...
 
  i have, lets say...
 
  1. 15 select elements on a page.
  2. each is named uniquely.
  3. all are filled with 1-15 as the values (indexes 0-14)
  4. if a user chooses, 14 in element 1 (index 0) i need to prevent them
  from choosing 14 in ANY other element.
 
  i (think) i can do it with something sort of LONG and VERY unelegant
 inline
   (this.selectedIndex==0){2.something.Whatever};
  onChange() event, but i think there has to be a BETTER way to do it.
 
  id love to learn this, is there a place to get this kind of _javascript_
  learning?ive picked up EVERY thing i can about a lot of web
  programming languages, just cant crack the _javascript_ code...
 
  help ??? :)
 
  cheers.
  --
  tony
 
  Tony Weeg
  human.
  email: tonyweeg [at] gmail [dot] com
  blog: http://www.revolutionwebdesign.com/blog/
 
  Check out http://www.antiwrap.com to send websites to your friends.
 
 
 


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: javascript question

2004-08-16 Thread Charlie Griefer
somebody was asking today about some old code I wrote...i think it's 
what you're looking for too:

http://charlie.griefer.com/code/js/megan.html

Just replace pizza, beer, playboy channel, etc with football teams :)

Adrian Lynch wrote:

Ermmm, yup, I think. You can dynamically build the elements array and either
do...

	for ( var i = 0; i  elements.length ;++ ) {...}

... or...

	for ( var i = 0; i  #query.RecordCount# ;++ ) {...}

I'd go for the first one because I'm not keen on mixing CF and JS, but the
second might be faster.

Ade

Can we be in this pool when it's done? :OD

-Original Message-
From: Tony Weeg [mailto:[EMAIL PROTECTED]
Sent: 17 August 2004 00:42
To: CF-Talk
Subject: Re: _javascript_ question


its lookiung like it makes sense!!! good.

ok, the for (...) { part needs to know how many too loop through, right?

ok, how the heck can cf tell the _javascript_, how many times to loop,
that variable
will be available in a cfquery.recordCount, which is, i supps how ill
build the elements array()

right?

tw

On Tue, 17 Aug 2004 00:36:12 +0100, Adrian Lynch
[EMAIL PROTECTED] wrote:


Yup, sorry, my code wasn't too hot.

// Get references to the selects
elements = new Array(
 getElementById('select_1'),
 getElementById('select_2'),
 getElementById('select_3'),
 getElementById('select_4'),
 ...
 ...
);

function myOnChange() {

 for (...) {
if ( elements[i].options[elements[i].selectedIndex].value
 

==


this.options[this.selectedIndex].value ) {
elements[i].selectedIndex = 0; // Set the other
 

select back to the top


option
}
 }

}

Didn't test that, does it work?

Ade

-Original Message-
From: Tony Weeg [mailto:[EMAIL PROTECTED]
Sent: 17 August 2004 00:22
To: CF-Talk
Subject: Re: _javascript_ question

adrian...

thank you, now, how can i marry that with matt's idea?

tw

On Tue, 17 Aug 2004 00:16:21 +0100, Adrian Lynch
[EMAIL PROTECTED] wrote:
 

As an overview, in the onChange call a function that loops through all


the


other selects and checks their selected values/indexes(which ever makes


more
 

sense)

elements = new Array(
 getElementById('select_1'),
 getElementById('select_2'),
 getElementById('select_3'),
 getElementById('select_4'),
 ...
 ...
);

Then a function that you call with onChange of all those selects.

for () {
 if elements.selected index/value = the current selected


index/value


{
 

alert(something);
 }
}

Hows about that?

Ade

-Original Message-
From: Tony Weeg [mailto:[EMAIL PROTECTED]
Sent: 17 August 2004 00:01
To: CF-Talk
Subject: ot: _javascript_ question

hello good peoples...

i have a _javascript_ question, that really aims for a coupla things...

1. can this be done elegantly?
2. if not, then whats the best non-elegant way?
3. if so, a bit of a point in the right direction...i can READ
_javascript_, most of the time, and tell ya whats going on...however, i
SUCK, with a capital freakin' S at writing it...anyway, im sick of
bugging mike t. all the time with my _javascript_ questions...so i
figured i try here, and im sure he'll read this...but whatever, :)

anyway...

i have, lets say...

1. 15 select elements on a page.
2. each is named uniquely.
3. all are filled with 1-15 as the values (indexes 0-14)
4. if a user chooses, 14 in element 1 (index 0) i need to prevent them
from choosing 14 in ANY other element.

i (think) i can do it with something sort of LONG and VERY unelegant


inline
 

 (this.selectedIndex==0){2.something.Whatever};
onChange() event, but i think there has to be a BETTER way to do it.

id love to learn this, is there a place to get this kind of _javascript_
learning?ive picked up EVERY thing i can about a lot of web
programming languages, just cant crack the _javascript_ code...

help ??? :)

cheers.
--
tony

Tony Weeg
human.
email: tonyweeg [at] gmail [dot] com
blog: http://www.revolutionwebdesign.com/blog/

Check out http://www.antiwrap.com to send websites to your friends.





 





 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: javascript question

2004-08-16 Thread Adrian Lynch
Just replace pizza, beer, playboy channel, etc with football teams

why would you ever do that!?!? :OD

-Original Message-
From: Charlie Griefer [mailto:[EMAIL PROTECTED]
Sent: 17 August 2004 00:57
To: CF-Talk
Subject: Re: _javascript_ question

somebody was asking today about some old code I wrote...i think it's 
what you're looking for too:

http://charlie.griefer.com/code/js/megan.html

Just replace pizza, beer, playboy channel, etc with football teams :)
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: javascript question

2004-08-16 Thread Tony Weeg
charlie...

like they always say...if you had t*ts id kiss ya!

thanks. perfect.no need to make it any easier!

wow, perfect, and it REPLACES the value with the other VALUE, PERFECT

later.

On Mon, 16 Aug 2004 16:56:58 -0700, Charlie Griefer [EMAIL PROTECTED] wrote:
 somebody was asking today about some old code I wrote...i think it's
 what you're looking for too:
 
 http://charlie.griefer.com/code/js/megan.html
 
 Just replace pizza, beer, playboy channel, etc with football teams :)
 
 
 Adrian Lynch wrote:
 
 Ermmm, yup, I think. You can dynamically build the elements array and either
 do...
 
  for ( var i = 0; i  elements.length ;++ ) {...}
 
 ... or...
 
  for ( var i = 0; i  #query.RecordCount# ;++ ) {...}
 
 I'd go for the first one because I'm not keen on mixing CF and JS, but the
 second might be faster.
 
 Ade
 
 Can we be in this pool when it's done? :OD
 
 -Original Message-
 From: Tony Weeg [mailto:[EMAIL PROTECTED]
 Sent: 17 August 2004 00:42
 To: CF-Talk
 Subject: Re: _javascript_ question
 
 
 its lookiung like it makes sense!!! good.
 
 ok, the for (...) { part needs to know how many too loop through, right?
 
 ok, how the heck can cf tell the _javascript_, how many times to loop,
 that variable
 will be available in a cfquery.recordCount, which is, i supps how ill
 build the elements array()
 
 right?
 
 tw
 
 On Tue, 17 Aug 2004 00:36:12 +0100, Adrian Lynch
 [EMAIL PROTECTED] wrote:
 
 
 Yup, sorry, my code wasn't too hot.
 
 // Get references to the selects
 elements = new Array(
  getElementById('select_1'),
  getElementById('select_2'),
  getElementById('select_3'),
  getElementById('select_4'),
  ...
  ...
 );
 
 function myOnChange() {
 
  for (...) {
 if ( elements[i].options[elements[i].selectedIndex].value
 
 
 ==
 
 
 this.options[this.selectedIndex].value ) {
 elements[i].selectedIndex = 0; // Set the other
 
 
 select back to the top
 
 
 option
 }
  }
 
 }
 
 Didn't test that, does it work?
 
 Ade
 
 -Original Message-
 From: Tony Weeg [mailto:[EMAIL PROTECTED]
 Sent: 17 August 2004 00:22
 To: CF-Talk
 Subject: Re: _javascript_ question
 
 adrian...
 
 thank you, now, how can i marry that with matt's idea?
 
 tw
 
 On Tue, 17 Aug 2004 00:16:21 +0100, Adrian Lynch
 [EMAIL PROTECTED] wrote:
 
 
 As an overview, in the onChange call a function that loops through all
 
 
 the
 
 
 other selects and checks their selected values/indexes(which ever makes
 
 
 more
 
 
 sense)
 
 elements = new Array(
  getElementById('select_1'),
  getElementById('select_2'),
  getElementById('select_3'),
  getElementById('select_4'),
  ...
  ...
 );
 
 Then a function that you call with onChange of all those selects.
 
 for () {
  if elements.selected index/value = the current selected
 
 
 index/value
 
 
 {
 
 
 alert(something);
  }
 }
 
 Hows about that?
 
 Ade
 
 -Original Message-
 From: Tony Weeg [mailto:[EMAIL PROTECTED]
 Sent: 17 August 2004 00:01
 To: CF-Talk
 Subject: ot: _javascript_ question
 
 hello good peoples...
 
 i have a _javascript_ question, that really aims for a coupla things...
 
 1. can this be done elegantly?
 2. if not, then whats the best non-elegant way?
 3. if so, a bit of a point in the right direction...i can READ
 _javascript_, most of the time, and tell ya whats going on...however, i
 SUCK, with a capital freakin' S at writing it...anyway, im sick of
 bugging mike t. all the time with my _javascript_ questions...so i
 figured i try here, and im sure he'll read this...but whatever, :)
 
 anyway...
 
 i have, lets say...
 
 1. 15 select elements on a page.
 2. each is named uniquely.
 3. all are filled with 1-15 as the values (indexes 0-14)
 4. if a user chooses, 14 in element 1 (index 0) i need to prevent them
 from choosing 14 in ANY other element.
 
 i (think) i can do it with something sort of LONG and VERY unelegant
 
 
 inline
 
 
  (this.selectedIndex==0){2.something.Whatever};
 onChange() event, but i think there has to be a BETTER way to do it.
 
 id love to learn this, is there a place to get this kind of _javascript_
 learning?ive picked up EVERY thing i can about a lot of web
 programming languages, just cant crack the _javascript_ code...
 
 help ??? :)
 
 cheers.
 --
 tony
 
 Tony Weeg
 human.
 email: tonyweeg [at] gmail [dot] com
 blog: http://www.revolutionwebdesign.com/blog/
 
 Check out http://www.antiwrap.com to send websites to your friends.
 
 
 
 
 
 
 
 
 
 
 
 

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: javascript question

2004-08-16 Thread Tony Weeg
ADE, Mattthank you GENTS as well.

this one from charlie is the money shot.

later!
tw

On Mon, 16 Aug 2004 20:10:26 -0400, Tony Weeg [EMAIL PROTECTED] wrote:
 charlie...
 
 like they always say...if you had t*ts id kiss ya!
 
 thanks. perfect.no need to make it any easier!
 
 wow, perfect, and it REPLACES the value with the other VALUE, PERFECT
 
 later.
 
 
 
 On Mon, 16 Aug 2004 16:56:58 -0700, Charlie Griefer [EMAIL PROTECTED] wrote:
  somebody was asking today about some old code I wrote...i think it's
  what you're looking for too:
 
  http://charlie.griefer.com/code/js/megan.html
 
  Just replace pizza, beer, playboy channel, etc with football teams :)
 
 
  Adrian Lynch wrote:
 
  Ermmm, yup, I think. You can dynamically build the elements array and either
  do...
  
   for ( var i = 0; i  elements.length ;++ ) {...}
  
  ... or...
  
   for ( var i = 0; i  #query.RecordCount# ;++ ) {...}
  
  I'd go for the first one because I'm not keen on mixing CF and JS, but the
  second might be faster.
  
  Ade
  
  Can we be in this pool when it's done? :OD
  
  -Original Message-
  From: Tony Weeg [mailto:[EMAIL PROTECTED]
  Sent: 17 August 2004 00:42
  To: CF-Talk
  Subject: Re: _javascript_ question
  
  
  its lookiung like it makes sense!!! good.
  
  ok, the for (...) { part needs to know how many too loop through, right?
  
  ok, how the heck can cf tell the _javascript_, how many times to loop,
  that variable
  will be available in a cfquery.recordCount, which is, i supps how ill
  build the elements array()
  
  right?
  
  tw
  
  On Tue, 17 Aug 2004 00:36:12 +0100, Adrian Lynch
  [EMAIL PROTECTED] wrote:
  
  
  Yup, sorry, my code wasn't too hot.
  
  // Get references to the selects
  elements = new Array(
   getElementById('select_1'),
   getElementById('select_2'),
   getElementById('select_3'),
   getElementById('select_4'),
   ...
   ...
  );
  
  function myOnChange() {
  
   for (...) {
  if ( elements[i].options[elements[i].selectedIndex].value
  
  
  ==
  
  
  this.options[this.selectedIndex].value ) {
  elements[i].selectedIndex = 0; // Set the other
  
  
  select back to the top
  
  
  option
  }
   }
  
  }
  
  Didn't test that, does it work?
  
  Ade
  
  -Original Message-
  From: Tony Weeg [mailto:[EMAIL PROTECTED]
  Sent: 17 August 2004 00:22
  To: CF-Talk
  Subject: Re: _javascript_ question
  
  adrian...
  
  thank you, now, how can i marry that with matt's idea?
  
  tw
  
  On Tue, 17 Aug 2004 00:16:21 +0100, Adrian Lynch
  [EMAIL PROTECTED] wrote:
  
  
  As an overview, in the onChange call a function that loops through all
  
  
  the
  
  
  other selects and checks their selected values/indexes(which ever makes
  
  
  more
  
  
  sense)
  
  elements = new Array(
   getElementById('select_1'),
   getElementById('select_2'),
   getElementById('select_3'),
   getElementById('select_4'),
   ...
   ...
  );
  
  Then a function that you call with onChange of all those selects.
  
  for () {
   if elements.selected index/value = the current selected
  
  
  index/value
  
  
  {
  
  
  alert(something);
   }
  }
  
  Hows about that?
  
  Ade
  
  -Original Message-
  From: Tony Weeg [mailto:[EMAIL PROTECTED]
  Sent: 17 August 2004 00:01
  To: CF-Talk
  Subject: ot: _javascript_ question
  
  hello good peoples...
  
  i have a _javascript_ question, that really aims for a coupla things...
  
  1. can this be done elegantly?
  2. if not, then whats the best non-elegant way?
  3. if so, a bit of a point in the right direction...i can READ
  _javascript_, most of the time, and tell ya whats going on...however, i
  SUCK, with a capital freakin' S at writing it...anyway, im sick of
  bugging mike t. all the time with my _javascript_ questions...so i
  figured i try here, and im sure he'll read this...but whatever, :)
  
  anyway...
  
  i have, lets say...
  
  1. 15 select elements on a page.
  2. each is named uniquely.
  3. all are filled with 1-15 as the values (indexes 0-14)
  4. if a user chooses, 14 in element 1 (index 0) i need to prevent them
  from choosing 14 in ANY other element.
  
  i (think) i can do it with something sort of LONG and VERY unelegant
  
  
  inline
  
  
   (this.selectedIndex==0){2.something.Whatever};
  onChange() event, but i think there has to be a BETTER way to do it.
  
  id love to learn this, is there a place to get this kind of _javascript_
  learning?ive picked up EVERY thing i can about a lot of web
  programming languages, just cant crack the _javascript_ code...
  
  help ??? :)
  
  cheers.
  --
  tony
  
  Tony Weeg
  human.
  email: tonyweeg [at] gmail [dot] com
  blog: http://www.revolutionwebdesign.com/blog/
  
  Check out http://www.antiwrap.com to send websites to your friends.
  
  
  
  
  
  
  
  
  
  
  
 
 
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: javascript question

2004-08-16 Thread Jim Davis
I may be missing something but I think you can do this much simpler.

If you create your options up front - all 15 in a collection.You can then
loop over that collection 15 times to create your 15 select boxes.

I've got a collection object available on my site with an example of how to
do this (create a collection of options and then dump it out to a select
box) here (you don't need this, but it makes managing the group of options
very simple):

http://www.depressedpress.com/depressedpress/Content/Development/_javascript_/
Extensions/ObCollectionOrdered/Index.cfm

So - you've got one and one list of options, but it's repeated 15 times,
right?In other words you've got 15 objects and 15 references to each.But
you've only got 15 actual options on the whole page.See how nice that is?

Okay - now comes the fun part.Remember that in _javascript_ you can add
properties to anything.So when I select an option I can add a new
property, say Game to the option.Because all 15 of your select controls
are showing the SAME OBJECTs the property will be available in all of them
instantly.Sweet, uh?

Set up your options something like this:

Op1 = new Option(1);

Op1.game = ;

You can then do an onChange() that just sets the game property of
whatever option was chosen (again using the collection object makes getting
the object reference easier).

You can then do whatever you want.You can easily check to see if the
game property is set when you select an item from any box and throw an
alert.You could also repopulate all of the items each time a new one is
selected removing those that are selected from the other lists and only
showing the selected one in the list it was selected in.

When it comes right down to it you should be able to do the core of what you
want in only a few lines of code.

Jim Davis
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: javascript question

2004-08-16 Thread Dick Applebaum
Hey Tony -- Gonna' Share the app?

Stealers will have a good year, but Detroit may be a surprise

(Ram fan from 1951-2004)

Dick

On Aug 16, 2004, at 4:36 PM, Tony Weeg wrote:


a weekend you can only assign 1-15, well 15 times :)  make sense?  its
almost football season (well..american football season) and this is
for our pool, im building a site to manage it now...

tw


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: javascript question

2004-08-16 Thread Dick Applebaum
Tony

You pledged yourself to me, on this very list, several months ago

Pouting...

Dick

On Aug 16, 2004, at 5:10 PM, Tony Weeg wrote:

 charlie...

like they always say...if you had t*ts id kiss ya!

thanks. perfect.  no need to make it any easier!

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




  1   2   >