>- see footer for list info -<
Thanks Tim

what was happening was this

I made a call to a CFC that passed a value back to me and based on that value
chose to flag an error or not 
 the thing is this

 the serverresponse was too slow and the value haddnt changed when I made the
choice

fixed it now tho :)



Quoting Tim Blair <[EMAIL PROTECTED]>:

> >- 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 -<
> 



_______________________________________________

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