I have a cfdiv which calls an Ajax routine to check if a requested username has
already been taken. The idea is that when you complete the field and move the
cursor anywhere it does a lookup and posts an error message if it has been
taken.
This works great 99% of the time, but I discovered that in the one case where
you enter the requested username and the hit the enter key without ever moving
the cursor, it doesn't call the Ajax but instead submits the form. My cfdiv tag
is this:
<cfdiv ID="Userdiv"
bind="url:CheckUserName.cfm?NewUsername={UserName}&OldUserName=''"
bindonload="No"></cfdiv>
How can I make sure that it gets called even if you click the enter key. Is
there something else I can add to the bind expression?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330337
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4