>- see footer for list info -<
Matt,

> if the form number already exists in the database (ajax calling
> a CFC and returning a yes/no) the other validation runs before
> the server returns the code

If you're using Prototype you can use the onSuccess or onComplete
callbacks:

  new Ajax.Request(
    this.url,
    {
      onSuccess: function(response, result) {
        // do something with the result, or call another fn
        // depending on the result...
      }
    }
  );

Depending on your scoping you may need to add a bind() call to the
function to bind it to the current 'this' scope.  Have a look at the
"Using prototype" article [1] for more info on Ajax.Request.

Tim.

[1] http://short.badpen.com/?23NF77XQ


--
-------------------------------------------------------
 TB: http://tim.bla.ir/  Tech: http://tech.badpen.com/
-------------------------------------------------------
     RAWNET LTD - independent digital media agency
     "We are big, we are funny and we are clever!"
                http://www.rawnet.com/
-------------------------------------------------------
This message may  contain information which  is legally
privileged  and/or  confidential.  If  you are  not the
intended  recipient, you  are hereby notified  that any
unauthorised  disclosure, copying,  distribution or use
of  this  information   is  strictly  prohibited.  Such
notification  notwithstanding,  any comments, opinions,
information  or conclusions  expressed in  this message
are those of  the originator,  not of  rawnet  limited,
unless otherwise explicitly and independently indicated
by  an  authorised  representative  of  rawnet limited.
-------------------------------------------------------
_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to 
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
>- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<

Reply via email to