If it works that's all that really matters :) but... this code illustrates what I mean.
<input type="text" name="Reg_#DateFormat(CurrentDate,'mmddyyyy')#" onlblur="alert(this.name)"> You see, no need to search for names since the name is already available to the js. jon ----- Original Message ----- From: "Angel Stewart" <[EMAIL PROTECTED]> To: "CF-Community" <[EMAIL PROTECTED]> Sent: Tuesday, November 13, 2001 5:51 PM Subject: RE: Nate Smith is da JS guru! :) > Well..it is a row of values which are dynamically generated.. > > You want me to pass the CF Variable to a JS function? > > So instead of searching for all the fields that start with REG_ > > You want me to pass Reg_#DateFormat(CurrentDate,'mmddyyyy')# to the > javascript each time the OnBlur is called? > I..don't understand. > > -Gel > > -----Original Message----- > From: Jon Hall [mailto:[EMAIL PROTECTED]] > > Why did you not just pass the value to the function? Not only does the > regexp object add unneeded complexity to the function, but it eliminates > compatibility anything older than IE4/NS4. > > jon > ----- Original Message ----- > From: "Angel Stewart" <[EMAIL PROTECTED]> > > > I asked a question about totalling several fields at the end of a row > > of fields using JS on the CF Talk list! > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
