Also, you can easily check to see if anything is selected in that box before
submission. Just loop through all elements of the select list and if none
are selected, produce an error message.

Setting the 1st element as selected will remove the need for that check
though.



-----Original Message-----
From: Kris Pilles [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 01, 2002 9:35 AM
To: CF-Talk
Subject: RE: Onkeypress


I think I need to set the focud of the select list to focus on load... I
set the focus but it does not highlight the box?  Is there a way to make
it highlight an item on the select box onload???

-----Original Message-----
From: Adrian Lynch [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 01, 2002 10:31 AM
To: CF-Talk
Subject: RE: Onkeypress


would changing
        window.event && window.event.keyCode == 13
to
        window.event == 13 && window.event.keyCode == 13
help at all?

Ade

-----Original Message-----
From: Kris Pilles [mailto:[EMAIL PROTECTED]]
Sent: 01 August 2002 15:28
To: CF-Talk
Subject: Onkeypress


function entsub() {
  if (window.event && window.event.keyCode == 13)
    returninfo();
  else
    return true;
        }

I am using this on a form to allow pressing the enter key to call my
function returninfo()

However, if the user hits enter and nothing is selected in my select
box, I get an error... Any ideas on how I can correct this???

-----Original Message-----
From: Alex Hubner [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 01, 2002 9:25 AM
To: CF-Talk
Subject: Hack Proofing ColdFusion


Hi folks,

Does anybody knows where I can find the e-book version of "Hack Proofing
ColdFusion" (Greg Meyer, Steven Casco, Sarge, Rob Rusher)? I know that I
can find it at Amazon.com but I really avoid shopping there (personal
problems in the past)... I'm looking for other places but I only found
paper edition, not the eletronic one.

Thanks!!
Alex





______________________________________________________________________
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to