var params = $H({
code_to_check: code_given
});

2009/4/4 geoffcox <g...@freeuk.com>

>
> Hello,
>
> I have the following function in which the alert(code_given) does show
> the correct value but the Ajax.Request does not appear to be called as
> I get no alert(response).
>
> The new Ajax.Request code part and the php file do work in a separate
> situation so I'm at a loss to know what the problem is!?
>
> Ideas please!
>
> Cheers,
>
> Geoff
>
> function checkTherapistCode(code_received) {
> var code_given = code_received;
> alert(code_given);
> var params = ({
> code_to_check: code_given
> });
>
> new Ajax.Request('test-spa-check-code2.php',
>  {
>    method:'post', parameters: params,
>    onSuccess: function(transport){
>      var response = transport.responseText || "no response text";
>                alert(response);
>                if (response == 'OK') {
>                alert("code OK");
>                } else {
>                alert("code not found");
>                }
>          },
>    onFailure: function(){ alert('Something went wrong...') }
>  });
> }
> >
>


-- 
Best Regards,
Vladimir Tkach

+972-54-7574166
tea...@gmail.com

http://teamco-anthill.blogspot.com/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to