Take a look at jQuery.
$(function() {
$("selector for your input").blur(function() {
$.post("check-exists.cfm", {theFormField: "$(this.val())",
function(data) {
alert(data);
// See what the response was and act accordingly
}})
});
});
The above is waiting for a change in the form field, sending the value to a
CF page, the result of this is available in data.
Have a play about with it, see what you find.
Adrian
> -----Original Message-----
> From: Priya Koya [mailto:[email protected]]
> Sent: 25 February 2009 16:14
> To: cf-talk
> Subject: js validation
>
>
> how to pull 2 fiels from database when you enter account number in edit
> form which is already entered into database by other.
>
>
> Thanks in advance
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:319792
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4