On 13 Mar., 17:29, "SL" <[EMAIL PROTECTED]> wrote:
> Hello All ---
>
> I am using the AJAX Object to send form data to a PHP page. In IE, I
> am able to get a call back thru the showResponse(); However, in
> Firefox, the callback never gets executed. Here is my code:
>
> function showResponse()
> {
> alert('Thank You. Your information has been sent');
>
> }
>
> function processForm()
> {
> var url = "sendEmail.php";
> var name = $F('name');
> var email = $F('email');
> var phone = $F('phone');
> var comments = $F('comments');
> var pars = 'name='+ name + '&email=' + email + '&phone=' +
> phone +
> '&comments=' + comments;
> var myAjax = new Ajax.Request(url, {method: 'post',
> parameters:
> pars, onComplete: showResponse});
> return false;
>
> }
>
> Any ideas as to why showResponse() is not being called in Firefox?
> Thanks for any and all replies.
I have a similar problem with Ajax.Updater which is working in
prototype1.4, but broke in 1.5/.1, I'm using FF2.0.0.3
My code looks almost identical to yours :
new Ajax.Updater(detailId,
url,
{ method: 'get',
parameters: pars,
onFailure: reportError,
onComplete: toggleMainDetail('main'),
evalScripts: true
});
This works in IE7 and prototype 1.5.1
*J*
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---