Umm... what version of Firefox? I just ran it in Firefox 2.0.0.1 and
it worked perfectly. The syntax also looks correct so I'm nearly 100%
certain it will work in at least 1.5 and up. Do you have Firebug
(http://getfirebug.com) installed? If not, please do yourself a favor
and go get it. It'll allow you to debug these quirky XMLHttpRequests
with ease.

-E

On 3/13/07, 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.
>
>
> >
>


-- 
Eric Ryan Harrison

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

Reply via email to