Hi,
I am trying to submit the whole form as part of the AJAX request. To
achieve this I am using $('myForm').request({method:'POST',
onSuccess:function(response)
{
alert("success");
},
onFailure:function(response)
{
alert("Failed");
},
onComplete:function(response)
{
alert("onComplete");
}
});
The method works perfectly in IE6+. This is throwing a javascript
error.
Error: $('myForm') has no properties.
I am using Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:
1.8.1.11) Gecko/20071127 Firefox/2.0.0.11.
Is anything wrong with the way I am using?
Would appreciate your help towards resolving the issue.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---