The actual Submit button... I am wondering if I could use onkeypress to check the first character entered in the text field. IF it validates true then pop up a confirm or if it doesn't let them continue typing. Although it would still check each key press..
Jeff > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Friday, July 22, 2005 4:05 PM > To: CF-Talk > Subject: RE: Javascript weirdness... > > > Is it when they submit with the Enter key or the actual > submit button? Is the behavior the same on both? That might > give you a clue. > > I would think that if they hit enter, the ONBLUR event > doesn't launch, and maybe not even the onchange (although > IMHO it should). Can you add some code to check in the > onsubmit if the current element that has focus is this field, > and if so, execute your validation for it there? Maybe add > some code so it's just there for firefox. > > Dave > > -----Original Message----- > From: Jeff Waris [mailto:[EMAIL PROTECTED] > Sent: Friday, July 22, 2005 3:57 PM > To: CF-Talk > Subject: OT: Javascript weirdness... > > > Has anyone noticed this with firefox? > > I have a text box that a user inputs a number. Using an > ONBLUR or ONCHANGE action I validate the number inputed. > SIMPLE... Works perfectly. > > Well not quite. If the user goes to SUBMIT the form Directly > after inputting the number. Firefox process the > ONBLUR/ONCHANGE SIMULTANIOUSLY submitting the form. IE works > as expected. It process the onblur/onchange first. This text > box needs to be check right after entering, and would > complicate the process checking it on the submit. > > Any workarounds to this? Am I going about this wrong? Is > FIREFOX processing correctly and IE being nice? > > Thanks, > Jeff > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:212655 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

